News for hackers. Stuff that matters.
Re:The Hitchhiker's Guide to Modern JavaScript Tooling by ralfn on Sunday July 26, 2015 @12:02PM (#9951379)
Some of those features are only possible because Java is statically typed. They couldnt exist in the same way for "pure" JavaScript.
Re:The Hitchhiker's Guide to Modern JavaScript Tooling by recursive on Sunday July 26, 2015 @12:11PM (#9951404)
But they can exist in a statically typed extension to javascript. See typescript in Visual Studio.
Re:The Hitchhiker's Guide to Modern JavaScript Tooling by joshuapants on Sunday July 26, 2015 @01:24PM (#9951618)
I've been playing with Typescript in both Visual Studio and Visual Studio Code and Intellisense is great.
Re:The Hitchhiker's Guide to Modern JavaScript Tooling by MrBuddyCasino on Sunday July 26, 2015 @05:22PM (#9952236)
Facebook is doing something that enables better IDE support for JS, so static typing isn't absolutely required, it just makes it a lot easier. I forgot the projects name though, the IDE part was also not open sourced back then.
Re:The Hitchhiker's Guide to Modern JavaScript Tooling by feedjoelpie on Sunday July 26, 2015 @05:37PM (#9952276)
Their optional typing for JS is called Flow, and they've open sourced an IDE of sorts (a suite of Atom plugins) called Nuclide (http://nuclide.io/).
Re:The Hitchhiker's Guide to Modern JavaScript Tooling by MrBuddyCasino on Monday July 27, 2015 @04:12AM (#9953978)
That was the one, thanks.
Re:The Hitchhiker's Guide to Modern JavaScript Tooling by rejschaap on Monday July 27, 2015 @08:13AM (#9954662)
I have never seen anyone successfully bolt type-checking onto an existing language. It is always painful to use. It usually requires ugly added syntax and you need a special compiler if the language isn't flexible enough.

Why not just use a different language altogether? One that was designed with static type checking from the ground up?

Maybe Facebook likes the pain, they also pushed PHP further than anyone else was willing to. Burning insane amounts of resources with a somewhat disappointing result.