Hacker Newsnew | past | comments | ask | show | jobs | submit | mzronek's commentslogin

Luckily DX is much better now with Turbopack as a bundler. First they improved the dev server, now with Turbo builds the production builds are faster as well. Still not fully stable in my opinion, but they will get there.

It's also wise to use monorepo orchestration with build caching like Turborepo.

They did well on the turbo stuff, no doubt about it.

The main bottleneck with big projects in my experience is Typescript. Looking forward to the Go rewrite. :)


I am still waiting for the Smell Blaster.


That's part of the vibe in vibe coding.


V.I.B.E - Very Insecure Backend Endpoint


He also casually dropped that he talked to people at firms with "high amount of coding", who told him that by the end of this or next year "most code will not be written by humans".

Yeah, okay. I work each day with Copilot etc and the practical value is there, but there are so many steps missing for this statement to be true, that I highly doubt it.

My case is, wouldn't we already see the tools that are at least getting close to this goal? I can't believe that (or AGI in fact) to be a big bang release. It looks more like baby steps for now.


I mostly write java, and I rarely even look at the byte code, let alone the output of C2. I guess AGI took my job.


>most code will not be written by humans

That cant even be considered a useful metric seeing as I spend similar time reviewing gpt written code


Using server-side templating is another layer of complexity on top of your stack, that just glues together your output. These template languages are not easy to learn. Custom code for loops, escaping, template inheritance etc. Sometimes these are also hard to debug. The documentation of Jinja is huge.

Things get worse when you bring Javascript into the mix. You need to create Javascript code with your template engine without any Javascript toolchain.

Hard no to the string concat approach for me.


How is React easier to learn and debug?


With Full-Stack React you will use JSX to directly render HTML. Logic is done with Javascript, so you don't need to learn an additional language. There is also no mapping to Javascript and you can use the standard toolchain (for debugging).


How does JSX "directly" render to HTML? Have you compared the codebase of the React to EJS? EJS is much more direct. And the logic is also Javascript.

What do you mean by "no mapping to Javascript"? It is not as if React is part of the Browser API.


How do you get the server-side data to client-side Javascript? For example an array of strings or an object.


You can opt out by using a single (optional) catchall route and handle the path all by yourself. This is sometimes necessary to handle CMS pages for example.

Docs: https://nextjs.org/docs/app/building-your-application/routin...


They seem to recently position themselves as a Wordpress alternative. There is a blog post about migration from Wordpress to Payload including code: https://payloadcms.com/blog/how-to-migrate-from-wordpress-to...

No, it's a Headless CMS, so no frontend themes and templates. They have an official demo page including a frontend, that you can base your work on: https://github.com/payloadcms/public-demo

If you are looking for a Wordpress-clickety click solution with templates, Payload is not a candidate.


I think any solution that does not use PHP will not replace WordPress for most users, unless WP itself stagnates. "Anyone" can install Word press on a cheap shared hosting device and get started. That's why I think a real WP alternative will need to be based on PHP (Laravel?)


I've migrated from WordPress to Laravel-based CMS before. There's Statamic, but it's not free, though. It's good, my users love it and I can easily add functionality in contrast to WordPress, you'd have to install a plugin or dig into the digustingly messy code. Hated it.


A common misconception. React is a library.

These are examples for React frameworks: https://react.dev/learn/start-a-new-react-project#production...

Next.js is a React framework.

If Payload is a framework or not is debatable. I think it's more like a data layer around a database for a any js app and an Admin Panel (that uses Next.js now). It might be called a framework for your own Headless CMS, because it is code first. So you basically code the panel and the data structure yourself.


React hasn't been a library since they added hooks.

Hooks themselves are just a solution to async code, but the implication was that react was no longer a state-based UI rendering library and became a full blown frontend framework.


Hard to call something a full blown front end framework when it doesn’t have routing.


Routing is only important for a single page applications. Frontend frameworks are applicable to normal websites as well, they don't have to be SPAs with routing, caching, etc.


Can you please guide me where this heresy is being spread?


You heard it here first, I'm officially breaking the story wide open.


From what you posted in this thread, I can tell with confidence you don't know shit about web development

Hooks solution to async code? Hooks make React full blown forntend framework? Routing only important for single page applications? Yellow gorilla bread butter? Chickity dickity web frontend back single page I understand much


React started as a library.. at this point it has server side components, and a world of plugins.

As for anything that has patterns of building with, will argue it's a framework.


React is a FEBEFUIRT - a FrontEnd/BackEnd-Fluid UI RunTime.


React was a library before hooks. Now it is a framework and decides when your code runs, not you. And now it is a terrible framework with server components.


I think server components have been very badly marketed. They're totally opt-in, so I don't see how this would make React instantly a terrible framework. I for one think they represent a lot of value.

If you don't use them, then React is quite literally no different to you.


Can you please guide me where this heresy is being spread?


> React is a library

Can a library have compiler?)


Javascript has a compiler called Babel, which plays a huge role in modern web development. It is in fact a transcompiler, meaning it doesn't turn your javascript into bytecode, it is just transpiling stuff without changing the level of abstraction.

React Compiler is just a babel plugin for automatic performance improvement, memoization specifically, for never perfectly memoized React code.

Can library have compiler? Well why can't it? For example stdlib has a compiler, because C does.


That's an optional step for JSX cross-compilation. It's a language plugin; nothing really to do with frameworks or libraries.


They're going further than jsx transpilation[1]

[1] https://react.dev/learn/react-compiler


Nothing in that is actually doing what a compiler does above and beyond what babel, swc and esbuild are capable of.

What they've added is wrapping your code in more memoization functions, basically. All stuff that doesn't fundamentally transform the code, aside from inserting more `useMemo` and the like.

The JSX macro - which is itself already optional but everyone uses it - is just that, a handy macro with implementations available in every common bundler and transpiler out there.


A sword is also just a knife. And a Tesla truck is just an electric go-kart.


I reviewed hardware back in the day and was tired of all the repetitive tasks necessary to measure the performance of CPUs, GPUs and storage devices. So I wrote a benchmark automation tool, that did the work for me.

CINEBENCH and the likes where easy, but I also automated games without using their integrated benchmark. I needed a scripting language to load settings, go through the game's menu and load a save game. To avoid any kind of load from the automation, it offloaded the input data to an Arduino-based USB device, that simulated the benchmark run with previously recorded input. It worked pretty well, but small latency issues could of course result in small variations of the run. And bouncing into NPCs was generally a bad idea.

Here is a video of the system in action that completely automated a custom CS:GO run with additional streaming load as it would occur when streaming PC gaming: https://youtube.com/watch?v=ZpSPyd9f4cg

I get asked once in a while if the software can be downloaded or bought, but I am not going to do it. Writing software for yourself has the neat advantage that you never need to deploy it, upload it, write a change log, answer questions or fix bugs at any given time. It is just about solving the task at hand and nothing else.


Things is a great example for PWAs, because it does not exist on Android, Linux or Windows. It could be though, if it would be a PWA.

It is not and it seems like the developer focused its resources on native software for Apple products.


It could, yes. But the user experience and the amazing level of usability will degrade, and I would move to another product.


And we've come full circle!

> But as a web dev community we need to stand firm and build PWAs regardless. If we treat pwas on iOS like we did Internet explorer (i.e. giving it special attention and hack solutions as opposed to just not developing for it) we will lose the fight.


Comeon, it’s a todo app, being native provides marginal benefits over its functionality.


Except that it feels smoother (the UI, animations, UX) instead of a web app, and is amazingly fast/reactive?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: