3 ms·
Most servers run on millions of lines of perl, python, or bash. The same things said about JS can be said there, but most of those things are at least as bad wi
by hajile 8y ago
Most servers run on millions of lines of perl, python, or bash. The same things said about JS can be said there, but most of those things are at least as bad with the added problem that they probably run with sudo privileges. JS is at least as good as these languages while being much, much faster.
True dynamically typed code does type checks at runtime which means that performance may suffer, but you are guaranteed to never have critical type failures (the type errors will occur and throw before something actually unsafe happens). This is a huge step up from C which is weakly typed and even untyped via void pointers.
Dynamically typed code is still typed. JS is not an unsafe language from a type perspective and from a security perspective, it may actually have the safest language implementations ever created.
If we're leaving the dynamic scripting language zone, options are very few without becoming tightly bound to Oracle, Microsoft, Google, etc. There are other great open alternatives (for example, SML would be faster with a great type system), but most of those have small communities (which can mean death to open-source projects).
- the_af 8y agoWhat you say makes some sense. However, do note I wouldn't advocate developing most desktop apps using bash or perl, and even python is doubtful. Yes, I know this can and has been done, but I don't consider it a good idea. Re: dynamically typed code, that's a rabbit hole I don't want to go down now. It's the stuff of flamewars usually. Let it be said I consider dynamically typed languages ill-suited for large or complex apps, for a variety of reasons. Javascript is probably the worst of them all. What I'm asking is this: javascript and its ecosystem are NOT the most suitable tools for developing desktop apps. Why is it then being pushed as the MAIN language for this? Not as an alternative, not as an option for web developers who don't know other languages, but as the MAIN language for everyone coding Gnome apps?