4 ms·
I disagree. Let's say I want to use a real type-safe language to write web applications. So rails/python/JavaScript/php is out of the window. I'm left with two
by skwee357 2y ago
I disagree.
Let's say I want to use a real type-safe language to write web applications. So rails/python/JavaScript/php is out of the window. I'm left with two big options: Java/Kotlin and C#. If I want to avoid Microsoft, I'm left with Java. And in fact, this is the industry standard for "real" web development: financial, enterprise, etc.
But Java is cumbersome. It's very `FizBazBarFooAbstractInterface` type of cumbersome. Kotlin makes it nicer, but Kotlin didn't get much adoption in the web industry. C/C++ is too low level for web development. Rust is the perfect language, in my opinion of course, to fill this niche.
Oh, there is also Go. Which is, by the way, also a system programming language. But nobody argues that Go shouldn't be used to write web services.
- lomase 2y agoJava is cumbersome but the borow checker is not?
- skwee357 2y agoMissed your comment. If you come from proper languages, like C, the borrow checker is not that bad. The problem is that most developers don’t even know when variables go out of scope. Sure, there are more to that in the borrow checker, and I’m far from understanding every single use case. But for fay to day web development, it’s fine. Java on the other hand is straight up annoying. It’s super bloated, there are 101 ways to do the same thing (recent example from swing: do I do new Broder(), do I use BorderFactory? What’s the difference? When should I use each one?). And it’s extremely wordy ‘Employee foo = new Employee()’
- lenkite 2y agoWhy is Rust more "perfect" over Go for web-services ?
- baq 2y agoPlease excuse me for pointing out you don't disagree with the post you're saying you're disagreeing with.
- skwee357 2y agoMy disagreement was referring to the statement that Ruts should be used only in-places where you'd consider C/C++.
- creata 2y agoBesides popularity (not denying that popularity is important!) is there a reason you'd prefer Rust over OCaml?
- skwee357 2y agoNever considered. I grew up coding in C, so always wanted to come back to something similar. After being spoiled by PHP/JS, couldn't go back to C/C++. Rust offered me a modern, C-like language, so I just learned it and applied forcefully wherever I could.
- creata 2y agoMakes sense, thanks.