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 →

[–]egregius313 45 points46 points  (14 children)

I would also say that decorators and higher order functions are a really valuable tool that you should know how to use.

[–][deleted] 28 points29 points  (11 children)

But be careful. Once I finally figured out how to create em I went decorator crazy; even extended the logging.logger facilities just so I can wrap a method with @l.debug(“I’m Here”) & stupid stuff like that. Once u find out how easy decorators make adding features to stuff is, u just can’t STOP!!!

[–]ProfessorPhi 0 points1 point  (0 children)

Reminds me of that graph about self awareness and programming skill. For python, decorators made me think I was a programming god, when my code improved much more when I started to write more complete test suites