DEV Community

Discussion on: The class Boogeyman in JavaScript

Collapse
 
gaurang847 profile image
Gaurang • Edited

Amazing article!

Many of my JS colleagues talk about OO like it did something wrong to them in their childhood. I've found myself wanting to show them a doll of the OO Demon and say, "Now show me where the bad man touched you."

I swear I've had friends that behave like that and dis Java because it has so many rules and is complicated. And because they find JavaScript to be much more flexible and forgiving.
And it always ticks me to hear that 'cause while JS is great and all, that's a very bad reason to either dis a language or to like another.

The truth, I often feel, is that they never really put enough effort into properly learning the language. They're just venting out their frustration as the understanding of the language didn't magically seep into them by itself.
Even in Node.js, I've had this colleague who strongly dissed sails.js (an MVC framework for Node.js) because he was used to working with express.js, and sails.js didn't feel flexible to his liking.

I strongly agree with you that it's necessary to view any programming tool as a tool. Learn the pros and cons of each tool.
And not let our personal biases get the better of us. That's very unhealthy and averse to a growth-mindset.

Collapse
 
bytebodger profile image
Adam Nathaniel Davis

Well said! And thank you for the feedback! You're correct that it often comes down to lack of understanding - or an unwillingness to put in the time/effort to achieve that understanding. Ultimately, when we don't want to spend that time/effort to grasp something new/different, we fall back on dogma. Because dogma has an air of authority to it. We can spew dogma and sound smart (to some people). Right now, a common JS dogma is, "There shall be no classes."