From C++ to Python: Simplifying Code and Boosting Efficiency

Switching from C++ to Python feels like… 😄 From managing pointers, worrying about memory, and writing main() like a ritual…to just writing clean, readable code and getting things done. Sometimes growth means letting go of complexity—not because it’s bad, but because you’re evolving toward efficiency. C, Java, and C++ taught me discipline. Python is teaching me speed and clarity. Both matter. But knowing when to use what is the real skill. What was your “So long, partner” moment in tech? 👇 #Programming #Python #Cpp #Developers #CodingJourney #TechHumor

  • graphical user interface, application

That's why I don't return back to C#/Java/C++. Managing types is a compiler's job, I am not a compiler 😀

Not so much "So long", but going to a company heavily using Perl forced me to look for an alternative. Most Perl written was hard to understand and debug, and I did not like the book of endless recipes for doing things in different ways. And then I found Python in 1995 - a smaller user base, but a great community that valued readability and composability. I learnt Python and advocated for it's use . Today I code mainly in Python, and restrict Perl to bash one-liners and 'perl -p -i -e ...'

Like
Reply

Python teaches you to not care for those who would read, maintain and run your code. What you mean by "simplicity and cleanliness" is only good for you, the developer. Also, the simple is not that simple. Python does not check types and the order of arguments. Therefore, when you start making a commercial product of your small python routines, you have to add checking of the arguments in order to protect the function from wrongdoing of a customer. In fact, you add the manual checking that in C++ is automatically done by compiler. Your "simple" python code turns into a formidable monster, hard to read and maintain.

Like
Reply

Laravel/PHP/Wordpress gave me the exact experience. You can build stuff real fast with these tools while using typescript/go now feels like relative low level coding.

Funny you are talking about speed while comparing python an c++ :)

You get to keep your friends around for when you them. And most of the time skip pointers if you switch to Rust

Like
Reply

I personally didn’t like Python when switched to c++, but that’s just how it is. Python is still very useful and used a lot.

those semicolons still miss them

Like
Reply

It connects a lot to me ❤️. But I never leave one language

Like
Reply

python is the best 2nd choice for everything

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories