Profile cover photo
Profile photo
Russell Walker
12 followers
12 followers
About
Posts

Post has attachment
The Liskov Substitution Principle is not about squares and rectangles
I was recently trying to find a good example of a violoation of the Liskov Substitution Principle (LSP - the L of SOLID), but all I could think of was cases where an exception is thrown or processing is otherwise terminated in a child class where it would n...
Add a comment...

Post has attachment
Is Best Practice Actually Poor Practice? Dependency Injection, Type Hinting, and Unit Tests...
I've recently been in discussion with a colleague who thinks that dependency injection (DI) is over-used and, in cases where the dependency is a concrete class, unnecessary (in the latter case, he advocates simply creating new objects on the fly). I raised ...
Add a comment...

Post has attachment
Domain example.com has exceeded the max defers and failures per hour
When sending e-mail from a cPanel hosting account, you might find that you get an error message similar to this: "Domain yourdomain.com has exceeded the max defers and failures per hour (5/5 (100%)) allowed. Message discarded." If you are getting that error...
Add a comment...

Post has attachment
How the heck to you implement a dependency injection container?
When I started learning object oriented
programming, I quickly discovered the joys of dependency injection.
It's not hard to understand why you should do it, nor is it hard to
understand how to do it (but if you need a refresher, see my earlier post ). For ...
Add a comment...

Post has attachment
How the heck to you implement a dependency injection container?
When I started learning object oriented
programming, I quickly discovered the joys of dependency injection.
It's not hard to understand why you should do it, nor is it hard to
understand how to do it (but if you need a refresher, see my earlier
post:
http:/...
Add a comment...

Post has attachment
PHPUnit: cannot open file bootstrap.php
This post is google fodder for anyone who comes across the error 'cannot open file: /some/directory/here/tests/unit/bootstrap.php' when attempting to run unit tests with PHPUnit. In particular, I got this error when trying to set up unit tests for a new pro...
PHPUnit: cannot open file bootstrap.php
PHPUnit: cannot open file bootstrap.php
russellscottwalker.blogspot.com
Add a comment...

Post has attachment
Entities vs Value Objects and Doctrine 2
An aspect of Domain Driven Design (DDD)
that I find quite appealing is the differentiation between entities
and value objects. I don't think you even need to embrace DDD as a
whole to benefit from this distinction (I'm not saying you shouldn't
embrace DDD, ...
Entities vs Value Objects and Doctrine 2
Entities vs Value Objects and Doctrine 2
russellscottwalker.blogspot.com
Add a comment...

Post has attachment
Entities vs Value Objects and Doctrine 2
An aspect of Domain Driven Design (DDD)
that I find quite appealing is the differentiation between entities
and value objects. I don't think you even need to embrace DDD as a
whole to benefit from this distinction (I'm not saying you shouldn't
embrace DDD, ...
Entities vs Value Objects and Doctrine 2
Entities vs Value Objects and Doctrine 2
russellscottwalker.blogspot.com
Add a comment...

Post has attachment
Entities vs Value Objects and Doctrine 2
An aspect of Domain Driven Design (DDD)
that I find quite appealing is the differentiation between entities
and value objects. I don't think you even need to embrace DDD as a
whole to benefit from this distinction (I'm not saying you shouldn't
embrace DDD, ...
Entities vs Value Objects and Doctrine 2
Entities vs Value Objects and Doctrine 2
russellscottwalker.blogspot.com
Add a comment...

Post has attachment
Active Record vs Data Mapper for Persistence
These two design patterns are explained in Martin Fowler's book 'Patterns of Enterprise Application Architecture', and represent ways of handling data persistence in object oriented programming. Here are the basics: Active Record Example class Foo
{
pr...
Active Record vs Data Mapper for Persistence
Active Record vs Data Mapper for Persistence
russellscottwalker.blogspot.com
Add a comment...
Wait while more posts are being loaded