- apache
- api
- beelzebub
- benchmarking
- captcha
- crosswords
- developers
- dom
- domdocument
- dtd
- fifteensquared
- fireeagle
- lamp
- m255
- maths
- mobile
- mobileweb
- mono
- ms221
- mst121
- openuniversity
- overtheair
- overtheair08
- php
- phparchitect
- playphone
- python
- recaptcha
- recruitment
- rest
- slideshare
- softwarearchitecture
- spam
- subversion
- sucks
- svn
- talks
- ted
- testing
- tutorial
- versioncontrol
- wurfl
- xml
- yammer
- zendframework
- zendplatform
Study Update: MST121, MS221 and M255 End, M263 Begins
It's now a year since I started studying again, part-time, towards a BSc. I last updated the public about six months ago, so here's the latest for those very few readers that may be interested!
Read more »How Do You Zend_View? I'll Show You Mine...
An interesting design decision made by the Zend Framework team was, well, not to make too many decisions about how the View portion of a Zend Framework MVC application should be implemented. You can use plain PHP to generate markup, use a templating library such as Smarty or Savant, or go your own way entirely. At work we've used both Wall4PHP, and subsequently a custom component-based solution, for example.
The flexibility is great then, but with freedom comes responsibility. Perhaps coincidentally, view scripts tend to be the part of a ZF app that attract the most cruft, the most untestable code, and the most mingling of concerns (though controllers certainly give them a run for their money).
Since someone recently asked, I'll show how I've implemented views on pointbeing.net. I don't claim that the approach is awesome, or even suitable for every case, but it seems to work for me. In return I'd very much like to hear or see how others implement their Zend_Views.
Read more »Manual Comment Spam
Some time last year I installed a CAPTCHA tool on this site, in an attempt to mitigate the deluge of spam comments that I was receiving.
It has actually been very successful: despite some fairly concerted attempts, since that date, I don't think any automated spam has got through.
What I am seeing, however, is a steady increase in the amount of manual spam. By this I mean actual human people coming to the site and entering inane comments promoting various seedy businesses. I guess hiring kids or the unemployed to do this is no more expensive than hiring people to hand out flyers in the street - and you see plenty of that.
So I'd be interested to hear if other bloggers are seeing this, and how they tend to deal with it.
In the meantime, if you are among this type of spammer, I'll politely ask you to move along elsewhere: I'll only delete your comment and block your IP, and it'll become quite tiresome for all of us. william@geeksltd.co.uk, that includes you, though I suspect that's a made up address.
Normal service will now be resumed, and I promise that my next post will contain some real content!
Read more »Git for Subversion Users
As readers may have gathered from previous blog posts, I'm something of a fan of version control and of Subversion in particular.
In recent months it has become increasingly difficult to miss the buzz surrounding Git, a version control system originally developed by Linus Torvalds to aid development work on the Linux kernel. Git is gaining a lot of ground, with a number of major projects (for example Perl, Samba and Wine) having been migrated to it.
So here's a bit of an introduction to Git from a Subversion (and CVS) user's point of view. The post won't be particularly detailed or comprehensive, as there is plenty of documentation on the web, but should hopefully provide some insight into what looks to be a very promising tool which takes an interesting approach to version control.
Read more »Check Out Ciaran's Doctrine Article in php|architect
I'm pleased to note that the August 2009 issue of php|architect is out today, not least because it includes a cracking article on Doctrine by my good friend Ciaran. I was lucky enough to sneak an early peek, and despite my innate distrust of anything new-fangled and shiny, to Ciaran's credit, even I had to admit that Doctrine does look quite useful actually. I'm looking forward to Ciaran's next article!
The issue looks to be a good one all round, with articles on regular expressions and non-relational databases along with the usual news, comment and photos of ElePHPants, so do check it out.
Oh, and look out for something from me in either the September or October issue!
Read more »Lightweight Continuous Integration for PHP
This post describes a simple, lightweight strategy for implementing Continuous Integration on PHP-based software projects. This approach happens to use Subversion for version control, PHPUnit for unit testing, and Phing to automate the processes involved, but hopefully the principles are generally applicable.
The post won't strive to be exhaustive or encyclopaedic, rather it will present a simple proof-of-concept and a brief overview of the tools that are available to PHP developers. But first some background...
Read more »Busting Some Myths Concerning robots.txt
After all these years, there still seems to be quite a lot of confusion and misinformation floating around about "robots.txt" files, how they work, and what they do, so I'd like to go some way towards clearing up that confusion here.
Read more »Zend_Session Overrides php.ini Settings
This post concerns some curious behaviour in Zend_Session. We spent about a day of developer time tracking this down, and I'm still a bit puzzled about it. It doesn't appear anywhere obvious in the documentation, and I haven't found a great deal on the web about it, so maybe this will save somebody some time, if nothing else.
Read more »Bonus Schemes Should Be Handled with Care
I was recently chatting with a colleague about bonus schemes, and it occurred to me that every single company I've worked for (that's four, if we're counting) has implemented at least one such scheme, and the outcome is always the same: pissed-off employees.
There seems to be a kind of unquestioned assumption that employees want bonus schemes, and that employers are being good employers by introducing them. Such schemes are, without exception, described as being a "benefit". After all, who doesn't enjoy receiving a bonus with their pay cheque? What could possibly go wrong?
I'd like to argue that bonus schemes can go wrong. In fact, they are harmful more often than not, and should be handled with care.
Read more »Command-Line Subversion Tutorial, Part 3: Subversion Properties
In Part 1 of this series we looked at the basics of command-line Subversion, and Part 2 covered importing, branching and merging. In this third part I'd like to introduce a useful and very powerful Subversion feature, which isn't always terribly well understood by developers: that of Subversion Properties.
Read more »