News for hackers. Stuff that matters.
Re:JavaScript Fatigue or My History with Web Development by Peaker on Tuesday June 27, 2017 @06:43AM (#14644020)
If you're willing to use transpilers, why stick to JS at all, when you have a wealth of languages available?

Scala, Purescript, Haskell, Elm, ...

Re:JavaScript Fatigue or My History with Web Development by _ar7 on Tuesday June 27, 2017 @10:04AM (#14645442)
Because JavaScript

1. By far, has the largest ecosystem.

2. If you use a linter, a typechecker (TS or flow), and transpile your code (TS or babel or both), JavaScript is actually a pretty nice language to work in.

Sure it's a chore to set up all the initial tooling, and learn the ins and outs. However, once you're past that, it's usually not worth it to switch.

Re:JavaScript Fatigue or My History with Web Development by Peaker on Tuesday June 27, 2017 @11:03AM (#14646003)
1. The ecosystem is available via bindings too (to most transpiled languages)

2. It's still far from the state of the art in PL design and missing:

* Nice static typing with type inference

* Nice guarantees about null access

* Nice guarantees about interop between client and server

* ...

Re:JavaScript Fatigue or My History with Web Development by unclebucknasty on Tuesday June 27, 2017 @03:01PM (#14648216)
>It's a chore to set up...and learn...

>However, once you're past that, it's usually not worth it to switch.

That is somewhat circular and can be said of virtually anything. That is, for every minute you invest in a tech, the degree to which it is worthwhile to switch to another tech diminishes. I'm speaking primarily about tech like frameworks that is aimed at making us more productive.

The exception might be a truly revolutionary new tech that sharply boosts productivity, but also has a very low learning curve. However, that scenario seems particularly unicorn-ish where JS frameworks are concerned.

Re:JavaScript Fatigue or My History with Web Development by WorldMaker on Tuesday June 27, 2017 @12:05PM (#14646654)
The closer the transpiled language to JS the lower the impedance mismatch. Whatever language I write in, I may need to dive into debugging it as JS. Whatever language I write in, I likely have to use/adapt JS code samples from libraries and dependencies written in JS. More often than not that's a paper-cut; Haskell often has a huge impedance mismatch from x86 assembly but you can still debug it pretty well and FFI into assembly libraries with varying levels of ease based on library documentation.

But especially when you are working with other developers and a mixture of skill levels, impedance mismatches are useful paper-cuts to try to minimize.

Re:JavaScript Fatigue or My History with Web Development by Peaker on Wednesday June 28, 2017 @03:51AM (#14652407)
That argument can be used to justify using assembly because you would sometimes have to drop down to assembly level when debugging native code.
Re:JavaScript Fatigue or My History with Web Development by WorldMaker on Wednesday June 28, 2017 @10:43AM (#14654545)
I mentioned that. There are still programmers that do justify using assembly that way, and many historically. There are many programmers that just C/C++ over C#/Java/et al for very similar reasons.

I agree, it's not a strong argument, but it is an applicable argument to the discussion. There are trade-offs in every decision, and this is a consideration in those trade-offs.