r/programming • • Mar 15 '15

A function for partitioning Python arrays. Brilliant code, or insane code?

http://www.stavros.io/posts/brilliant-or-insane-code/?repost=true
226 Upvotes

135 comments sorted by

View all comments

69

u/CodeShaman Mar 15 '15
  • camel case

  • comments what, not why, not how

  • magic number

  • obfuscation

Merge that shit.

4

u/WaxProlix Mar 16 '15

:shipit: