News for hackers. Stuff that matters.
Re:Vue RFC: Expose logic-related component options via funct... by zwily on Thursday June 20, 2019 @06:25PM (#20238018)
Why? Hooks are completely backwards compatible.
Re:Vue RFC: Expose logic-related component options via funct... by pier25 on Thursday June 20, 2019 @06:41PM (#20238120)
What about books, talks, blog posts, SO answers, etc?

Is everyone going to rewrite all React literature with hooks?

Re:Vue RFC: Expose logic-related component options via funct... by pests on Thursday June 20, 2019 @08:31PM (#20238811)
No rewriting needed. Hooks are just another way to do what was already possible in a more well-defined way. All the content written is still applicable. Now there is just a new way to do things too.

The developers and documentation even advises against rewriting old components with hooks unless you need to.

Re:Vue RFC: Expose logic-related component options via funct... by pier25 on Thursday June 20, 2019 @09:07PM (#20239005)
> All the content written is still applicable.

Technically yes, but what if someone only uses hooks and has never used classes?

And, viceversa, since there is now a lot of people moving to hooks and producing React literature for hooks what if you only have used classes?

So now, to be able to read all the React literature one has to understand both methodologies.

> The developers and documentation even advises against rewriting old components with hooks unless you need to.

It doesn't matter. A big chunk of the JS community is hype-based.

Re:Vue RFC: Expose logic-related component options via funct... by pests on Saturday June 22, 2019 @07:23PM (#20252289)
You're gonna have to learn it eventually to work with other code bases and so on. But the point was it doesn't change existing knowledge, just something new to learn.
Re:Vue RFC: Expose logic-related component options via funct... by fourthark on Friday June 21, 2019 @12:59AM (#20239978)
So don't listen?