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


More Information...

Follow Us On Twitter

FRPUG

Who's Online

We have 15 guests online
 
PHP Coding Contest Print
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.

 
PHPUnit and Test Driven Development by Example Print
Written by David Stockton   
Friday, January 15 2010 15:39

As promised, I've finished the editing of the screen cast and uploaded it to the intarwebs. You can view it here: PHPUnit and Test Driven Development. I step you through creating a functional Zend_Form without having to set up the whole Zend MVC framework.

The form is presented as a standard HTML form that submits to a PHP page for processing. That page simply determines if the form is "valid" or not by calling Zend_Form's isValid() method. The form has three fields: name, email and phone. Using Test Driven Development, I show you how to write unit tests first and then write a little bit of code to make them pass until at the end we've got a fully functional Zend_Form object with validators (Zend_Validate) and filters (Zend_Filter), including development of a custom filter class for formatting the phone number and another filter for allowing alphabetic phone number entry.

Please take a look and send any comments or questions to This e-mail address is being protected from spambots, you need JavaScript enabled to view it .

I hope you enjoy the screencast, and I hope to see you at our next meeting.

Thanks,
David

 
First Denver Meeting Recap Print
Written by David Stockton   
Thursday, January 14 2010 20:59

Last night, FRPUG held its first monthly meeting in Denver, and it was a huge success. We had 15 attendees who enjoyed pizza and sodas provided by TEK Systems. Our Vice President, Chad Robertson, presented on debugging PHP using Zend Studio and Zend Debugger. Unfortunately we forgot to screen capture it but Chad may be posting the slides later. If that happens, the link will be here later.

After that, I presented on Unit testing with PHPUnit using a Test Driven Development methodology. That presentation was screen captured and should be posted once I am able to find a place to upload an hour long screencast.

At the end of the presentations, we gave away door prizes which included several Zend T-shirts, a copy of TechSmith's Camtasia Studio, a copy of TechSmith's SnagIt!, and a variety of other cool prizes.

Our next meeting will be in Colorado Springs on January 27. Matt will be presenting on APC (Alternative PHP Cache). Other presentations will be announced as they are determined.

Looking forward to seeing you at the next meeting!

Thanks,
David

 
Frontrange PHP in Denver! Print
Written by David Stockton   
Wednesday, January 06 2010 11:36

I've got some great news! Frontrange PHP User group has found sponsorship in Denver and we'll be moving to twice monthly meetings — one meeting per month in Colorado Springs, and one per month in Denver. Right now I'm looking at the 2nd Wednesday in Denver and the 4th Wednesday in Colorado Springs.

So this means our next meeting will be in Denver on January 13, 2010 at 7PM - 9PM. We'll be meeting at TEK Systems in Denver at 6300 S Syracuse Way Suite 200 Centennial, CO 80111.

TEK Systems has also generously offered to provide pizza and soft drinks. In order to make sure we have enough since this is a new meeting location, please email me at This e-mail address is being protected from spambots, you need JavaScript enabled to view it to let me know if you're planning on coming. We've got some pretty sweet door prizes to give out as well.

The presentations for this meeting will include Debugging PHP and Unit Testing and Test Driven Development in PHP, so it should be an excellent meeting.

Thanks,
David

 
December Presentations Print
Written by David Stockton   
Tuesday, December 22 2009 16:03

Assuming the weather cooperates and we don't have to cancel tomorrow's meeting, presentations will be on Zend Debugger, Unit testing and test driven development, and, if we have time, a little more on Zend_Form, specifically how to use Zend_Form for just validation and filtering with standard HTML forms.

We've got a lot of great prizes to give away and some awesome announcements, so I hope we'll see you there tomorrow night.

David

 
More Articles...
«StartPrev123456NextEnd»

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