[ $davids.sh ] โ€” david shekunts blog

๐Ÿฆ€"Puked on Rust. Origins" ๐Ÿฆ€

# [ $davids.sh ] ยท message #199

๐Ÿฆ€**"Puked on Rust. Origins"** ๐Ÿฆ€

Started going through rustlings and as a seasoned IT grandpa-fart I'll be complaining, but first I'll explain why I'm even looking at Rust and why I have so many feelings about it

#whyrustwhy #rust #c

  • @ [ $davids.sh ] ยท # 786

    i. Rust fills a very large need and has no alternatives

    **If we want to write something in C, but don't want to use C, then we take Rust, why?

    • Fine-grained memory management, and much safer than in C
    • Many ready-made solutions
    • A lot of modern production
    • A large and active community

    Is there another language with the same characteristics? No

    My favorite Zig, for example, is very raw (just try to find out how its multithreading works, or even better, multithreading in std.event.loop)

    And for the last few years, I've spent 30 to 100% of my time on DX (i.e., creating tools/libraries/software for developers) and plan to fully immerse myself in it in the future.

    And sooner or later, Go won't be enough for me, and I'll need memory management, and I'll have to either switch to C, which I really like, but damn, everything there is so outdated it's a disaster, or switch to Rust, but why I don't like it will be discussed later.

    ii. Rust fully implements OOP

    **Thanks to @niktimf, we were able to adapt all the examples from the OOP book to Rust, and you know what? We didn't have to invent anything at all, ABSOLUTELY EVERYTHING is already built into Rust itself.

    For example, in TS and Go, you have to write your own library with various helpers to work more conveniently with OOP (example of such a lib)

    Why is OOP in Rust out of the box? Because its design perfectly matches the combination of procedural and functional programming, and that's exactly what OOP is about.

    This is another reason why I can be calm that I won't have to explain OOP to the people I'll be working with; it will be there anyway because that's how Rust is designed.

    iii. And in principle, that's it

    **These two reasons alone make Rust an almost unrivaled option for me, so anything I don't like about it will hit me right in the heart.

    And the more I learn it, the less I like it...

    And what I don't like, I will gradually start posting under the tag #whyrustwhy

  • @ [ $davids.sh ] ยท # 794

    ! FORGOT TO MENTION !

    Rust has SUPER-AWESOME documentation and tutorials

    I've never seen such beauty in my life, at first glance it's just a blast, I think this is the key to Rust's current and future success