3 ms·
If the Jquery authors said ‘if u don’t like sizzle selector, feel free to use standard dom functions to grab your elements’ We’d all be pissed if the sizzle se
by runawaybottle 7y ago
If the Jquery authors said ‘if u don’t like sizzle selector, feel free to use standard dom functions to grab your elements’
We’d all be pissed if the sizzle selector wasn’t awesome and well thought out api.
What I keep seeing with React is really bad api design with things like hooks (because classes are so complicated, someone link that documentation post) and redux is horrific boilerplate to manage global state.
Ok no problem, don’t use it. Discourse ends there right?
No I’m sorry, reducers, hooks, ‘suspense’ stuff is not intuitive. This needs to be properly discussed.
Can I possibly even start the discussion at why the hell these things are being named in this way? Is that not a start? Functions and Classes are stupid? A debounce function that’s possibly a promise, stuff we know about, is suddenly like the ‘suspense’ api? Does any thought go into this anymore for how average developers have to approach this horseshit?
- DCoder 7y ago> Can I possibly even start the discussion at why the hell these things are being named in this way? This reminds me a lot of Perl with its creative naming for things, e.g. promises giving you a `Vow` object that you can `keep()` or `break()`. Or how you `bless` an associative array into becoming an object of a certain class. On the one hand, it is good to have precise and specific terms without reaching for a thesaurus or overloading the same term (e.g. the many meanings of `static` in C). On the other hand, if every framework and language invents its own terms for everything under the sun, that will not help polyglots or newcomers. (On the third hand, we have foreigners trying to spot a difference between a "promise" and a "vow".) Promises are my favourite example of this, because just between C++, C#, JavaScript, and Perl, I can find three-and-a-half different taxonomies for the same functionality.
- marcoseliziario 7y agoThose are advanced resources. For what they do, they are pretty straightforward, but if you are just starting, you don't need to care about reducers, hooks, suspense. You don't even need to do a SPA to take advantage of react, thus, you don't even need a router to start.
- runawaybottle 7y agoYou sound like such a shill. You don’t need anything in this life dude. But let’s say you do, or let’s say a subset of people do, and the feedback they comeback with is ‘this thing could be a lot better’, and shills like you come back with ‘well you probably didn’t need this’. Give it a rest.
- marcoseliziario 7y agoWell. You're free to improve on it them. Maybe doing something useful would help you to control your anger issues, dude.