PHPNews

Do your objects talk to strangers?

Good parents teach their children from a young age not to talk to complete strangers, and to tell mom and dad if anyone approaches or tries to talk to them. It makes good sense; children are innocent and will generally believe anything an adult tells them. We do this to protect them. In object-oriented programming, …

Continue reading »

Written by Brandon Savage - - Aggregated on Tuesday January 13, 2015


Some questions about the command bus

So far we've had three posts in this series about commands, events and their corresponding buses and handlers: A wave of command buses Responsibilities of the command bus From commands to events Now I'd like to take the time to answer some of the very interesting questions that by readers. The …

Continue reading »

Written by Matthias Noback - - Aggregated on Tuesday January 13, 2015


Do You Need an API?

API stands for ‘Application Programming Interface’ and as the name implies, creating one is a technical process. This article will talk very little about how to create an API as there are a myriad of methods to undertake that. This article aims to focus on the business side of APIs and supply advice for non-technical …

Continue reading »

Written by Sitepoint - - Aggregated on Monday January 12, 2015


Mocking PHP

Fig 1. Some kind of horrific monkey-muppet-tellytubby hybrid. Much to the dismay of every RoR fanboy that ever lived, I'm not going to break character and start mocking PHP in the literal, playground sense. I'm talking, of course, about mocking internal PHP functions and methods, so that we can test code that …

Continue reading »

Written by Krakjoe - - Aggregated on Monday January 12, 2015


Mocking PHP

Fig 1. Some kind of horrific monkey-muppet-tellytubby hybrid. Much to the dismay of every RoR fanboy that ever lived, I'm not going to break character and start mocking PHP in the literal, playground sense. I'm talking, of course, about mocking internal PHP functions and methods, so that we can test code that …

Continue reading »

Written by Krakjoe - - Aggregated on Monday January 12, 2015


My Leanpub Toolchain

I have a couple of books (so far!) published on Leanpub , and I often get asked by aspiring authors how it works. Everyone's tools will be different, but this is what works for me Storage and Collaboration I did one book using Dropbox for storage because I didn't have private repositories on GitHub, and that …

Continue reading »

Written by Lorna Jane - - Aggregated on Monday January 12, 2015


My Leanpub Toolchain

I have a couple of books (so far!) published on Leanpub , and I often get asked by aspiring authors how it works. Everyone's tools will be different, but this is what works for me Storage and Collaboration I did one book using Dropbox for storage because I didn't have private repositories on GitHub, and that …

Continue reading »

Written by Lorna Jane - - Aggregated on Monday January 12, 2015


Developer Fallacies of 2014

Some people like to take a quick walk down memory lane in January, and post their highlights of the previous year. Last year (2014) was defined for me by a) visa drama and b) stupid arguments. Seeing as I’ve already covered the visa drama and the eventual resolution , I thought I’d take a slightly different …

Continue reading »

Written by Phil Sturgeon - - Aggregated on Saturday January 10, 2015


On HTTP, Middleware, and PSR-7

As I've surveyed the successes and failures of ZF1 and ZF2, I've started considering how we can address usability: how do we make the framework more approachable? One concept I've been researching a ton lately is middleware . Middleware exists in a mature form in Ruby (via Rack ), Python …

Continue reading »

Written by Matthew Weier o'Phinney - - Aggregated on Friday January 9, 2015


On HTTP, Middleware, and PSR-7

As I've surveyed the successes and failures of ZF1 and ZF2, I've started considering how we can address usability: how do we make the framework more approachable? One concept I've been researching a ton lately is middleware . Middleware exists in a mature form in Ruby (via Rack ), Python …

Continue reading »

Written by Matthew Weier o'Phinney - - Aggregated on Friday January 9, 2015


From commands to events

In the previous posts we looked at commands and the command bus. Commands are simple objects which express a user's intention to change something. Internally, the command object is handed over to the command bus , which performs the change that has been requested. While it eventually delegates this task to a …

Continue reading »

Written by Matthias Noback - - Aggregated on Friday January 9, 2015


On HTTP, Middleware, and PSR-7

As I've surveyed the successes and failures of ZF1 and ZF2, I've started considering how we can address usability: how do we make the framework more approachable? One concept I've been researching a ton lately is middleware . Middleware exists in a mature form in Ruby (via Rack ), Python (via WSGI ), and Node …

Continue reading »

Written by Matthew Weier o'Phinney - - Aggregated on Friday January 9, 2015


Messaging Flavours

A message is a unit of communication between systems. There are three flavours of messages: informational, interrogatory, and imperative . Imperative Messages Imperative messages represent the sender’s intention. They instruct the receiver to perform an action or make a change. Do this, change that. We can …

Continue reading »

Written by Mathias Verraes - - Aggregated on Friday January 9, 2015


Responsibilities of the command bus

In the previous post we looked at commands and how you can use them to separate technical aspects of the input, from the actual behavior of your application. Commands are simple objects, handed over to the command bus , which performs the change that is needed. As we learned, the command bus eventually calls the …

Continue reading »

Written by Matthias Noback - - Aggregated on Thursday January 8, 2015