Live data from Hacker News

The React2Shell Story

lachlan.nz

21–30 of 50 posts

Re: The React2Shell Story

#21

Earlier quoted context omitted.

[flagged]

React was ruined from the moment they abandoned class components and introduced hooks. Vercel is just continuing the trend of hype against common sense.

You are probably a Javascript dev, not doing typescript? Classes were horrible to type for, especially when you tried higher-order components. Hooks removed so much clutter and friction and allows pretty well-typed components and higher order functions (i.e. hooks that return components).

Re: The React2Shell Story

#22

I'm still yet to be convinced React Server Components are anything but a disaster to the developer experience. Mixing backend and frontend without a clear boundary is terrible for any codebase beyond a handful of contributors.

The prime motivator for it is a certain user experience. I'm not sure they've found the best developer experience for providing that user experience, but I'm also not sure that a better DX is possible - the whole concept has quite a bit of inherent complexity, I'm afraid.

(The conclusion could, of course, also be that it's just not feasible to create that kind of user experience. Luckily, traditional patterns still work just as well.)

Re: The React2Shell Story

#24
post #22

I'm still yet to be convinced React Server Components are anything but a disaster to the developer experience. Mixing backend and frontend without a clear boundary is terrible for any codebase beyond a handful of contributors.

The prime motivator for it is a certain user experience. I'm not sure they've found the best developer experience for providing that user experience, but I'm also not sure that a better DX is possible - the whole concept has quite a bit of inherent complexity, I'm afraid. (The conclusion could, of course, also be that it's just not feasible to create that kind of user experience. Luckily, traditional patterns still w…

If you look at the origins, the primary motivation was finding a way to get a good data loading developer experience without having to adopt Relay and GraphQL.

Re: The React2Shell Story

#25
post #18
post #13

Earlier quoted context omitted.

I just don't understand this take, every time I hear it I wonder if people just haven't spent the time to adjust their mental model. Hooks are IMO the best thing that happened to react.

I have spent more time than I wished for on React debugging tools, and useXXXX spaghetti calls.

You can write spaghetti with class components, too. Doesn't sound like a hooks issue to me.

Re: The React2Shell Story

#26
post #16

Earlier quoted context omitted.

React was ruined from the moment they abandoned class components and introduced hooks. Vercel is just continuing the trend of hype against common sense.

Spot on, incredible how OOP hate can mess up a framework. Vercel, the only thing they have going for the app model mess, are the partnerships with SaaS vendors that make them the must go tooling. However this will eventually come to an end.

It wasn't OOP hate, it was hatred of splitting functionality across a number of methods rather than putting it in a single (reusable, sharable!) hook and having your component consume it.

Re: The React2Shell Story

#27
post #25
post #18

Earlier quoted context omitted.

I have spent more time than I wished for on React debugging tools, and useXXXX spaghetti calls.

You can write spaghetti with class components, too. Doesn't sound like a hooks issue to me.

I certainly can, but somehow it cooler to write lambdas upon lambdas, and other Haskellisms when using hooks.

Re: The React2Shell Story

#28
post #26
post #16

Earlier quoted context omitted.

Spot on, incredible how OOP hate can mess up a framework. Vercel, the only thing they have going for the app model mess, are the partnerships with SaaS vendors that make them the must go tooling. However this will eventually come to an end.

It wasn't OOP hate, it was hatred of splitting functionality across a number of methods rather than putting it in a single (reusable, sharable!) hook and having your component consume it.

Yeah, because now is so much better....

I only touch React now, because of SaaS partnerships with Vercel.

Otherwise I pretend it doesn't even exist.

Re: The React2Shell Story

#30
> But that afternoon, fueled by curiosity and frustration, I felt a switch flip in my brain, and I dived head-first into a rabbit hole with no turning back.

https://xkcd.com/356/

It happens to all of us. However, I think it’s much easier nowadays with LLMs for something productive like this to come out of it. I can notice something wrong and triage or even fix it before the point where I’d normally start to feel the subconscious pull of opportunity cost telling me to stop.

Post reply on HN