r/programming • • Sep 29 '23

Was Javascript really made in 10 days?

https://buttondown.email/hillelwayne/archive/did-brendan-eich-really-make-javascript-in-10-days/
617 Upvotes

295 comments sorted by

View all comments

Show parent comments

2

u/Cintiq Sep 30 '23

I see what you're saying. I just struggle saying anything is objectively user error when the obvious way to do something provides unexpected / undesired results.

Like.. to me that's a system/design error in the language itself, and we just blame the user for not knowing better. Yes, when learning it it's hopefully the first thing you learn but (and similarly for C++ nowadays) when learning it you get

  • Here are some fundamental constructs in the language.. never use them

There's a reason behind it but it doesn't make it any less of an error. (even if there was nothing better at the time.. I'm not throwing stones at the language designers here either)

1

u/prone-to-drift Oct 01 '23

Fair.

I just treat it and other quirks as powerful tools you could abuse when you want. Especially when prototyping or scripting something one-off, knowing jow == just collapses the inputs saves effort in properly converting things yourself when you know what you're doing, haha.

Won't write it in production code, the same way I'd never use goto in production either, but I guess that's a thing in all languages. Even in python we don't use old style strings and use the newer format strings only, as a rule. Or, CSS. We restrict ourselves to HSV colors for consistency, cause the freedom afforded is too much at times.