Rust in fuuukin weird why would anyone subject themselves to that?

  • 7
    Well, that was quick. 😄
  • 2
    @rutee07 still going, I'm on chapter 3.2
  • 0
    Weird in what way? What do you not like about it? (genuine question)
  • 1
    @RememberMe the syntax is very untraditional I would say
    It's not that I dislike it, I just think it's weird
  • 2
    The compiler simply doesn't let you do anything that might be dangerous, but you can use the "unsafe" escape hatch to bypass everything.

    The idea is that with proper SW architecture, you end up with maybe 10% unsafe code that you have to review manually, which is 90% less work than having to review all of it.
  • 2
    @frogstair hmm, depends on what you mean by traditional. I see definite similarities to ML/OCaml, for example, which has a heritage as rich and ancient as C's (ML's first "release" was in 1973, one year after C I believe?).

    The lifetimes syntax is definitely different and can get quite cluttered and annoying, I agree, but I'd also argue that there aren't many other ways you can express that information (if anyone knows a better way, please let me know).
  • 3
    Rust looks like swift and objective c had rage sex , the kid born was not sure which syntax to choose
  • 4
    Coming from java - agreed. The syntax seems foreign, i still don't write code that the borrow checker likes at first and the ecosystem isn't quite there yet either.

    Nevertheless - i love it. Hail rust.
  • 7
    You misspelled glorious.
  • 2
    Rust's focus is on getting the memory model of your application right. No data races, no wrong borrows, no pointers to non-existent memory.

    As a side effect, it forces you to actually think through a lot of things before writing some code. It's very hard for inexperienced programmers to prototype anything in Rust. Especially those coming from Java world. Nonetheless, it's a great language that, if nothing else, makes people better developers by forcing them to understand the underlying concepts a lot more.

    What's the alternative ? Java ? Yes, sure, but for many applications it's just too heavy and some optimizations are not possible (lots of objects with lots of pointers and lots of memory allocated). Go ? go makes some things easier, but is aimed towards stupid people at Google who were hired because of LGBT equality programme. C ? Rust is an evolution of C.
  • 4

    When I started working with Rust, I saw it as a C/C++ replacement for safe, high-performance embedded, desktop & server applications.

    The more I work with it, the more I see it as an easier application language than Java/Kotlin/Swift, and a better backend/scripting language than PHP, and even Javascript and Python.

    Having to deal with an entrenched misguided concepts like null in other languages is dreadful, not having that safety is something you really start to hate once you get used to "The Rust Way".

    I thought developing in Rust would always be slower than in something fast and sloppy like PHP, but with PHP there's just SO much more repeated refactoring, bugfixing, more refactoring, scrapping & rewriting, etc.
  • 0
    I like Rust very much because I can feel like a fresh, much younger me, being forced to think differently, abandon bad habits from other languages and borrowing... borrowing all the time! Now I am using Rust for every little utility tool I need - great brain exercise.
Add Comment