• 63 Posts
  • 486 Comments
Joined 11 months ago
cake
Cake day: June 12th, 2025

help-circle
  • JS is rightly criticized as a language, for lending itself to… less than ideal practices. Which is largely a result of it NOT being designed as a programming language. It was designed as a dead-simple scripting language for getting the most minimal of bells-and-whistles kinda things in the browser. So, it’s worth noting that you might have to un-learn some bad habits someday, as you progress to other languages, or even just higher-level stuff in JS.

    However, it’s still an excellent choice as a starter language, on account of how dead-simple it was designed to be. And how dead-simple it is to start DOING things with it. And how is possibly the most-used language there is, ubiquitous in web development. And how MASSIVE the community around it is, and how many learning resources there are.

    So yeah, go for it. GL;HF.









  • Yup, I’ve taken to doing this exact same thing in TS/JS. That is, defining functions to take an options object instead of multiple parameters.

    It’d be much nicer if TS/JS could support named parameter binding, like many other lanaguages, cause that’s what I do as a nearly universal rule, in every language that supports it.

    No, having an IDE inject paramter names in the editor is not a solution. Not only does it always look like shit, because none of them have any concept of formatting for readability, it also means the code then becomes unreadable outside of an IDE (and user configuration) with that feature.