• submit to reddit
Cal Evans12/29/10
3628 views
0 replies

Book Report: You Want to Do What with PHP?

I hate getting books for review that are written by friends of mine. I have a strict policy that I won’t review a book I don’t like. This leads to awkward conversations if, after skimming the book, I decide not to review it. Thankfully, that isn’t...

Giorgio Sironi12/29/10
4739 views
0 replies

Practical PHP Testing Patterns: Delegated Setup

Inline Setup is pretty simple to understand: you just create the fixture when you need them, in the Test Method that needs them. But sometimes the process gets too long, or unreadable, or full of duplicated code between tests. So you have to factor out that...

Giorgio Sironi12/28/10
6008 views
2 replies

Reuse your closures with functors

I like PHP closures and their superset, anomyous functions, as

Giorgio Sironi12/27/10
3652 views
0 replies

Practical PHP Testing Patterns: Inline Setup

We are entering the realm of fixture setup, when we will see how Shared/Fresh Standard/Minimal Fixtures are effectively implemented within the context of xUnit frameworks. These patterns do not discuss if the fixture is:shared between tests (Shared)created...

Giorgio Sironi12/23/10
7850 views
6 replies

What cooking can teach to a software developer

Let's start with question which does not really matter for software development: how much flour should I put in my pastries?The complex answer is that it should be just enough for making them stiff and not squashing down, and also increase in size in the...

Giorgio Sironi12/22/10
5426 views
0 replies

Practical PHP Testing Patterns: Test Discovery

The Test Discovery pattern describes automated mechanisms for the testing framework to define which of your tests should be run at the user's request.Usually, a framework that implements this pattern should discover all the tests of an application, since only...

Giorgio Sironi12/20/10
5503 views
0 replies

Practical PHP Testing Patterns: Test Suite

A Test Suite object implements the same interface of a Testcase Class, but it is in fact a collection of Testcase Objects instead of a single one. When run, this Test Suite will aggregate the execution of all the contained tests.As you may have correctly...

Giorgio Sironi12/16/10
6893 views
0 replies

Real-life closures examples ...for real

What's the point of substituting a perfectly fine foreach cycle, which is one of the most handy constructs of PHP,$newArray = array();foreach ($array as $value) { $newArray = $value * $value;}with anonymous functions/closures:$newArray = array_map($array,...

Giorgio Sironi12/15/10
6656 views
0 replies

Practical PHP Testing Patterns: Testcase Object

The Testcase Object pattern, which goes hand in hand with the Testcase Class one, is a specialized Command pattern, applied to the single tests of your suite.The goal of the Testcase Object is to decouple the Testcase methods definition from the actual tests...

Maarten Balliauw12/14/10
7181 views
0 replies

Getting Started with the Windows Azure SDK for PHP

The Windows Azure platform is a flexible, cloud computing platform that lets you focus on solving business problems and addressing customer needs. It is a group of cloud technologies, each providing a specific set of services to application developers. The...

Maarten Balliauw12/14/10
7368 views
0 replies

Tutorial - Using the Windows Azure SDK for PHP

This tutorial focuses on obtaining the Windows Azure SDK and a Windows Azure storage account. In all tutorials, the Windows Azure development storage will be used for working with Windows Azure storage services. Development storage is a simulation...

Robert Diana12/13/10
91248 views
31 replies

9 Programming Languages To Watch In 2011

I have written several posts regarding job trends in programming languages. However, I have not really written any posts that looked towards the future of programming languages. With job trends, I have been focusing on more heavily adopted languages.

Giorgio Sironi12/13/10
5641 views
0 replies

Practical PHP Testing Patterns: Test Runner

Tests are more PHP classes than PHP scripts, in the sense that they are not meant to be executed by themselves. Instead, they are classes which can be instantiated with the right parameters, often calculated using reflections over the class method names and...

Rafael Dohms12/09/10
5203 views
1 replies

How Microsoft is making PHP Development easier

Recently I had an opportunity to have a chat with Microsoft, along with a few PHP community members. We were greeted by Josh Holmes (Architect Evangelist / US) and Rogerio Cordeiro (Developer Evangelist / Brasil) at the Microsoft HQ in São Paulo and headed...

Justin Whitney12/09/10
14844 views
0 replies

Silverlighting Your PHP, Part 3: Bringing PHP Into Visual Studio

Blending PHP with Silverlight may seem like an unholy union. First of all, Visual Studio still doesn’t support PHP development without an add-in. Second, you need a Windows box in order to run .NET code. But if you’re willing to set aside your...