PHPNews

Choose Dependency Injection — If You Can

Written by Paul M. Jones - Published on There are no solutions, only tradeoffs.
Aggregated on Tuesday October 17, 2017 - Permalink

Some people say, “You don’t need to use dependency injection for everything. Sometimes dependency injection is not the best choice.” It occurs to me that the people who say this are the ones who can’t use it for everything. They say “choose what’s best for your situation”, but their situation precludes the use of dependency injection in the first place. Anyone who says “X is not always the …

Continue reading »


Atlas.Orm 2.0 Is Now Stable

Written by Paul M. Jones - Published on There are no solutions, only tradeoffs.
Aggregated on Tuesday October 17, 2017 - Permalink

I am very happy to announce that Atlas , a data-mapper for your persistence layer in PHP, is now stable for production use! There are no changes, other than documentation updates, since the beta release two weeks ago. You can get Atlas from Packagist via Composer by adding … "require": { "atlas/orm": "~2.0" } … to your composer.json file. The updated documentation …

Continue reading »


A Few Right Ways, But Infinitely More Wrong Ways

Written by Paul M. Jones - Published on There are no solutions, only tradeoffs.
Aggregated on Tuesday October 10, 2017 - Permalink

A response to the saying: “There’s no one ‘right’ way to do things. There are different ways of doing something that are ‘right’. So stop criticizing my chosen way of doing things — you cannot prove that it is wrong.” For any question, there is a certain number of right answers, but an infinite number of wrong ones. Likewise, there may be more than one right way, but that number is small in …

Continue reading »


Atlas.Orm 2.0.0-beta1 Released

Written by Paul M. Jones - Published on There are no solutions, only tradeoffs.
Aggregated on Tuesday October 3, 2017 - Permalink

I am very happy to announce that I have just released 2.0.0-beta1 of Atlas , a data mapper for your SQL persistence model. You can get it via Composer as atlas/orm . This new major version requires PHP 7.1 and uses typehints, but best of all, it is backwards compatible with existing 1.x generated Atlas classes! I. The original motivation for starting the 2.x series was an edge-case bug. …

Continue reading »


Quality: Program vs Product

Written by Paul M. Jones - Published on There are no solutions, only tradeoffs.
Aggregated on Tuesday September 26, 2017 - Permalink

I. Why it is that programmers and their employers have different attitudes toward the quality of a project? Thinking of myself as a programmer, I have sometimes formulated it like this: The programmers who do the work are usually the ones who care more about “quality.” Why? They have a reputation to maintain. Low quality for their kind of work is bad for reputation among their …

Continue reading »