DEV Community

Discussion on: Did the JS community forget clever is not smart?

Collapse
 
rhymes profile image
rhymes

Regardless of photoswipe, which needs better and updated docs, I'm not pessimistic, I think things will get better in the future.

It's just that at least two things happened all at once which overwhelmed frontend programmers:

  • JavaScript stopped being used by the masses as a byproduct of jQuery scripts and its being a full programming language was recognized and expanded a lot in just a few years

  • People recognized they could optimize and speed up the user experience by using SPAs and PWAs. The main frameworks all encourage you to develop these two types of apps.

The programming language evolution was accelerated on one side and on the other suddenly you have to write complete applications which bring with them patterns, best practices and unique ways to solve problems that are not always the same as backend programming.

Tooling, complexity and the fatigue are byproducts of this.

I'm not sure it's just programmers trying to be clever, in part maybe, it's also that things have gotten way more complicated than before.

Suddenly you have to deal with functional programming (which you were already using in jQuery), with reactive programming (a little hyped imho), with promises everywhere, with state management, with schemas, with graphql instead of just RESTy Ajax, with transpilers and linters, with new paradigms, with new frameworks and libraries, with JavaScript on the server, and more. All of this without decades of established practices.

It's going to take time, even just to weed out clever tricks or to hide them behind nicely thought interfaces.

Thread Thread
 
polymorphicprod profile image
Josh Chernoff

I appreciate and respect your positivity. I didn't write this to shame people or dog on the community as much as I wrote this to hopefully just make people aware of what its like currently and to hopefully inspire change. All of which is not easy to highlight without calling out the current short comings that I'm seeing being trends. For the same reasons I think the destructuring assignment syntax is amazing is what I think the JS community needs more of. That is we need to make things readable again. I agree that will inevitably happen as we progress but, that is not an excuse as to why we can't start today. For as much as we push on the community to embrace new ecmascript standards and to avoid old trends for X reasons we almost never hear people say to follow some of the very basics of any program language.

…the ratio of time spent reading versus writing is well over 10 to 1.
We are constantly reading old code as part of the effort to write new
code. Because this ratio is so high, we want the reading of code
to be easy even if it makes the writing harder.”
— Robert C. Martin
Clean Code: A Handbook of Agile Software Craftsmanship

It's like we put so much energy into the new X thing thinking its gonna make our day that much better when in reality the truth was in plain sight hidden by our own doing.

Your worst enemy will hide in the last place you think to look.