News for hackers. Stuff that matters.
Re:Reahl – A Python-only web framework by theamk on Sunday January 20, 2019 @01:34AM (#18951527)
I don't think it is possible to separate language from tools or community. Those things are always together.

It is entirely possible that Javascript itself is an OK language, but it is too late now. The community has already decided that packages should be tiny, that changing prototype of "array" object is an acceptable thing to do, that failing fast is bad and the best reaction to errors is to mess up the page layout in the unexpected way, and so on.

Maybe one day, Javascript will re-invent itself and get reliable software engineering practices. But I highly doubt that -- there are countless people who know the laguage already, and they are not going to be changing their opinions overnight.

Re:Reahl – A Python-only web framework by untog on Sunday January 20, 2019 @01:55AM (#18951582)
> changing prototype of "array" object is an acceptable thing to do

Uhh, no? I code in JS every day and do nothing of the sort, and I would object if I saw it.

> failing fast is bad and the best reaction to errors is to mess up the page layout in the unexpected way

I don't even know what you mean by this, but the fact that you're conflating JS with "the page" suggests to me that you're not that familiar with server-side JS (which has no "page") and the enormous amount of code that is written to be compatible with it.

Re:Reahl – A Python-only web framework by coldtea on Sunday January 20, 2019 @10:18AM (#18953387)
>Uhh, no? I code in JS every day and do nothing of the sort, and I would object if I saw it.

If you use Babel you already have that, and just don't know about it. Most "upcoming features" shims do just that.

Re:Reahl – A Python-only web framework by coldtea on Sunday January 20, 2019 @10:17AM (#18953381)
>I don't think it is possible to separate language from tools or community. Those things are always together.

I don't think so, you can always just use the language in your own style and cherry-pick any tools that align with it.

Like e.g. the Play framework ignored the main standards and idioms of Java development in its day.

Or how every game studio just uses its own version of C++ and forbids tons of features.

Re:Reahl – A Python-only web framework by ikfmpwdsoz on Sunday January 20, 2019 @02:03AM (#18951602)
JavaScript is a god language. Changing Array.prototype is very much considered an antipattern, except in the case of shims, where it's really useful. JavaScript is reinventing itself, introducing a nice, traditional OOP facade with `class`, and making improvements to functional-ish programming with `let` (as opposed to `var`), arrow functions, and object and array destructuring. The DOM is still very much a "try to display something at all costs" mess that doesn't at all fail fast, but most of the things that you want to happen are indeed happening!