Learning · · 1 min read

Python, C and C++: what each one taught me

Three languages, three different ways of thinking. Here is what I took from each.

Python, C and C++: what each one taught me

Learning more than one language early on turned out to be less about syntax and more about how each one makes you think.

Python — thinking in ideas

Python let me focus on the logic. When I had an idea, I could test it in minutes, which made it the best place to learn how loops, functions, and data structures fit together.

C — thinking in memory

C removed the safety net. Suddenly I had to care about types, memory, and what the machine is really doing. It was frustrating and it was the most useful thing I learned.

C++ — thinking in structure

C++ added classes and objects on top, which pushed me to organise code into pieces that make sense on their own.

def greet(name):
    return f"Hello, {name}!"

print(greet("world"))

Same idea, three languages, three different ways of getting there.

Related posts