News for hackers. Stuff that matters.
Re:Diminishing returns of static typing by hinkley on Monday October 02, 2017 @05:33PM (#15388152)
I work with an in-house framework written in Javascript.

You would think by looking at the code that the creators had a 30 word vocabulary, because 80% of the code uses the same six nouns and four verbs to pass data around and what you use those for depends on the context of who is calling it.

Oh, but the entire thing is written using promises, so most of your function calls have no context. It's hell, and I'm starting to worry that Node has dug itself a reputation hole it will never get out of.

Re:Diminishing returns of static typing by flavio81 on Monday October 02, 2017 @06:35PM (#15388564)
I can feel your pain, but note that this isn't a fault of dynamic typing per se. This is bad coding (for example, no good use of modules) plus the problem of Javascript itself having many issues; not to mention the wildly different levels of quality within the JS library ecosystem.
Re:Diminishing returns of static typing by Eridrus on Tuesday October 03, 2017 @07:33AM (#15391643)
I don't think Node is doomed; Typescript + async/await makes code make sense.