Home The News PHP Coding Contest

Wednesday
September 8, 2010
6:30-9pm, Translations Gallery
Denver, CO


More Information...


Follow Us On Twitter

FRPUG
PHP Coding Contest PDF Print E-mail
Written by David Stockton
Friday, January 15 2010 16:12

While I was preparing my presentation, I found that the code I wrote while presenting has a bug. That's where you come in. I've made the source code available for download . There's also a link from the screencast page now.

So here's what I want. I want you to go look at the code, figure out what the bug is, and write a new unit test class with a test that fails due to the bug. Send me ( This e-mail address is being protected from spambots, you need JavaScript enabled to view it ) your unit test class in an email with the subject line "FRPUG Code Contest #1". The first person to correctly identify the bug and develop and send me a unit test that fails due to that bug will be guaranteed* a prize at our next meeting, and I'll post your name on the site with a link to your website. Please note, I cannot ship the prize out, so if you're not local, you're welcome to enter and I'll still post your name and a link if you like, but to claim the prize, you have to attend the meeting.

Also, it's very possible that I've got more than one bug in the code. I will hold a prize for people who discover and write a unit test for other bugs as well, but only for the first person to find a particular bug. Once the bug has been found, I think I'll probably update the source code with the test that's submitted and a fix that makes the test pass. For bonus points, submit a patch that updates the code to a working state that passes your unit test.

If you have any questions, please let me know. If you have ideas for future coding contests, please let me know.

Thanks,
David

* Guaranteed means that I will have a prize for you and you'll still get your name entered for the door prize, so you could end up going home with two sweet prizes. But you will get at least one. -- Some restrictions apply, see back of box for details, do not taunt happy fun ball, etc.

The prize has been claimed. Asa discovered that the form would incorrectly validate alphanumeric inputs with a string length of 14.

Copyright 2010 Front Range PHP Users Group. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.