DEV Community

Discussion on: Why is your preferred programming language your go-to?

Collapse
 
snowfrogdev profile image
Philippe Vaillancourt

Started learning to code in C#, quickly switched to JavaScript. Now my go-to is TypeScript. I love it because it is very versatile. TS/JS runs pretty much everywhere: Web, Mobile, Desktop, IOT, front-end, back-end. JS might not excel at everything but I honestly think it doesn't suck at much. You can build some pretty cool games with it, do machine learning, web apps (of course), desktop apps, data science stuff... It feels like the only limit is your imagination.

I like the fact that it's a scripting language and you don't have to worry about memory management. I like the event system and how it deals with asynchronous code. Even though this may not be where it shines the most, I like the fact that you can write programs that make use of multi-threading and concurrency (even if everyone thinks you can't do that in JS).

I like TypeScript because it adds a layer of type safety on top of the above. I usually find TS code prettier, cleaner and more often self-documented than plain JS code. It also makes writing OO style code easier while it still allows writing in a functional style if you prefer.