๐โโ๏ธ๐ฆ
A relatively cheap PC with Factorio and you are set. You won't spend much on food either, so win-win.
Reject C, return to assembly. Structured programming is the true oppression our generation never talks about.
I was a teacher's assistant in beginner's programming at university for a bit. I expected them to learn C, which I knew enough of, but I got assigned to a group that learned Python instead. I had never used Python at the time. I ended up having to speed learn it while trying to teach it, to not be completely useless.
Option<T> has a From<T> implementation that lets you write Option::from($file_path).map(|path| path.to_string()) to accept both cases in the same expression.
https://doc.rust-lang.org/std/option/enum.Option.html#impl-From%3CT%3E-for-Option%3CT%3E
A "mantra" more programmers should have is to fix the cause of the issue, and not just the symptoms. You have to understand what the problem is to be able to fix it.
Ah, taking inspiration from late 1940's literature, I see. Smart!
It's useful for keeping track of your mental gymnastics.
My shower has its own favorite temperature and will slowly readjust itself to it.
Got myself a proper hiking backpack. An Osprey Exos 58L. Shifting much of the weight to the hips makes a massive difference and my back was very happy!
Static types aside, the file system has a lot of failure cases, which every language is affected by, and Rust makes them very visible. This can indeed feel like a lot, but it's an intentional feature and makes more sense in larger projects. I guess the feeling may get amplified by the author's style of long form posts with a lot of details.
Error handling in practice contains a lot of "let the caller deal with it", using the ? operator to pass errors up the call stack. The more verbose options are for when you need to actually handle it.
Ogeon
0 post score0 comment score
Maybe they are trying to manifest its death by arranging its funeral over and over. Programming as an art form isn't more dead than painting as an art form, as long as people want to do it. However, as the blog post hints at, what you produce for work wasn't perhaps ever meant to be a work of art. You aren't necessarily going to be able to write code in your favorite style for work anyway, unless you can influence it and decide the conventions. That has been true since forever in larger organisations.
Props to the blog author for seeking out new experiences in their free time but what they are mourning is either still there (just write your art code) or they have just had to adjust to their new trade-off. Don't be surprised when it doesn't feel artistic if you don't spend any effort on the process.