Whenever I do anything new with web development I always remind myself to record it somewhere for future reference and for use by others - and, selfishly, to get their feedback. So after years of (not) doing that (un)successfully, I finally opened a techie blog.
My current project is 'Webserver Golf' - if you don't know, 'Golf' refers to a game or competition where you `succeed` by reducing your score as low as possible. It annoys me that this kind-of-endeavour is always referred to as Golf, as I truly despise the game; a game so dull Volkswagen felt motivated to name a car after it. Any suggestions gratefully accepted.
The rules of Webserver Golf to start with the `usual` (or my normal) web apparatus and see if I can speed it up. My general starting setup is MySql, Apache2, Template Toolkit (or html template) and mod_perl for perl modules. The game does not include any other tools that you may use such as cpan, cpanm, but does include replacements for CGI, MySQL, Template Engines and naturally any use of web servers (including software such as PSGI).
The project must utilise all of these:
1. A `recognised` db of any sort, constructed as you see fit (from which we must pull the text 'hello world').
2. A perl Module or framework.
3 A template engine (which inserts the text 'hello world' extracted from the db, through layer 2)
4 Outputs a html document saying 'hello world'.
I don't care about html/xhtml/html5 well formedness.
The final outcome should be a timed race against each setup on a single machine working to localhost. The winner being the quickest.
My first move will be Mongo, Dancer, template toolkit (possibly Tenjin).