πŸ’¬ Reply by r00ty

2024-11-15 πŸ”„ programmerhumor ┃ RE: ?

The problem with rust, I always find is that when you're from the previous coding generation like myself. Where I grew up on 8 bit machines with basic and assembly language that you could actually use moving into OO languages.. I find that with rust, I'm always trying to shove a round block in a square hole.
When I look at other projects done originally in rust, I think they're using a different design paradigm.
Not to say, what I make doesn't work and isn't still fast and mostly efficient (mostly...). But one example is, because I'm used to working with references and shoving them in different storage. Everything ends up surrounded by Rc or Rc> and accessed with blah.as_ptr().borrow().x etc.
Nothing wrong with that, but the code (to me at least) feels messy in comparison to say C# which is where I do most of my day job work these days. But since I see often that things are done very different in rust projects I see online, I feel like to really get on with the language I need a design paradigm shift somewhere.
I do still persist with rust because I think it's way more portable than other languages. By that I mean it will make executable files for linux and windows with the same code that really only needs the standard libraries installed on the machine. So when I think of writing a project I want to work on multi platforms, I'm generally looking at rust first these days.
I just realised this is programmerhumor. Sorry, not a very funny comment. Unless you're a rust developer and laughing at my plight of trying to make rust work for me.

r00ty

https://kbin.life/m/programmerhumor@lemmy.ml/t/287977/-/comment/4183112

πŸ”„ programmerhumor

πŸ’¬ Replies

2024-11-16 Ephera ┃ 1πŸ”— 1πŸ’¬

I find these videos give a very visual explanation and help to put you into the right mindset: intorust.com
(You can skip the first two videos.)
[…]

2024-11-15 beeng ┃ edited

Go is really good for std library, windows and Linux from same code and static binaries BTW.

2024-11-15 2xsaiko ┃ 1πŸ’¬

Do you have some public code you could link to that you’re having this issue with? There isn’t a one-size-fits-all solution for Rc/RefCell, I think.

────

View thread

────

πŸ“‘ Local feed

πŸ•οΈ Communities

πŸ”₯ Hashtags

πŸ”Ž Search posts

πŸ”‘ Sign in

πŸ“Š Status

πŸ›Ÿ Help