r/javascript • u/brunnock • Aug 05 '22
'The best thing we can do today to JavaScript is to retire it,' says JSON creator Douglas Crockford
https://devclass.com/2022/08/04/retire_javascript_says-json-creator-douglas-crockford/154
u/mishugashu Aug 05 '22 edited Aug 05 '22
I mean, before we can retire it, we'd need another client side language to run the web that is actually better.
Edit: Ah, after actually reading the article, he acknowledges that.
Crockford said: “There are two difficulties. First, we don’t have the next language yet. It needs to be a minimal capability-based actor language that is designed specifically for secure distributed programming. Nothing less should be considered. “Second, we need all of the browser makers to adopt it and to simultaneously replace the DOM with a well designed interface. Good luck with that.”
67
u/szirith Aug 05 '22
Crockford said: “There are two difficulties. First, we don’t have the next language yet. It needs to be a minimal capability-based actor language that is designed specifically for secure distributed programming. Nothing less should be considered. “Second, we need all of the browser makers to adopt it and to simultaneously replace the DOM with a well designed interface. Good luck with that.”
Wow, I actually agree.
54
u/og-at Aug 05 '22
That's because people like to take his one sentence and slap it on the headline.
Crockfords biggest problem is that he drops these one liners in the middle of saying things that are pretty uncontroversial.
No way in hell someone would quote him with
"we need all of the browser makers to adopt" a new language for the web
16
u/HermanCainsGhost Aug 05 '22
I mean it's not just JS, it's the DOM as a whole. It was just not made for what it is now used for.
3
u/tr14l Aug 06 '22
Could you expand on what way the DOM is a limitation?
3
u/IceSentry Aug 08 '22
They probably can't. People repeat this all the time yet a ton of people are building very complex apps with it and the dom api is rarely the bottleneck.
2
u/aClearCrystal Aug 10 '22 edited Aug 10 '22
I think the rise of Electron apps proves Javascript actually being a valuable language, which doesn't just stick around because it's difficult to replace.
Teams creating native apps have (nearly) free choice on what technology they use to design and create front ends, yet many still choose to create their front ends with HTML/CSS/JS, simply because it works really well.
Electron even has some major drawbacks like a huge installation size, yet many ignore them because the design process is simply superior for many teams.
1
u/madwill Aug 10 '22
Personally I blame Apple for Electron's rise. If MacOS had an easy way to cross compile. People would not have the insane task of maintaining two codebase and more people would not pick Electron.
1
u/tr14l Aug 08 '22
Yeah, I am definitely struggling to imagine what would significantly improve it in such a way that it would need a full overhaul
1
u/madwill Aug 10 '22
Flex back in the day had a absolute positionned display model. Each component was a set of vectors on top of each others. There were component for stacking vertically or horizontally and list used item renderer by default which only rendered displayed items like react-virtualized does.
It was absolutly amazing. You could have flat type UI with only single vector defining a button. States were defined indivisually. Could change size/colors/add stuff like gradient or corner radius. Making things bounce. All up to you in how you define the state of a component and then place them either exactly where you want them or use a stack component to help with with it.
No gotcha, not weird rules to keep in mind. No trial and errors t'il you somehow sort of get it. (Peter Blinds Venetian GIF) It was instictive and natural. Flex and css table sort of get there while still needing to read the docs all the time as nomemclature is not easy.
Heard great things about WinUI as well. HTML / CSS is old, weird, glitchy, counter-intuitive and made for PDF style page. Everything else is a hack over it from the ingenuisity of people pushing its limits.
1
7
u/Ehdelveiss Aug 05 '22
If we can get TypeScript that compiles to Rust, that would be grand
9
2
u/tr14l Aug 06 '22
I doubt the future language will be statically typed unless it is also runtime enforced, and even then, I doubt the community would actually accept it. Static typing by itself is only a marginal feature gain. TBH, TypeScript is pretty overhyped.
1
u/IceSentry Aug 08 '22
You should probably just learn rust at that point.
1
u/Ehdelveiss Aug 08 '22
You could, I know Rust decently well, I just find TypeScript so much more ergonomic
1
u/tr14l Aug 06 '22
I mean, I guess. What benefit would it have over the current ecosystem, though? I mean, would it solve any SIGNIFICANT problems? Sure there's some minor problems it would solve, but is that worth trashing the ecosystem and starting from scratch for? I just don't see it, personally. Javascript does its job, and to be honest, for the most part, it does it pretty damned well. I get that it has some quirks that devs from more strict languages don't like. But, it's not a hard language to learn if you just, you know, learn it. You can master the fundamental concepts of JS in a week or two. Try to say the same for Java, I dare you.
The only real alternative would be browser-capable Python, but Javascript is faster and more nimble than Python.
As far as the DOM... I don't see how you even would replace it. I guess I would need more in-depth information about the perceived flaws of it. It's just a tree. Pretty common data structure. Or is he referring to some specific implementation details? I dunno, the whole thing just seems like bluster to me. There's nothing WRONG with how things are going. It's not the best it could be, but it also never will be. And I don't see any issues with just modifying the current ecosystem piece-wise. Make experimental features for people to leverage. One at a time. Make an alternate DOM model in your browser that devs can choose to use. Keep upgrading Javascript functionality and syntax. Make a different package manager. Whatever.
I don't get it, personally.
1
u/1m1-reddit Aug 06 '22
What about dart?
3
0
Aug 06 '22
[deleted]
2
u/1m1-reddit Aug 06 '22
Gaining speed, type safety, concurrency concepts
0
Aug 06 '22
[deleted]
1
u/1m1-reddit Aug 06 '22
dart is consistently faster than js
https://www.google.com/amp/s/programming-language-benchmarks.vercel.app/amp/dart-vs-javascript
183
u/getify Aug 05 '22
I think Crockford's thoughts on JS are no longer relevant. Of course, some say that about me, too. Shrugs.
107
u/ILikeChangingMyMind Aug 05 '22
In my opinion, they never were.
I once saw Crockford give a speech at Code Camp in Los Altos. He spent the first half of the speech going on about how you shouldn't follow formatting rules just because someone says so, but because there's a good reason: that they prevent a bug or otherwise objectively improve the code.
He then spent the second half of the speech offering Crockford's subjective pet peeves about JS formatting ... ie. he gave a big list of formatting patterns (some of which I'd consider anti-patterns) with zero explanation of why you should use them ... after just spending the first half talking about why the explanation was so important!
The man is a pompous blowhard who has set the JS community back at least as much as he pushed it forward. JS: The Good Parts has some good parts ... and some anti-patterns that lots of people now believe are best practices. He invented JSON, but he also ensured (on purpose) that there could be no comments in JSON (he's the reason you can't document
package.json). He invented JS Lint, but was so fixated on telling the world how to write their code that it had to be supplanted with a new, more open-minded project (ES Lint).Fuck Crockford.
27
u/Asmor Aug 05 '22
When I started coding professionally, I followed Crockford's rules as closely as I could.
I ended up throwing a lot of the stuff out, but not all of it. For example, IIRC he insisted on a single
varstatement for declaring all variables at the top of the scope. The top of the scope thing was because of hoisting, but there was no good reason to use a single var statement. Anyway, I did that for a while. Eventually I stopped, because it was just bad, and made for worse code.But I still use
===and!==over their non-strict counterparts in JS code. On the exceedingly rare occasion where I want non-strict equality, I'd leave a comment explaining why I was doing that, but more likely I'd modify the code so that I could use a strict operator instead.15
u/otown_in_the_hotown Aug 06 '22
I wrote an article a million years ago about why the single var pattern is bad.
13
u/ILikeChangingMyMind Aug 05 '22
Even a broken clock ... ;)
(I'll be the first to admit that not everything Crockford says is bad. But that's part of the problem: he says a lot of good stuff, and then also a lot of bad stuff, and the new learners he preaches to can't tell the two apart.)
3
u/iarev Aug 05 '22
I ended up throwing a lot of the stuff out, but not all of it. For example, IIRC he insisted on a single var statement for declaring all variables at the top of the scope. The top of the scope thing was because of hoisting, but there was no good reason to use a single var statement. Anyway, I did that for a while. Eventually I stopped, because it was just bad, and made for worse code.
Why is it bad to use a single var to declare multiple variables? I'm new to JS and do this sometimes. It just seems cleaner than a single var for each.
1
Aug 06 '22
[removed] — view removed comment
2
u/Asmor Aug 07 '22
No, the opposite. That was an example of one of his rules that I continue to follow.
0
Aug 06 '22
[deleted]
4
u/certified_lad Aug 06 '22
A JSON parser that can detect and handle comments. I'm not an expert on parsers, but I've written a small one before and I would say that adding comments to an existing parser should be almost a trivial task.
3
u/ILikeChangingMyMind Aug 06 '22
Yeah, it's much less about the technical difficulty and much more about the institutional difficulty of getting organizations like the Node org to change.
6
u/LastOfTheMohawkians Aug 06 '22
I really enjoyed your Functional-light JS book. Thanks for publishing.
2
u/mikeratcliffe Dec 16 '22
u/getify your books are way more informative than Doug's ever were.
If you had invented JSON, I am sure that you would have allowed comments and trailing commas... and then there's the mandatory quoting of keys in object literals. Just what was he thinking?
Those choices made me start to question everything Crockford says!
37
u/0xAERG Aug 05 '22
"We should be focused on the next language, which should look more like E than like JavaScript."
The hell is E ? This shit http://erights.org/ ?
The hell is this OOP nightmare again ?
27
11
4
u/crabmusket Aug 06 '22 edited Aug 06 '22
E is the good kind of OOP. See also Erlang and Smalltalk.
(Well, actually I did see a few little red flags in what little I've read on E. But it's got a better direction than Java, regarding OOP.)
3
2
2
0
Aug 06 '22
[deleted]
3
3
u/crabmusket Aug 06 '22
It sounds like he wants the actor model baked more into the language, given his comments about distributed systems. That seems to be what E is going for.
10
u/MOFNY Aug 05 '22
Dude we had trouble retiring IE and Flash. At least JS has improved over the years.
41
6
27
Aug 05 '22 edited Aug 05 '22
That is the funniest thing I read in months. Clearly its time for Crockford the crackpot to retire.
12
u/ILikeChangingMyMind Aug 05 '22
It was time for him to retire a long time ago. One of Crockford's earliest contributions was JSLint. Because it came first it was the dominant linter of the time.
Crockford was such a poor/opinionated maintainer (read: pompous blowhard) that he alienated the entire community and made everyone switch to a "fork" project, the current dominant linter (ES Lint). And that was over a decade ago ...
5
u/jlocash Aug 05 '22
I get the sentiment. JS is practically a completely different language today than it was originally and there is varying levels of support for different standards. However, there’s not much to be done about that considering it runs the web?
5
u/tchaffee Aug 06 '22
The JS of ten years ago has mostly already been retired. With a good set of ESLint rules (and optionally TypeScript), along with the many improvements JS got over the past decade, it's simply not a language that deserves much criticism anymore. It's a great language to code in if you take the time to learn the modern version of it and use the right tools.
5
u/minus-one Aug 06 '22
totally agree. problem is not the language, the language itself is actually good (well Scheme parts) - the problem is the bloat, constant bloat: classes and generators and all that nonsensical crap… and then someone comes up with # for private fields… it’s totally bonkers… and people vote for it… and now this crap is in the language… and it just multiplies itself. the elegance and functional essence is almost gone. it can’t be helped. 😕
4
Aug 06 '22
This. 100%. I can't believe people are laying into Crockford for suggesting this. Yeah, he's the old man, but he shouldn't be the one calling for this, the new generation of developers should be. Instead we get another generation still opting for a language that's using flawed, Java-style OOP.
31
4
u/KnightMareInc Aug 06 '22
I agree with him, there has been so much stuff added to the JS ecosystem by people who are bitter about having to use JS. They much rather use language X but the web has taken over and JS powers the web.
12
u/ds604 Aug 05 '22
two languages which are notorious for their "crappiness" are javascript and C, which also happen to be the two languages which are undeniably and irreplaceably fundamental to their respective platforms. this suggests that their "crappiness" might in fact be responsible for their foundational place.
it seems like the "crappiness" is a term that people further down the line use to refer to the property of "flexibility," which is what allows the language to become fundamental in the first place. it would be like someone referring to poured concrete as a "crappy" form of bricks: the fact that it's moldable is what makes it usable as a foundational material. the issue is, even if later on you use a more rigid material, you can't get embarrassed and toss out the old thing in favor of the new one just because it has properties that you don't like, because the fact is that *new people* will still need to use the more flexible material to build new things, even if you're not doing that anymore.
what i don't quite get is, if it's possible to add "use strict" and get different behavior, why not use the same capability to provide either other restricted or augmented sets of behavior? hooking into the existing compilation infrastructure to provided augmented functionality seems like a better approach than piling on features into an ever-more-complex language specification
1
u/crabmusket Aug 06 '22
Wishing "use strong" had taken off. It was an interesting attempt to fence off some of the highly dynamic parts of JS which made performance optimisations difficult.
0
Aug 06 '22
[deleted]
1
u/NoInkling Aug 06 '22
implicit
.toString()calls inside template stringsIt's funny you use that as an example, because this will already throw an error:
const foo = Symbol('foo'); `${foo}`;You have to do it explicitly:
const foo = Symbol('foo'); `${foo.toString()}`; `${String(foo)}`;1
u/ds604 Aug 06 '22
interesting! is there a way to try out different augmentations like these?
at one point i was thinking of using Babel to try different augmentations, but what I had in mind was more like operator overloading, and things to make it more ergonomic for scientific purposes. but Babel I think constrains you in terms of adding new syntax, so that led to looking at tree sitter. but i'm not any kind of language expert, i just wanted to try out small ideas without getting a phd in compilers or whatever... so, interested in any easy ways to try out stuff like this
1
u/toastertop Aug 06 '22
This would solve poor object performance by disallowing mutations (use Map instead). It would likewise solve array performance by forcing them to be of a unified type or transform them into a tuple (also performant).
I prefer FP, but how is immutable map faster than an mutable object?
Is object.freeze() what your describing to disallow mutations?
6
11
Aug 05 '22
Please make an actual language to replace JavaScript Jesus Christ it’s been rehashed so many times do I use require or import or typescript or Ecmascript or classes or function based everything- ITS BROKEN HAROLD ITS TIME TO GET A NEW ONE
Just kidding. You’re the chosen one, redditor. I’m sure you can make yet another JavaScript framework that redeems the language and we can use for another week until the next chosen one comes along. /s
3
Aug 06 '22
We don't need to retire js but we could rely on it less and stop bloating webpages with it.
3
3
u/DOG-ZILLA Aug 06 '22
JavaScript in the browser World is an entirely different beast to most other languages.
Whilst the language does get updates, you cannot simply and easily deprecate old features because you would “break the web”.
As web developers, we don’t get to say “this should use JavaScript ES10” or anything like that. Maybe if we could, things would improve? But then, interoperability would suffer…. you’d have scripts all over that don’t work in some situations.
If you’re doing PHP, you can run it on a server with which you have total control, so you’re free to choose whatever version you like.
Unfortunately for us frontend people, we are at the mercy of the browser and whatever the user has chosen to use.
3
u/differentsmoke Aug 06 '22
Good old Doug Crockford still ruffling feathers.
I see "the world we live in isn't necessarily the best world" isn't a popular opinion.
9
u/BarelyAirborne Aug 05 '22
Translation: No one is buying my books any more.
0
u/ILikeChangingMyMind Aug 05 '22
If only that were true: sadly his bad opinions are continuing to infect new generations of JS developers even as we speak.
6
u/Buckwheat469 Aug 05 '22
JavaScript has acquired lots of complexity, and a typical application today includes a build process using WebPack, Rollup or some other bundler, a long way from Eich’s original concept.
If this is the main problem then the best solution is to figure out why developers are using transpiled solutions to a client-side problem. Javascript has the concept of Web Components already but few people actually use them. The reason I would argue is that they can't use JSX with Web Components. The first thing Javascript should solve is how to process a JS file with JSX embedded.
The next thing should be creating Web Components as functional components, like React. Perhaps a simple annotation or function wrapper to convert a function to a Web Component is good enough.
There also needs to be some improvements with CSS imports in this regard.
I've found that web components can be as fast or faster than React, but they're difficult to write. It's easiest to copy/paste a template, but difficult to write from scratch unless you're an expert. It's also a vastly different concept than React so you have to retrain your thinking about component state and data passthrough.
-6
u/Lupexlol Aug 05 '22
The jsx argument is nonsense
7
u/Buckwheat469 Aug 05 '22
Can you explain? IMO it's a heck of a lot better than writing
document.createElementand dealing with that, or using anhtmlfunction that doesn't have syntax highlighting.
9
u/Scileboi Aug 05 '22 edited Aug 05 '22
So what are the better alternatives, Mr Douglas?
4
u/SEAdvocate Aug 05 '22
Some other language into WASM
3
u/tnnrk Aug 06 '22
Yeah we just need a easy high level language that complies to wasm
2
u/_alright_then_ Aug 06 '22
I mean most languages can already be compiled to wasm so that shouldn't be the problem
1
u/tnnrk Aug 06 '22
Oh really? I thought it was only a select few, my bad.
1
u/_alright_then_ Aug 06 '22
Yeah, it's pretty cool. Here's a nice list of all the repositories and stuff like that
→ More replies (4)5
8
2
2
u/kev2316 Aug 05 '22
Ironic what they recognize and then the end the solution. It was my initial gripes with javascript god however many years ago and the DOM. But until we can replace it and then make a converter that can legit take all existing code and transpile it to a modern replacement. The end remains true. Good luck 😄
2
u/ndobie Aug 06 '22
Honestly I feel like JavaScript is just starting to hit its stride. TC39 has found a better way of releasing features and browsers are much better about following the specifications. What hurts JavaScript the most (and is going to affect WASM too) is that there is no official engine like with every other language.
I always saw WASM as another tool for developers and not a replacement for JS. JS isn't great at heavy calculations but it excels at being a reactive language making it perfect for UIs. Having the ability to use WASM for the heavier calculations while JS takes care of the UI allows for each tool to play to their strengths.
2
Aug 06 '22
I mean the whole 3 pack html css and js were never meant to do anything close to this. They need an upgrayyed
2
Aug 07 '22
He’s been saying this for years. Retire JS but without backing it up with how. Let me see roadmaps as to how that gets done.
Yes I have this new language over here that could replace JS (plug language I’ve been working on). Great! What about browsers and the total shift they need to take? What about the millions of sites and applications that run on that platform? His answer is always, yeah right, like that’s going happen.
So why keep bringing it up? Self promotion? Wanting to remain relevant? Just stop saying this shit without backing it up.
He has his points, JS is floored, it has its pain points and intricacies but fuck me, it works right! It does do a job and I’d say it does it pretty well (debatable). Is it bloated? Yes, we have many APIs available in the browser that most of us don’t use. Are we constantly reinventing the wheel with library x and framework y? Yes. Does that mean the language needs changing? Really? Instead, it might mean we still need to improve how we all work together and make things more standardised. Idk, that’s another thread all together.
JS needs retiring! No it doesn’t. Look at how much it’s brought over the past 10years. It’s helped create companies, careers, industries even. Node brought us a way to use the same language on client and server and look what that’s done over say, the past 6years.
All this made JS the number 1 language, and it’s not because it’s the perfect language, or the best language. It’s because imo, it’s one of the most accessible languages, people have many ways to onboard on to it and learn. If you really wanted to, just crack open dev tools, hit the console tab and start coding. Nothing good else does that.
That’s the power of web as it is now, with all its imperfections and inadequacies, it works for most use cases. Changing one element of it means changing it all and do we see that happening anytime soon. I doubt it. So instead of replace, retire the thing we should embrace and improve the thing, together.
2
u/aClearCrystal Aug 10 '22
I think the rise of Electron apps proves Javascript actually being a valuable language, which doesn't just stick around because it's difficult to replace.
Teams creating native apps have (nearly) free choice on what technology they use to design and create front ends, yet many still choose to create their front ends with HTML/CSS/JS, simply because it works really well.
Electron even has some major drawbacks like a huge installation size, yet many ignore them because the design process is simply superior for many teams.
4
Aug 05 '22
preface: I have a lot of respect for Douglas, he's done a lot for JS, and technology broadly.
People have been trying to "replace" Javascript for over a decade. The most notable example was Google Dart and that went nowhere, and Google controls a massive majority of the browser market share.
Douglas is absolutely "old man yells at cloud" here - JS has problems, its eventually successor will have problems, software will continue to be written.
4
Aug 05 '22
The sheer amount of ignorant comments here is very telling about the state of JS and software development...
2
u/CoffeeDrinker115 Aug 05 '22
Never realized how much people hate Douglas Crockford. I feel vindicated because whenever I'd read his stuff it never resonated with me. But people treat him like a javascript god.
2
u/bryku Aug 06 '22
Personally I agree with him. Don't get me wrong, I fucking love javascript, but it has become a mess and was never designed to do what it does now.
There are was no way telling what js would become, so it isn't like I blame anyone, but clearly js has become such an important language and tool for the modern web.
I often wonder how much faster it could be redesigning it for our uses today?
How much faster would it be if we had modern tools build in?
How much space could we save if there ilwas a byte code version? Or I guess wasm nowdays would work.
I just don't think javascript can keep evolving the way it is now. New or should I say modern features feel like they are duct tapped on 10 years to late.
The only way I really see js actually evolving and keeping up is if it breaks backward compatability and starts fresh... but at that point you can't really call it js anymore.
However... with how things are I thin js will be with us for the foreseeable future. It isn't going anywhere any time soon. Unless Firefox or Google make their own and include modern features.
0
Aug 06 '22
[deleted]
2
u/bryku Aug 06 '22
There are a lot of thing they could add, but it could cause mutations like we saw with many of the es6 features. Causing some of the standard behavior to change.
Dart had some crazy stuff going on. For the web it just compiled to js, so you weren't gaining performance. Also it often added extra code like type script does for compatability. While that can be good, it also makes it harder to know what your code will look like on the other end. Which is sometimes a problem eith typescript ending up slower. Although you can tweak this, so it isn't as bad, but you still have to problem of not knowing what it will look like.
I could keep going, but my main point is... how long can you keep slapping in new features without running in compatability and or performance issues. Sometimes you just need to redesign it from the ground up... and eventually that it will happen or another language will do it.
2
u/adostes Aug 06 '22
This is an annoying hot take that has been going around for 20 years. It’s even more annoying coming from a figure of authority.
The replacement is not there, if anything JS use is growing. So stop calling for the death of JS, it doesn’t matter if you like it or not, or if it’s good or not, it’s got 100% market penetration.
4
u/differentsmoke Aug 06 '22
So did Java at some point. How did that turn out?
Crockford is giving an opinion and fully acknowledging why it isn't plausible at the moment.
1
u/allen9667 Aug 05 '22
Setting backwards compatibility aside, is it technically possible to ship a dart runtime into chromium? (Instead of shipping it on the fly as what flutter web does today)
5
u/ILikeChangingMyMind Aug 05 '22
It's possible, just like it's possible to make a pig fly ... but that doesn't make it a good idea ;)
0
u/allen9667 Aug 05 '22
Can you elaborate on this? I thought Google created dart with it being the next JavaScript in mind, and it’s also way more pleasing to develop with compared to JS.
8
u/ILikeChangingMyMind Aug 05 '22
Heh, I interviewed a Dart fanatic for a job once; he might agree with you ;)
Look, Dart was obviously created to supplant JS. So was GWT (ie. Java supplanting JS). So was CoffeeScript, and there've been others too. But there's a reason why not even Google (the company behind Dart and GWT) added either language to Chrome. Well, actually many reasons.
The first and most obvious is "if it ain't broke, don't fix it". JS isn't broke, despite detractors' claims. Second, trying to get the web to adopt a new language is a massive, massive undertaking, both technically (to make it at all viable, not just Chrome but every other browser needs to implement it) and socially (the entire community needs to agree it's a good idea).
No one has come close to "selling" the world on any one new JS replacement .. although Typescript is probably coming the closest, having had some success in influencing the course of JS.
1
1
-1
u/FredTillson Aug 05 '22
Bunch of code camp children commenting on a giant of computer science. Pathetic. You missed his whole point. Probably because you didn't read the article.
0
Aug 05 '22
[deleted]
-2
u/ILikeChangingMyMind Aug 05 '22
Most boot camps I know don't put any books on their reading lists: they provide their own curricular material.
But even if they did, I certainly wouldn't hire from a boot camp that was giving their students The Good Parts in 2022. That book was an acceptable (albeit flawed) choice years ago when it first came out, and its flaws have only grown more prominent over time.
1
0
1
1
u/saposapot Aug 05 '22
I partially agree with his sentiment that recent versions and proposals are more about bloating the language so it has all the “cool features” than really addressing the issues.
Still, it’s very unlikely a new language will appear and be added to all browsers to replace JS. Just never gonna happen
1
1
Aug 05 '22
People like to shit on Crockford but his comments about his reasoning for linting and code readability were excellent. Like how being consistent and reducing cognitive requirement to read code is better.
Think we're going to a good place with the ability to use TS without a transpilation step required first
-2
0
0
0
u/die_billionaires Aug 05 '22
I have to agree, there are so many better languages. Sure js is necessary but not for long.
-13
u/Secret-Service_Agent Aug 05 '22
Is this guy clinically retarded?
5
u/LaSalsiccione Aug 05 '22
He’s one of (if not the most) influential people ever in the world of JavaScript
-1
u/Secret-Service_Agent Aug 05 '22
Oh, he must be trolling then because this really doesn't make much sense. Poe's law.
7
u/LaSalsiccione Aug 05 '22
I think he just has dumb opinions now but he has been known to say quite inflammatory stuff
0
-3
0
-3
u/dankobgd Aug 05 '22
In theory that would be amazing but sadly it's not feasible.
It's a rare smart sentence from him even though it comes from a guy that didn't design a data format to support comments lmao
0
Aug 05 '22
[deleted]
3
u/Snapstromegon Aug 05 '22
As someone who has a day job in the C/C++ world (automotive sector) and does a lot of python there too, who does JS, TS and Rust in private projects and has at some point in time of his live coded in Haskell, Java, Scalar, ASM, go, Perl and more, I strongly believe that JS is not a bad language.
It obviously isn't perfect and things like type annotations would be great, but I still would pick it over many others for new projects and at work we're also switching in JS for python more often than before.
I personally think that e.g. rust is awesome, but that has downsides too. In general languages are a bunch of considerations and you should always pick the right tool for the job. I wouldn't build a kernel in JS as much as I wouldn't build a simple "alert('hi')" in C++.
→ More replies (4)
77
Aug 05 '22
[removed] — view removed comment
29
19
u/anton966 Aug 05 '22
We’re in the days of functional programmation and JS doesn’t get enough recognition for being one and more so than python.
Beside all of its quirks, JS really has its own set of interest.
→ More replies (3)6
u/Skhmt Aug 05 '22
Yeah I actually prefer JS or TS to any other language right now too, and I've used a bunch.
710
u/ZuriPL Aug 05 '22 edited Aug 05 '22
How does one imagine retiring a language that is literally the fundament of the web?