My code, like most code, tends to contain TODO/FIXME comments for things that I don't want to bother with at the time of writing them. Sometimes, these tend to pile up. A quick method of finding them is git grep:

$ git grep TODO

Today I was looking for "TODO" annotations in an old project and completely missed a couple of FIXMEs due to being too lazy to grep for them. This would have caught them:

$ git grep -e TODO -e FIXME

But that's too much typing. So why not make an alias for it?

    todo = grep -n -e TODO -e FIXME -e XXX -e OPTIMIZE

And then...

$ git todo        # TODO: find best schedule to avoid query limits    # FIXME: remove this method soon

Ok, that was fun. Back to work...


  • On a general note - don't let TODOs and FIXMEs pile up in the first place. If it's easy to fix - fix it. If not, document it or open an issue.

Django Bash completion

03 Aug 2012 by Yuri Prezument

A couple of days ago, while browsing the Django repository on Github, I discovered the django_bash_completion script (only took me 2 years to find it). Shortly after the mind=blown moment, I tested it and was amazed by the results, or rather by the fact that I never knew it ...

read more

Running a Bottle app with Gunicorn

10 Jun 2012 by Yuri Prezument

Recently, I wrote a simple web tracker at work, using the Bottle microframework.

Looking back, maybe I should've used Flask instead, as I simply don't see the reason for stuffing 3,000 lines of code in one file, other than a proof of concept. But both frameworks are ...

read more

Setting Up

19 May 2012 by Yuri Prezument

I decided to set up this blog mainly as an experiment.

I might write some Python and software dev related posts sometime soon.

This blog is powered by Pelican, the posts are written in reStructuredText and it's hosted on Github Pages.

I'm keeping the source repository separate from ...

read more