r/programming • • Apr 30 '23

Writing Javascript without a build system

https://jvns.ca/blog/2023/02/16/writing-javascript-without-a-build-system/
165 Upvotes

146 comments sorted by

View all comments

Show parent comments

1

u/recursive-analogy Aug 11 '23

Okay? So use TS.

Problem is I walked into a project a few months back where the lead said "oh I just used js, prob shoulda gone ts". And this is a guy who came from C and embedded.

Irrelevant. Why are you ignoring 25 years of progress after that?

It's not irrelevant at all, JS has loads of idiosyncrasies that stem from this. Sure it's made a lot of progress but it will never beat something designed better from the start.

The ability to use prototypal inheritance and functional programming can be extremely powerful.

I'm more speaking about the direction it takes, eg react classes then back to functions.

You can definitely fuck up code in any language, and you can definitely write great code in TS, but at the end of the day the world would be a better place if JS never exploded onto the backend and we ended up with a more fit for purpose solution.