Archives

  • Multi-threading in Python

    Programming with threads is one of the more difficult tasks in programming. The Python threading and Queue modules make this significantly easier, but it still takes some deliberation to use threads in an efficient way. Submit article

    Nov 30th, 2007 | Filed under Programming
  • Dynamic URLs in Django

    I long ago switched my company’s web applications from Code Igniter to Django. The main reasons were Django’s more powerful database API and Python’s maintainability and scalability over PHP. Submit article

    Nov 12th, 2007 | Filed under Tips
    Tags: ,
  • Extending Python with Pyrex

    In a previous entry, I showed how to extend Python without directly using the Python C using SWIG. SWIG parses an interface file written by the programmer and then outputs a wrapper module. A more elegant, more pythonic solution might be a parser which allows a C module to be written directly in Python. Pyrex [...]

    Oct 23rd, 2007 | Filed under Programming
    Tags: ,
  • Writing Python modules in C with SWIG

    The Python C API, while very well put together, is still C and therefore requires a lot of time an effort to understand, let alone use. But every now and then, a programmer comes across something that is either impossible in Python or so prohibitively expensive performance-wise that it is worth dusting off the old [...]

    Aug 14th, 2007 | Filed under Programming
    Tags: ,
  • Contextual programming

    PHP is a procedural language. This is not a criticism. PHP revolutionized CGI by being half-scripting language, half templating system. It is, in fact, about the most powerful templating system around. The fact that object oriented syntax was even able to be bolted on is a testament to that. Submit article

    May 15th, 2007 | Filed under Programming
    Tags: , ,
Posts Tagged ‘python’