JavaScript dos and donts @ Mu-An Chiou
Mu-An Chiou

JavaScript dos and donts

Do

Don't


Addendum 12 Nov 2024

Since this middle of the night post that took less than five minutes to write got more eyeballs.

“Write JavaScript like it’s 2005” had been GitHub’s front-end team’s guideline since its inception, until React got pushed down from Microsoft management and most of us on the front-end team quit. If you are a user of github.com, consider how it has changed since 2020.

This is an old practice that has gotten lost in the ways with the manufacture of JavaScript industrial complex/ecosystems and frameworks. I hate to be the one to tell old tales but this is just another reminder that you can absolutely avoid dependency hell, We used to review every single dependency that goes into GitHub Dotcom and during our time the JS bytes continuously decreased as features were added. See Removing jQuery from GitHub.com front-end for how at that time we approached GitHub front-end. jQuery was only one of the many dependencies that we added with the goal to remove at some point.

I am sad to see new comers to web developments being bombarded with what you “MUST KNOW” when those things are absolutely optional for web development. One should not need to have npm installed in the first two months of your web development bootcamp, despite what the industry perpetuates. I am disappointed that our once open and low barrier entry to web development was raised so unncessarily and arbitrarily high that we don’t even know exactly what we are serving to users.

I to this day have zero front-end framework experience, but my knowledge in the web platform gets me hired, even by the framework making companies with great engineers, because they know my lack of knowledge for frameworks does not matter, what matters is that I know how the web works, I know how to trace back to the source and understand what each line of code does.

We have an enterprise of mediocre restaurants that do not know/care to know the ingredients that go into making the food we are serving.


Lastly,


From member of the Anti-JavaScript JavaScript Club,
Mu-An Chiou


Like this post? let me know!
> Liked.
(Thanks!)
Sure.