4

How do i write better Rust code?,
Any project ideas / tips?

Comments
  • 8
    From what ppl tell me, you will need some long socks with pink strips, and cat ears.
  • 3
    Rust is all about thinking outside the box and finding a good abstraction/pattern which allows you to do what you need with little friction from the borrow checker

    It's hard, and can be frustrating, but after a while you'll get the hang of it

    I don't think there are general rules for writing better Rust. Only way is to write a whole lot of Rust and see what works and what doesn't

    If you have any specific questions though, feel free to hit me up here on DevRant. (note: @adding someone only works in comments, not in posts)
  • 2
    Just spam Lorentz or 12bitfloatii
  • 2
    @magicMirror cat ears for sure, I think they have that as swag instead of stickers. But who would want a sticker of a lame crab anyway.
  • 2
    On topic: like every language. Just do it. Pick an app you want to copy or something new and make it. If you don't know what to make : a terminal multiplexer like tmux / screen is smth that hits quite a few different areas. Subprocessing, ipc / sockets communication, tty handling etc. It's probably enough to cover some basics of the Lang. I like to make stuff myself and check later how with AI if I took a good way.
  • 3
    Choose another language.
  • 2
    @magicMirror see, I was gonna be nice and not post something mean. Then you come in with this? lol

    I was just gonna say: "don't". Which I thought was kinda mean.

    @12bitfloat

    I keep hoping Rust will show the C++ committee that things can be better. So it inspires the committee to finally find the better language hiding in C++. Not sure it will happen in my lifetime though.
  • 2
    @Demolishun

    > c++ committee

    > better

    yeah... thats not happening lol
  • 2
    @12bitfloat fuuuuuuuuuuuck....
  • 1
    @Demolishun It's so sad too because C++ is such a powerful language but they just can't stop themselves from implementing features which are convoluted and half-baked at the same time
  • 1
    This is how: https://veykril.github.io/tlborm/

    --
    go on, go on, breath it all in, let rust's nuances choke the newbie out of ya
  • 1
    tip 1: replace rust with c#
  • 1
    Thanks everyone some of the comments were funny and i even choked on my sprite when reading some of them.

    especially the mentioning of cat ears lol
Add Comment