Back to Programming: One Year, Three Continents, and a Little Rust

2026-11-29来源 dev.toEnglish

It's been almost a year since I seriously sat down to write code.

Not because I stopped liking programming. Life simply had other plans.

Over the past year, I found myself moving between different places, experiences, and chapters of life. Europe, America, and Africa. New surroundings, long journeys, personal decisions, and plenty of things to think about.

Somewhere along the way, programming slowly moved into the background.

And honestly, I almost forgot how much I enjoyed doing it.

Finding my way back

Recently, I decided it was time to return.

Not by jumping into another JavaScript framework, chasing the latest technology, or trying to build something enormous.

I wanted to go back to the fundamentals. To spend time understanding code, solving small problems, experimenting, making mistakes, and actually enjoying the process again.

I also wanted to challenge myself a little, and of course I went with Rust!

I've been working with different programming languages over the years, but Rust has always had something that keeps me interested. Its ownership model, strict compiler, performance, and the way it makes you think about your code are all reasons I wanted to spend more time with it.

My goal is simple: hone my Rust skills, strengthen my general programming knowledge, and build things along the way.

Starting with a little piece of Unix history

For my first project back, I decided to build something small.

Something inspired by one of those classic Linux commands that many of us have probably encountered at some point: fortune.

If you've used a Linux distribution, you might already know it.

The fortune command displays a random quotation, joke, proverb, or little piece of wisdom in your terminal. Every time you run it, you get something different.

It's a simple idea, but that's precisely what I like about it.

No fancy interface. No complicated workflow. Just a small utility that does one thing.

I decided to recreate that experience using Rust and Ratatui, the Rust library for building terminal user interfaces.

I called my little project rfortune.

It comes with random fortunes, ASCII fortune-cookie drawings, a counter, and a simple keyboard-driven interface. Press SPACE for another fortune, and Q or ESC to leave.

Nothing revolutionary. Just a fun little project to get my hands dirty again.

Why start small?

I could have started with a much bigger application, but I think small projects are underrated.

They give you room to experiment without getting buried in architecture, dependencies, and endless implementation details.

More importantly, they let you focus on the language itself.

With rfortune, I get to revisit Rust fundamentals, work with collections and random selection, handle keyboard input, manage terminal rendering, and understand how different pieces fit together.

And that's exactly what I wanted.

One project at a time.

What's next?

I don't have a grand roadmap or a deadline.

I want to explore more of Rust, build a few Unix-inspired utilities, experiment with Ratatui, and perhaps revisit some programming concepts that have been sitting untouched in my head for far too long.

The idea is to enjoy writing code again, learn something new with every project, and share the process here.

Almost one year away, three continents behind me, and a terminal waiting in front of me.

Not a bad place to start again.

Back to coding. 🦀

原文:https://www.a8q9.cn/en/article/back-to-programming-one-year-three-continents-and-a-little-rust-5a0fe1.html

相关文章