DEV Community

Discussion on: Python Vs C++ (My Experience)

Collapse
 
codemouse92 profile image
Jason C. McDonald

When you follow best practices and naming conventions, It sometimes takes several hours just to come up with a descriptive class and method names.

Not once you've been doing it for a long time. ;)

But then, "There are only two hard things in programming: cache invalidation and naming things."

Also, you should try out PyPy. It's always a couple of versions behind the latest Python, but it's JIT-compiled, so the speed is comparable to C++.

Collapse
 
mujeebishaque profile image
Mujeeb Ishaque • Edited

Thanks for the recommendation, Mr. Jason. Big fan here. I loved your series.

Collapse
 
dwd profile image
Dave Cridland

I thought the quote is "There are only two hard things in programming: cache invalidation, naming things, and off-by-one-errors"

Collapse
 
codemouse92 profile image
Jason C. McDonald

There are several versions. ;)

Incidentally, off-by-one errors don't tend to be that hard, at least not compared to the other two. I think the addition of that was a later pun.