Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Bad Programming Practices

Name: Anonymous 2010-10-19 0:35

Each post must contain one bad programming practice to add to the list. I'll start:

In C++, overload library functions by using #define. That way it looks like you are using a familiar library function where in actuality you are using something totally different.

Name: Anonymous 2010-10-19 20:34

Single character variable names. I can't believe academics encourage this practice still.

I can think of a lot of Python-specific ones, but I'll limit myself to one case.


class SomeObject (object):
    member = OtherObject() #This will hurt you.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List