Hacker News new | ask | show | jobs
by ronenlh 1699 days 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.

3 comments

I'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.

On 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".

JavaScript 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.
Javascript 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.

JavaScript was never a messy language, it was the different browsers that created a horrible situation for using JavaScript in web pages.
Actually 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.

That'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"?
If 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.
I 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.

> read the high literature

The elite language in Rome was Greek.

> The elite language in Rome was Greek.

gee, they didn't have go?

Sure that empire was doomed.

Actually, they lacked 0, so they could not even terminate their C strings properly.
Wanting 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.