5 ms·
It's a matter of opinion. If you get used to strongly typed languages, the idea of having your entire application in something barely typed like Javascript feel
by mercurial 11y ago
It's a matter of opinion. If you get used to strongly typed languages, the idea of having your entire application in something barely typed like Javascript feels horrifying. I may be able to tolerate Javascript-with-a-typesystem (for instance, typescript), but raw JS? I don't see why you'd ever want to do that.
- mizzao 11y agoI think you just solved your own problem.
- octaveguin 11y agoTypeScript has a lot of holes. What I'd like is a language I can use that has optional typing where all the libraries follow a strict type system but the application I put on top of it doesn't care. That is the exact opposite of what I get with TypeScript. I'm left with a lot of dynamic mess libraries that I build my typed application on top of. Steel on top of jello.
- zaczac 11y agoif javascript is ok to be primary language, why choose another wrapper language to make it feasible? it is totally a disaster design in Javascript and the wrapper language should not bail out Javascript. Instead, just let javascript die.
- jsprogrammer 11y agoI believe there is already work on type inferers and static analyzers. Stripped down, functional C with type inference? Yes, please.
- kaendfinger 11y agoAll of which are going to be mediocre because JavaScript is a very hard language to simply reason about for machines.
- jsprogrammer 11y agoThe language is not fixed, further, tools do not need to support every feature.
- kaendfinger 11y agoHere's the thing, JavaScript as it is (specifically ES5, a little bit less so with ES6, but even then, still an issue) is too dynamic to reason about very well, especially when using large libraries that do crazy things. Yes, it can be changed to be easier to reason about, but the fundamental issue I see is that too many people are using the very dynamic features of JavaScript.
- derefr 11y agoJavascript could be versioned. If Javascript is changed to be more static and less "forgiving", browsers could ship with one engine to run legacy ES6 code and another to run new code.
- Drup 11y agoHow about a language that is not shit instead ? Javascript is the C++ of web dev. You bolt a ton of things on top of a shitty language and you hope to obtain a slice of it that is decent in the long run. Except it's still going to be full of terrible quirks and 30 ways to shoot yourself. I'm sorry, but I don't want this future for programming.
- Touche 11y agoOne thing JavaScript gets very right is first-class functions. There's nothing bolt-on about those. It makes it very easy to tolerate warts (which don't come up often anyways).
- douche 11y agoPiss poor string handling functions out of the box? Shitty date/time implementations (unless you're using moment) Callback hell? That's just my list for this morning.
- Touche 11y ago> Piss poor string handling functions out of the box? Don't know what you mean by this. As for the other things; like I said, getting first class functions right makes those other things unimportant. Are you running into the problems with DateTime that often? I can't even remember what those problems are. I don't doubt they exist, but I think you're over-inflating the importance.
- Drup 11y agoThey are not "very right" due to all the scoping weirdness and the late binding semantic.
- mercurial 11y agoC++ wouldn't have been the first thing I'd compare JS to. Visual Basic, maybe? But yeah, if you absolutely want a dynamic language, you have much saner choices with a considerably more robust ecosystem (hello Python). > I'm sorry, but I don't want this future for programming. I don't want this present either :)
- smacktoward 11y agoI think part of the author's point is that JS has now achieved so much critical mass, so to speak, that in the not too distant future it's just going to be the programming language. Being a programmer will be synonymous with writing JavaScript. So it doesn't really matter how you feel about JS per se; it's the language all the tooling will be built around, it's the language young programmers will have learned in school, it's the language that the people who cut the checks will assume by default you'll be using. So justifying using anything else will be an increasingly difficult uphill struggle as you fight against all these factors.
- rjbwork 11y agoWhich will be the day I leave the field. It's okay to toy around with, and decent for some DSL type things, but I think it an absolutely insane proposition to write a few million line codebase exclusively in JavaScript, especially when dealing with sensitive data, complex data structures, and complicated algorithms.
- vezzy-fnord 11y agoBeing a programmer will be synonymous with writing JavaScript. I think you should start laying off HN, in all honesty.
- smacktoward 11y agoDuly noted!
- s_kilk 11y ago> that in the not too distant future it's just going to be the programming language. Being a programmer will be synonymous with writing JavaScript. chortle Not so long ago they were saying the same about Ruby, and Java before that, and so on down a long and winding history of ludicrous one-language-swallows-the-world predictions.
- Touche 11y ago> Not so long ago they were saying the same about Ruby, and Java before that, and so on down a long and winding history of ludicrous one-language-swallows-the-world predictions. In this case it's not so much a prediction as an observation of what has already been happening.