r/learnrust • u/SceneThat3967 • 6h ago
Learning advice ? Sorry it is a long post...
Hello there Rustaceans! A random gopher enjoyer has accidentally stumbled into this mess and I think I finally found something I can truly enjoy. Sorry in advance for the tone/style I don't really write so much, in fact I am terrified of it, but my psychologist said that doing stuff outside of comfort zone helps :D. (this post might be just yeeted out from here due to some guidelines it is okay)
Over my career (5 years approximately + the unknown amount of overtime I have done), I had the chance to experience a wide array of languages at various startups and corporate environments, and I was somewhat dissapointed in the lack of care and attention to detail that came from just shipping the next thing without thinking about stuff like... I dunno CPU cycles/RAM usage/costs. For a while I thought the problem was with me that I don't look at the BiG PiCTuRe or some nice headline that was flying around recently. I always cared and was interested in what is under the hood, that everything in essence is just bits and bytes, and how we move and work with these bytes describes some behaviours. But well I did learn computer science for a reason and I don't think it was walking over what is down in the trenches as opposed what the trends of our time are doing, I realized this industry tends to learn into the bad trends too early like vibe coding for the sake of shipping more. I am now for some reason,couldn't understand yet, a Principal Engineer at my company.
Not to get too emotional but I was always on a soul searching track until now but alas here I am... I was a C/C++ head from the get-go, doing competitions and I was in a toxic relationship with segmentation fault :D in school, it taught me all kinds of important things, such as planning for buffers sizes in advance knowing the input domain but that gradually faded away... not because I didn't care but because the jobs I happened to do didn't care about it and it was just a spiral down to depression. I managed to get closer to those aforementioned trenches. I mostly work in Go nowadays and it allowed me at least focus on parallelism/concurrency, the only actual thing I enjoyed to do at university back in the day. I didn't really know what I wanted to make with myself until recently, but I said I had enough of this so I started searching.
I jumped out into several angles, focused a bit on high level stuff like architecture and system design it kinda makes sense for me, I mostly play strategy games so yea thinking about components and blocks is right up my alley but when I look into them and I just see pure randomness stemming from the fact of how the languages I have to use at work don't really fit this sense of order I need or want (well I think go is more near that than ever).
So a gamble was made, what if I just look at these boogeymen of programming again, so dreaded by everybody, C/C++ and Rust. Oh boy it was like a breath of fresh air. Not wanting to just read, I started writing my own shell in C since it is a tool I use daily and not knowing the tool you use daily is kinda like having a car that you don't understand internally at all. The simplicity of everything brought back my old memories of when I was trying to find a minimum spanning tree in C/C++ by using arrays to represent nodes in graph:)) (I know it is pain but pain with rewards nonetheless). Now I can't stop and I want to just do more with this, I might be writing shit code but it is shit code that works for me and I enjoy it.
Now the fun part. With Rust I am like on a whole other track of thinking about data and memory and processes. It might not be the easiest thing but I went with writing Redis from scratch with some guidance, but by trying my best to read the docs and apply the concepts. I have to tell you it is a wild ride, everything I read or learn is something I know, but not quite how I understand it or used it before, it clicks but it is like puzzle piece that looks and feels like it should feel but it doesn't. Everything in the toolkit from other languages is here but in a sense it is altered in a way to fit the ownership memory model, maybe I am just too early, I haven't finished the Book completely and I am kinda jumping all around, but well it is my style, exploring random stuff until it all comes together. Sounds crazy but the constraints the language has, finally started to click and I am caring more about performance and code quality, and I am happy.
By offering this personal story I would like to request from this community a bit of a guidance. There are plenty of learning topics and projects and snake oil salesman out there. What do you recommend other than the well entrenched The Rust Book and doing projects like writing Redis (this might be overkill). Are there any low level projects that can be done on any physical hardware that could lead to learning into more of a systems engineering/programming level? My goal would be to fail more to learn more. I don't despise the struggle, I want more of it:))).
P.S.: I am not here to jump on the Rust hype train, I am not switching jobs and I am not in the danger of losing anything, I realized switching jobs doesn't really help I need to make something for myself and I feel like low level concepts are calling me back. I want to learn more about something that I found fascinating and new.