All articles, tagged with “best-practices”

Howto: KISS Signal/Slot pattern in PHP

This article describes the Signal/Slot design pattern and presents a simple implementation.

 continue reading

Howto: KISS class autoloading in php

To autoload a class, __autoload() must find a path to the script defining a class name. This article describes the two well know ways in the introduction and then present a simple alternative.

 continue reading

How to: make an open source successful framework

This article recalls the basics of building a successful framework with agile workload repartition.

A framework is a basic conceptual structure used to solve or address complex issues, usually a set of tools, materials or components.

A framework library allows developers to work on your what makes their new project different from others instead of reinventing simple solutions to address complex issues.

 continue reading

Pinax: virtualenv, setuptools, pip, easy_install and requirements.txt

This article describes how to build project dependencies with virtualenv. It is appliable to Pinax.

 continue reading

Agile Django applications development: views

This article explains how to make the most easily reusable views.

 continue reading

Template inheritance model review

Template inheritance is attractive because it looks like it will make it easier to re-use templates.

It is indeed powerful to make a website. When it comes to website production contexts, hackers of the Django community find it more interresting to build reusable micro applications: to reduce development and maintenance cost of a project; but that’s not the primary Django objective and thus: not what it was designed for.

This article attempts to demonstrate the pitfall of template inheritance in a reusable micro applications production context. It started as a draft feedback to Gaetano Giunta

 continue reading