Archives
-
goto statement considered
Everyone knows not to use goto, right? Dijkstra’s words on the subject have risen to the level of gospel in the programming community. Not that I do not completely agree… in most cases.
Nov 18th, 2009 | Filed under Programming, Soap box -
From TextMate to Vim
TextMate is an excellent editor, but it is beginning to show its age. It has a few squeaky wheels that have yet to be oiled, and it looks as though the author may be getting bogged down in the minutiae of his next release. With the next version apparently due sometime after the colonization of Mars, it seemed an auspicious time to try out another editor.
Aug 3rd, 2009 | Filed under Programming, Tips -
Runtime ChoiceField filtering in Django’s admin
Django 1.x brought with it much finer grained control over the admin application with admin forms and inline form sets. However, I still keep running into the same problem that I have since I started using Django – you cannot provide a limited queryset for a select field that depends on other instance variables. Submit [...]
Jul 31st, 2009 | Filed under Programming -
Pointers, arrays, and string literals
A recently posted question on Stack Overflow highlighted a common misconception about the role of pointers and arrays held by many programmers learning C.
Jun 19th, 2009 | Filed under ProgrammingTags: c -
Custom session storage with newLISP Web
The Web module’s default session storage engine uses serialized contexts in the /tmp directory. The advantage of this method is that, apart from the directory (which is customizable), it is reasonably platform independent and has low overhead. The disadvantages of this are numerous. Files are stored unencrypted, so anyone with access to the server may view them. It is therefor advantageous to design a custom storage module for sessions.
May 29th, 2009 | Filed under Programming