'The best thing we can do today to JavaScript is to retire it’ Douglas Crockford
devclass.com
devclass.com
I'm relieved that Crockford suggests a substantial alternative, and wasn't just bashing JavaScript. In fact I was surprised by the headline, given his history of defending the language. Instead of just suggesting another popular language like Python or Ruby, he is more specific: "It needs to be a minimal capability-based actor language that is designed specifically for secure distributed programming. Nothing less should be considered."
Arrow notation, destructuring, functions as first class with underlying lambda calculus semantics (as opposed to lisp), async/await, back tick templating - strong features. Just need to get rid of the old cruft. Typescript and friends seem a good first step towards an implicit type system.
I think I’ll probably get used to it, though.
Typescript also doesn't catch cases where metaprograming is used when calling a function. You can put anything you want in there.
I'm pretty sure your linter will catch this.
If you don't have a linter, get a linter.
Do you mind elaborating on this? How does lambda calculus underlie JS/TS functions but not functions in LISP?
As a big ball of mud, it will be really hard to replace. There's too much value in being a swamp guide, so the swamp guides will resist anything that will take away from their status.
Totally agree. JS the Good Parts is what got me into JS around 2007. It used to be so accessible, this neat subset of features, coupled with the DOM.
The web in general has the problem of a million ways to do the same thing, and none of them works quite right.
Even though I suspect stadia is going to get shutdown, I believe in using the network as the computer with edge computing to turn the browser into a dumb terminal. This is the basis for the web framework that I am making.
I'm having lots of fun.
Another 5-10 years after that, there will be a hot new idea: thin clients!
On the desktop all OS vendors are messing the fat client development story and more 10 years won't help fix management, sadly.
His awful book that tried to teach JS like Java, and his framework at yahoo called YUI stood more in the way of progress than anything else.
Criticism is certainly warranted but I don’t see him having a track record of creative and interesting thought in this space to offer it
I can’t say that any long running production process like a webserver ever benefitted from leaking memory like a sieve and being a single threaded event loop designed for a UI event loop, but hey, someone has to keep cloud providers awash in cash.
Gotta love the need for tools like forever and such…
In the browser? There’s a deliberate 10 year period where certain browsers made a point to not support or rather distort standards, and another decade before that where a certain vendor that rhymes with bicrosoft featured embrace-extend-extinguish tactics that didn’t achieve much but annoy devs, but I digress. It’s a bit like CSS, aka a mess. You memorize a caniuse table and always polyfill promises
I vote for just hijacking flash and action script and force FOSSing it and just call it a day.