DEV Community

Stepan Russu
Stepan Russu

Posted on

From Python to Go, and eventually to C++

A learning update

Almost three months ago, I published an article about moving from Python web development towards systems programming.

My original plan was to focus on Go and Rust. However, shortly after starting with Go, I decided to spend more time learning C++.

I'm a first-year Software Engineering student, so university studies have also influenced my decision. I want to understand the fundamentals better before moving on to more complex technologies.

Learning modern C++

I'm currently studying C++23 and documenting my progress in a public GitHub repository.

Recently, I've been working with pointers, references, and streams.

Interestingly, I found input validation and stream behaviour more challenging than the basic concepts of pointers and references.

For example, one of my recent exercises involved reading an entire line of user input and checking whether it contained a valid integer.

std::istringstream input(line);

int number{};
char extra{};

if (!(input >> number) || (input >> extra)) {
    std::cerr << "Invalid input.\n";
    continue;
}
Enter fullscreen mode Exit fullscreen mode

The first condition checks whether an integer can be extracted from the stream. The second checks whether any additional non-whitespace characters remain.

This makes it possible to reject inputs such as abc, 2.5, or 2abc instead of simply accepting the integer at the beginning of the line.

It's a small example, but understanding how these operations work is more important to me than simply making the program produce the expected result.

Learning through personal projects

I've also written a small console application for keeping logs of my sim racing sessions.

I'm interested in sim racing, so it seemed like a good opportunity to apply what I've learned to something I actually care about.

The application is still very basic, but that's exactly where I want to start.

What's next?

For now, I want to focus on understanding C++ properly, improving my mathematical knowledge, and gradually building more complex applications.

Go and Rust are still interesting to me. I'm simply changing the order in which I want to approach them.

I'll continue sharing my progress, experiments, and things I discover along the way.

My C++ learning repository:
https://github.com/arkpil60/cpp_learning

Top comments (0)