4 ms·
Why is that wrong? A language can be multi-paradigm while the “official” documents are written in a specific style. Like human languages, they evolve with their
by ronenlh 5y ago
Why is that wrong? A language can be multi-paradigm while the “official” documents are written in a specific style. Like human languages, they evolve with their use (or fork into another language completely), while the high literature is the last one to change.
Together with that, I agree that one should read the high literature before inventing a new writing style.
- nerdponx 5y agoWanting to explore that space as a hobby is not wrong, but insisting on it at work when it's clearly not typical or well-supported is pretty wrong in my opinion.
- silisili 5y agoI'm a big believer in 'when in Rome', not just in languages but life. If you don't like language X, don't take a job writing language X.
- TimTheTinker 5y agoOn the other hand, sometimes it really makes sense to strike out and define a new, higher standard for code style and paradigm in a given language, or at least to improve somewhat on the style and paradigm that's handed to you. JavaScript used to be a messy language "not fit for professional use" (see popular JS books from the year 2000 :shudder:), but it turns out most of the problem was how people were using it. JS code being written today looks like an entirely different language compared to early idiomatic "JavaScripts" one could use to make pages "more dynamic".
- zerocount 5y agoJavaScript was never a messy language, it was the different browsers that created a horrible situation for using JavaScript in web pages.
- TimTheTinker 5y agoActually it was very messy. People were encouraged to use it as a write-only imperative scripting language. People thought VBScript was more powerful. JavaScript was like that attention-seeking red-headed stepchild that you see at family reunions. There's a good reason Douglas Crockford re-introduced JavaScript as "the wwwrld's most misunderstood programming language." He saw beauty within that others didn't.
- Zababa 5y agoThat's something I don't really understand. The language is a garbage-collected C-like. If you don't abuse objects/this/.call, plain Javascript is very readable. What made it a "write-only imperative scripting language"?
- TimTheTinker 5y agoIf you look at the "JavaScripts" that were floating around at the time (try looking up dynamicdrive.com from around the year 2003) I think you'll understand what I mean.
- Osiris 5y agoJavaScript today wouldn't be recognizable to a JavaScript developer 6 years ago, especially when using class syntax, destructing, and async/await, among many other syntax additions.
- SomeHacker44 5y agoJavascript the language has actually changed in those six years. Common Lisp, OTOH, has not... But styles of CL do change as do libraries, making your statement as applied to CL much more plausible.
- zerocount 5y agoI agree 100%. And don't complain about it and try to make it into language 'Y' by duct taping types on to it. Oh, and Python 3 should've been a new language.
- thuccess129 5y ago> read the high literature The elite language in Rome was Greek.