3 ms·
I don’t know why but many people try really hard to make things far more complicated in JS than they need to be with getters/setters, class privacy, over use of
by austin-cheney 3y ago
I don’t know why but many people try really hard to make things far more complicated in JS than they need to be with getters/setters, class privacy, over use of this, and so on. You can really accomplish about 98% of everything you will ever need with just functions, events, and data structures. Not only does this eliminate a bunch of complexity but your application will almost certainly execute much faster as well.
Secondly, tree structures scare the shit out of most people. I am not sure why but most people will gladly perform 10x more work than navigate tree structures directly. Examples of tree structures are the file system, the DOM, process trees.
In many times I have seen developers brag about all their experience only to make a bunch of bad decisions out of emotional fear, a self-inflicted harm. That said I don’t find web tech challenging but for many people there is a great unnecessary self-inflicted challenge.
- schwartzworld 3y ago> You can really accomplish about 98% of everything you will ever need with just functions, events, and data structures You can also probably express 98% of what you need to with a few hundred words of English, but most people see a benefit in having a rich vocabulary. Having new ways to say something allows you to express it better and more concisely. It's the same for code.
- austin-cheney 3y agoIt’s best to not confuse vanity for a utility. You can attain maximum expressiveness through organization of code without blinding hoping a convention of syntax solves such organization for you. Code is a utility, not entertainment. The rest of my prior comment still stands. Web tech is super hard primarily because people are afraid of it, not because the technology imposes technical challenges.