Oct-12-2016, 11:13 PM
I never really used Java for anything, other than maybe one or two fixes in my entire career.
C++ other than POD types (and even they can be classes), almost all code is encapsulated in a class.
I was introduced to C at Bell Labs, and resisted C++ for a long time, only getting comfortable with it in the early 1990's
About C++ class overhead:
Actually, I used classes in C, even before C++ became popular. I just didn't know the methodology we used
was called classes.
Is there a set of rules as to when to and when not to use them in Python? (I'm not being wiseacre)
C++ other than POD types (and even they can be classes), almost all code is encapsulated in a class.
I was introduced to C at Bell Labs, and resisted C++ for a long time, only getting comfortable with it in the early 1990's
About C++ class overhead:
Quote:With a compiler not written by drunk college students in the wee hours of the morning, the overhead is zero. At least until you start putting in
virtual functions; then you must pay the cost for the virtual dispatch mechanism. 'Karl Knechtel'
Actually, I used classes in C, even before C++ became popular. I just didn't know the methodology we used
was called classes.
Quote:Classes have their place, but add complexity
Is there a set of rules as to when to and when not to use them in Python? (I'm not being wiseacre)