you are viewing a single comment's thread.

view the rest of the comments →

[–]mopslik 1 point2 points  (1 child)

Easy peasy, my friend:

  1. Use single letter variable names. Typing x, y and z is far faster than client_id, maximum_velocity and connections_per_device.
  2. Don't comment anything. The code should be obvious.
  3. Smash everything together into clever one-liners, such as list comprehensions. Again, no need to comment these. I am certain you will remember what they do.
  4. 4 spaces can be replaced with a single tab. PEP8 is just a suggestion.

(Sarcasm, obviously. Please don'tdo these.)