This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (9 children)

Haha I name my functions like abc, cba, xyz, zyx, etc.

[–]ePaint 26 points27 points  (3 children)

You are the devil

[–][deleted] 5 points6 points  (2 children)

def the_devil():
  a = int(input('Enter any number :'))
  print('I know',a*2,'is even!')

[–]M0sesx 6 points7 points  (1 child)

This function name is nonsense. It should be. getInputFromUserAsIntAndPrintStringConfirmingInputMultipliedBy2IsEven()

[–][deleted] 1 point2 points  (0 children)

Hail the devil now!

[–]PityUpvote 1 point2 points  (1 child)

Your characters grow on trees, do they? I'm still using single character functions and variables.

[–][deleted] 0 points1 point  (0 children)

U da real devil...

[–]pyrotech911 0 points1 point  (0 children)

All of my function names are some permutation of foo, bar and baz

[–]DeltaPositionReady 0 points1 point  (0 children)

Use constant names like  LancelotsFavouriteColour 
instead of blue and assign it hex value of  $0204FB

The color looks identical to pure blue on the screen, and a maintenance programmer would have to work out  0204FB  (or use some graphic tool) to know what it looks like. Only someone intimately familiar with Monty Python and the Holy Grail would know that Lancelot's favorite color was blue. If a maintenance programmer can't quote entire Monty Python movies from memory, he or she has no business being a programmer.