News for hackers. Stuff that matters.
Re:JavaScript: The Modern Parts by siempreb on Saturday August 24, 2019 @07:07AM (#20786494)
It is indeed not funny, and you're off the mark as well:

> Dan did not develop the hooks api

I didn't say he developed it

> he is also on record saying that people don’t need to re-write their components with hooks

So? In my daily work I see it all the time. You think I have a say in that when I have a gig at company X?

> class components have not been deprecated in React

You've got a point there, indeed not officially deprecated, but in practice(again) at company X, you cannot do classes anymore.

Re:JavaScript: The Modern Parts by fourthark on Saturday August 24, 2019 @12:15PM (#20787978)
If people won't even listen to the developers of the tools they use, and insist on "out with the old, in with the new" when those developers are pleading with them not to create extra work for themselves... Whose fault is that?
Re:JavaScript: The Modern Parts by vonseel on Tuesday August 27, 2019 @08:39AM (#20808911)
There are even linting rules to ban use of class components, IiRC.

You’re not wrong. Hooks are being pushed HARD for new code.

Re:JavaScript: The Modern Parts by abacadaba on Saturday August 24, 2019 @09:27AM (#20786998)
Annoying, but sometimes a better idea comes along. I think me and many others initial reaction to the hooks presentation was 'yeeaaaassss'. Still in mostly es6 class codebase of course, so haven't had a chance to do too much with them yet, but as long as they're not gonna break backwards compatibility, yes please.