Python Decorators: A Deep Dive ?>

Python Decorators: A Deep Dive

I recently had to create a custom decorator for some Django views. This quickly lead to the realization that I don’t understand python decorators or even functions nearly as well as I thought (or, perhaps, should). It turns out python decorators are extremely useful. On a platform like Django, you can use decorators to wrap views (or functions on a class based view) to extend behavior. This usually takes the form of restricting a view to logged in users. This…

Read More Read More

Another first: My attempt to balance productivity and creativity ?>

Another first: My attempt to balance productivity and creativity

I suck at blogging. More specifically, I suck at taking on any real balance between productivity and creativity. In the past 3 years, I’ve started 3 blogs totaling an astonishing 4 posts. It’s not that I really enjoy crafting these inaugural posts. Trust me – I’m not very fond of this one, either (he says on his fourth draft). And it’s not even that I enjoy those months filled with regret for every day spent without writing another post that end only when…

Read More Read More