4 ms·
I'd hope this was the case, but big part of what has made web development popular and smooth is the easiness and flexibility of JavaScript as a language. Rust
by illuminati1911 7y ago
I'd hope this was the case, but big part of what has made web development popular and smooth is the easiness and flexibility of JavaScript as a language.
Rust is not exactly easy and flexible, but everything else about it is absolutely great. I think people who will use/learn Rust are top x% or xx% developers who have decent experience in programming and probably understand pretty well how computers and computer systems work.
Javascript has democratized programming and React/Redux stack is widely accepted by developers as well as people looking after business interests in companies doing software development.
Rust would probably make world (of software) a better place, but there would be much less developers available and there already is global shortage of devs while demand is increasing. I don't see Rust replacing JS or React/Vue anytime soon.
- fortran77 7y agoRust will absolutely replace JS! You can compile it down to WebASM and people will start doing that soon. No more runtime errors in browsers! Yipee!
- hu3 7y agoRust is great but too cognitive-heavy to have any shot at replacing JS. One should not overestimate the importance of secure/fast over "gets shit done easily with minimal learning curve" on most projects.
- fortran77 7y ago> too cognitive-heavy Don't underestimate people's intelligence! (Or overestimate your own.) I think people will get it. Javascript is also very cognitive heavy.
- hu3 7y agoAt work, time and energy are best used solving real world problems. Not toying with technology for the sake of it. And surely you're joking when comparing JS's cognitive load with Rust's...
- echelon 7y agoHave you used Rust with an IDE? It's not at all hard to write. Hard to learn, sure. But it's easy to produce once you know how it works. Javascript without types and an IDE takes thought. You have to keep remembering which things are which type and how they get plumbed though the stack. Honestly I'd even say Rust is easier. But I've written a lot of Rust. Typescript with an IDE makes Javascript easier. The "Rust is hard" meme needs to die. The language designers have worked tirelessly to ensure that the language is accessible and productive.
- unionpivo 7y agoIt has nothing to do with intelligence. I can grab an average teenager without any kind of programming experience, and teach him enough in one day (maybe 2), for him to google, and copy paste him a working site with some interactive elements. Sure it will have a ton of bugs, probably only work on his browser, but it will work. For programming in rust, you need to have at least basic understanding of hardware model and operating systems, know concepts such as stack/heap, references/pointers etc. Its a ton of additional stuff you need to know, before you can even start. None of that is particularly hard (well most of it). But it's a lot of it. There are productive JS fronted developers who wouldn't be able to tell you what event based loop is.
- thrower123 7y agoMost software that is slammed together in JS doesn't need the kind of performance and correctness that Rust can bring to the table.