DEV Community

Discussion on: The Layers of Javascript

desolosubhumus profile image
Desolo Sub Humus 🌎🌍

Perhaps, but all too often I'll see some nonsense on Stack Overflow or Medium where someone asks 'how do I do x in JS?', a simple two line VanillaJS answer that would work gets posted by someone else, and a hoard of others come in to bash the VanillaJS answer because they feel 'you should have used jQuery to make it one line and it should do y'.

I'm referring more to the obsession with forcing employees to do everything with the bosses' favorite libraries and frameworks purely because the bosses feel VanillaJS solutions are icky and only for stupid people who write their own code.

On top of that, if a framework or library is updated and part of your code breaks because your dependencies work differently now, it's frustrating to have to go back and figure out what the change is, why, how the new way works, how to fix your own code, and hope it doesn't break again. It's much less frustrating over time to write valid, working code that relies on nothing but your own work.

So, absolutely, the right tools for the right job. Sadly, it's more often the trendy tools for every job, because it's trendy.

Thread Thread
laurieontech profile image
Laurie Author

Definitely, all about tradeoffs.