Sign of a Stupid Programmer
if some_boolean_expression: return True else: return False
Unlike programmers who can’t program, stupid programmers can and do program. That is the problem.
joined = '%s%s%s%s%s%s' % ( some_list, some_list, some_list, some_list, some_list, some_list, some_list)
You just wish they were unable to program. Every single time you encounter their code you question yourself. You ask if this is programming, what the f#ck is it I have been doing all this time?
def __unicode__(self): return '%s' % self.some_unicode_attribute
A stupid person is a person who causes losses to another person or to a group of persons while himself deriving no gain and even possibly incurring losses.
They’re both good reads. I just wish I was introduced to these concepts earlier. I felt stupid for my ignorance on stupidity.
def some_func(**kwargs): param1 = kwargs.get('param1', 'param1_default') param2 = kwargs.get('param2', 'param2_default') param3 = kwargs.get('param3', 'param3_default') param4 = kwargs.get('param4', 'param4_default') param5 = kwargs.get('param5', 'param5_default') param6 = kwargs.get('param6', 'param6_default')
Watch out for the stupid programmer. He is destructive.
If you have any questions, suggestions or corrections feel free to drop me a line.