Category: development
-
Javascript Linting…
Suffice to say, my minions write a quantity of Javascript. And testing it isn’t all that easy. While rummaging the internet, I came across @NeilCrosby‘s FrontEndTestSuite which aims to automate e.g. w3c validator checks and so on – there will be more on that later I suspect once I get it working. Anyway, the first…
-
Late to the performance party
Everyone else probably already knows this, but $project is/was doing two queries on the MySQL database every time the end user typed in something to search on to get the data between a set range (SELECT x,y….. LIMIT n, OFFSET m or whatever) and another to get the total count of records (SELECT count(field) ….).…
-
Logging … and how not to do it.
Grumpy man, back from battling with some legacy code, has a rant.
-
Adventures in Continuous Integration (PHP, Xinc, Phing etc)
I’ve had cron’ed unit tests running for ages which happily spam me when stuff breaks – and likewise adding e.g. phpdoc generation and so on into the mix wouldn’t be too hard. Anyway, for want of something better to do with my time I thought I’d look into CI in a bit more depth for…
-
Trac and Git on Debian Lenny
Random Brain dump – Trac 0.11 with Git on Debian Lenny; this worked for me … We’ll use /var/git/ as the location where our git repositories live – e.g. /var/git/repository1, /var/git/repository2 etc. So, assuming you have git-core installed, create the Git repository: mkdir -p /var/git/repository cd /var/git/repository git init –bare Next, install the trac-git extension…
-
Silly SoapClient
Sam made some changes to a SOAP service one customer has – and suddenly our automated tests kept failing. “WTF?” we thought. We persistently got the same error (e.g. Fatal error: SOAP-ERROR: Encoding: object hasn’t ‘SortResults’ property in ….) yet the generated WSDL file (when viewed through a web browser etc) no longer has SortResults in…
-
Random PHP project progress
Random php development musing