I've just started learning Rust, so I've been working through The Book and Rust by Example to get familiarity with the language before diving into any projects. Coming from a C++ background, I've been surprised at how similar and simultaneously completely different Rust is from C++, and I've run into a lot of things that seemed completely bizzare to me (like the whole immutable variable default and shadowing) that I initially disliked until I looked into the reasoning and became wholly on board with the systems.
I'm planning on developing a cute little pet project for a relativistic/geometric time system, where the current time is determined not by arbitrary time zones but coordinates on the earth. I'll probably post some updates once I start working on it ^͜^
I have a small CLI to create and manage note files. This week, I added a list command, which just spits out the notes ordered by date, to help me reopen previously created notes.
You can pass along a flag e.g. --since="3 months ago" or --since="2024-06-01" to only open files created in that time range. I used the human-date-parser crate for that.
Not yet entirely happy, as I would've liked to support --since="June" and --since="2024". Will need to see, if I separately implement those.
3 Comments
Soluna@lemmy.blahaj.zone · 8 pts · 1y
I've just started learning Rust, so I've been working through The Book and Rust by Example to get familiarity with the language before diving into any projects. Coming from a C++ background, I've been surprised at how similar and simultaneously completely different Rust is from C++, and I've run into a lot of things that seemed completely bizzare to me (like the whole immutable variable default and shadowing) that I initially disliked until I looked into the reasoning and became wholly on board with the systems.
I'm planning on developing a cute little pet project for a relativistic/geometric time system, where the current time is determined not by arbitrary time zones but coordinates on the earth. I'll probably post some updates once I start working on it ^͜^
Ephera@lemmy.ml · 5 pts · 1y
I have a small CLI to create and manage note files. This week, I added a
listcommand, which just spits out the notes ordered by date, to help me reopen previously created notes.You can pass along a flag e.g.
--since="3 months ago"or--since="2024-06-01"to only open files created in that time range. I used thehuman-date-parsercrate for that.Not yet entirely happy, as I would've liked to support
--since="June"and--since="2024". Will need to see, if I separately implement those.AsudoxDev@programming.dev · 2 pts · 1y
Lemmy moderation bot with custom rules