3 ms·
The unencapsulated thing is exactly the feeling I got. I am most confused with others' code when there is implicit imports or declarations of any sort. "Where
by david-cako 6y ago
The unencapsulated thing is exactly the feeling I got. I am most confused with others' code when there is implicit imports or declarations of any sort. "Where did this come from??? Why is this working???"
I had the same thoughts about React hooks although perhaps I don't correctly understand the motivations. Class components have extremely clear, compartmentalized lifecycle functions, and now the advice is... make everything a function-scoped closure? Let redux do some opaque context sorcery to update your components?
React (and others) hit the paradigm right on the head the first time, IMO. It's change for change at this point, which is fine I suppose.
- danabramov 6y ago>I had the same thoughts about React hooks although perhaps I don't correctly understand the motivations. Not necessarily hoping to change your opinion but maybe this helps: https://medium.com/@dan_abramov/making-sense-of-react-hooks-fdbde8803889 https://medium.com/@dan_abramov/making-sense-of-react-hooks-...