JavaScript Rant

Aug 16, 2022    #javascript   #rant  

If you were to believe the Tech Twitter gyaandus, JavaScript is probably the best language out there which can be used for all your programming needs. I feel this is misleading and enforces why you should always do your due diligence instead of blindly accepting their opinions.

JavaScript, like many programming languages, was created to solve a problem. A solution for a specific problem or a set of similar problems cannot be used for all the problems you will encounter in the tech industry. Just because you have JavaScript runtimes like Deno , Bun and Node.js does not mean it is the right thing to choose every single time. I love this popular analogy of programming languages being tools in a toolbox; a tool is always picked from the toolbox based on the scenario. Similarly, programming languages should be selected based on a thorough analysis of your requirement(s).

I do not necessarily hate JavaScript – I think it is a great language for prototyping and simple projects. However, just like other languages, JavaScript comes with certain design choices that may not be ideal for certain scenarios. Best example is the lack of types, which makes it fairly annoying for Backend development. I know TypeScript is a thing but I should not have to install an additional layer on JavaScript to get types. This is an absurd practice, in my opinion, when you already have a lot of languages that enforce strict types and have been employed for Backend developments for years.

Choose your tools wisely.