 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
NetTuts.com: Let's TDD a Simple App in PHP
by Chris Cornutt August 07, 2012 @ 10:18:07
On NetTuts.com there's a new tutorial that wants to show you a practical approach to using TDD in your development (test-driven development) through a simple project.
In this tutorial, I will present an end-to-end example of a simple application - made strictly with TDD in PHP. I will walk you through each step, one at a time, while explaining the decisions I made in order to get the task done. The example closely follows the rules of TDD: write tests, write code, refactor.
They start off by defining what TDD is (three core rules) and how the PHPUnit tool makes it easy in PHP. They use NetBeans in their examples, but it can be done similarly in any other ID (or command line). They start with some first tests - checking for word wrapping on short string and empty string handling.
voice your opinion now!
tdd testdriven development tutorial unittest sample application
Rob Allen's Blog: Some ZendView examples
by Chris Cornutt March 12, 2012 @ 10:52:48
Following on the heels of the beta 3 release of the Zend Framework 2, Rob Allen has been posting more about its features and what's changed from the version 1 world. In this new post he looks at some examples of how to use the newly refactored ZendView component.
With the release of Beta 3 of Zend Framework, we now have a significantly refactored the ZendView component. One of the changes made is that there is a ViewModel object that is returned from a controller which contains the variables to be used within the view script along with meta information such as the view script to render. [...] However, we can do many more interesting things than this and I've put together a test application with a controller showing some of the things that can be done.
Included in the post includes two snippets of code from the sample project - how to change the layout in the action and creating another view model at the layout level.
voice your opinion now!
zendframework2 zendview sample application zf2
PHPMaster.com: Getting Started with PHPUnit
by Chris Cornutt November 15, 2011 @ 08:25:49
On PHPMaster.com today, there's a new tutorial helping you get started with on of the most popular unit testing frameworks for PHP, PHPUnit. In this new article they help you write your first tests, run them and figure out what to do when they fail.
Most people know that testing your websites is a good idea, but after some time testing can become tedious. What if a lot of this testing process could be automated so you don't have to go trough every function manually, time after time, to ensure that it still works after updating your code? This is where unit testing comes in, to automate the testing process.
She starts with a simple, self-contained test - setting and getting a "name" value from a User class. The tests include an example of a setup/tear down and check that the result of the "talk()" method is correct with an assertEquals.
voice your opinion now!
phpunit unittest introduction sample
DZone.com: Practical Google+ Api
by Chris Cornutt September 21, 2011 @ 08:27:53
On Dzone.com today Giorgio Sironi has a new post looking at a relatively new release on the social networking scene for developers, the Google+ Api, and some details on how you get get started writing apps using the features it offers.
Google+ recently releases to developers the first version of its Api, which focuses on public data about profiles and their activities: status updates, resharings and links. I dived into the Api and wrote a small sample application to get a feel of how easy is to get started, and what can we do with the Api for now. All the code is at the bottom of this post.
He goes through the steps you'll need to get set up - registering an application, getting a library to help make the connection (here's a PHP one) and configuring it with your credentials. You can get "People" and "Activities" information from the API. He shows some sample output for each - basic user information (nested arrays) and some of his activities (again, nested arrays). He includes the source for his sample application that pulls a user's profile information and lists out their latest (public) activities.
voice your opinion now!
googleplus api introduction sample library application
PHPBuilder.com: Introducing the Yii PHP Framework
by Chris Cornutt April 27, 2011 @ 11:03:43
In another in his framework series, Jason Gilmore has a new post on PHPBuilder.com about another popular framework - the Yii framework. He introduces you to the framework and shows the creation of a sample, basic site.
Frameworks have been the topic du jour here at PHPBuilder.com, with numerous recent articles covering DooPHP and Fat-free. In this latest stop on the framework tour, we'll check out Yii, a relatively new framework (less than three years old) that boasts an impressive array of features and an equally impressive array of users, among them the enormously popular Stay.com.
He walks you through the install (downloading the latest version) and shows how to use the command-line tool to automatically generate the basic website structure. He continues on showing how to update the main page and template, how to get it connected to a MySQL database and how to use the Gii tool to create basic admin forms for working with the tables.
voice your opinion now!
yii framework tutorial introduction sample website admin mysql
MySQL Performance Blog: Sample datasets for benchmarking and testing
by Chris Cornutt February 09, 2011 @ 13:19:28
In a recent post to the MySQL Performance Blog, there's a pointer to a few resources you can use if you need some sample datasets to run your application against - everything from airline flight information to energy usage data.
Sometimes you just need some data to test and stress things. But randomly generated data is awful - it doesn't have realistic distributions, and it isn't easy to understand whether your results are meaningful and correct. Real or quasi-real data is best. Whether you're looking for a couple of megabytes or many terabytes, the following sources of data might help you benchmark and test under more realistic conditions.
The sample data sets vary from fake movie information to sample site traffic data to the large data sets that Amazon provides (including the Human Genome and US Census data). Some of the comments also link to other sources.
voice your opinion now!
sample dataset application random source
Sjoerd Massen's Blog: Passing the PHP 5.3 ZCE exam
by Chris Cornutt December 30, 2010 @ 14:54:02
Another community member has passed the PHP 5.3 Zend Certified Engineer exam (Sjoerd Massen) and has blogged about his experiences both before and during the exam.
Today I passed the exam to become a PHP 5.3 ZCE. Like everyone else I had to sign the non-disclosure contract so I can't go into detail about the questions that were asked, I can however tell my impressions of the exam and how prepared for it.
His preparations included going over some of the older sample tests and some additional study time on streams. He also mentions the PhpRiot iPhone/iPad application that helped him prepare as well as a few of the training courses he bought for certain topics. His overall impression of the exam was that it was more difficult, with plenty of open questions made for you to fill in an answer.
voice your opinion now!
zce zend exam certification phpriot sample test
|
Community Events
Don't see your event here? Let us know!
|