Subscribe: Paul M. Jones
Added By: Feedage Forager Feedage Grade B rated
Language: English
atlas orm  atlas  choose  continue reading  continue  dependency injection  dependency  injection  line coverage  line  reading  ways 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Paul M. Jones

Paul M. Jones

There are no solutions, only tradeoffs.

Last Build Date: Tue, 13 Feb 2018 13:00:32 +0000


Line Coverage in Unit Tests

Tue, 13 Feb 2018 13:00:32 +0000

The novice says, “I do not strive for 100% line coverage in tests; I only write tests for the code that is important.” The master says, “If the code is not important, why is it there at all? I will strive to test every line I write; if a line is not important, it should … Continue reading Line Coverage in Unit Tests

Atlas 2.1.0 Released with “Polymorphic Association” Support

Wed, 07 Feb 2018 13:40:30 +0000

I’m happy to announce that I released Atlas 2.1.0 late yesterday. (Atlas is a data mapper for your persistence model in PHP – not your domain model.) In addition to some minor added informational and convenience functionality, the big addition in this release is support for many-to-one relationships by reference (aka “polymorphic association”). You can … Continue reading Atlas 2.1.0 Released with “Polymorphic Association” Support


Tue, 06 Feb 2018 13:12:43 +0000

The novice says: “Nothing can ever be perfect; anything I choose will be imperfect. Therefore, all choices are equally bad, so I may choose whatever I feel like.” The master says: “Some things are less imperfect than others; I will make the least-imperfect choice that I can.”

Best Practices

Wed, 31 Jan 2018 16:00:12 +0000

Best practices evolve. Even though they change, they tend to change in the direction of “better”, not “worse”. The novice thinks he is an individual. The novice says: “Best practices are always changing; why bother adhering to something that I know will change? I am free to do what I feel like without referring to … Continue reading Best Practices

Considering Typehints As Communication

Tue, 02 Jan 2018 15:51:08 +0000

Typehints help communicate across time and space, to people who may never meet you or who might not be able to interrogate you about your code, so those people can understand how you expect the code to work. Adding typehints is a succinct, more-complete form of communication than not-adding them. (It is rare, perhaps impossible, … Continue reading Considering Typehints As Communication

Solving The “Widget Problem” In ADR

Thu, 28 Dec 2017 16:15:42 +0000

The “widget problem” is when you have several panels or content areas on an HTML page that have different data sources. You might have a main content area, then a calendar off to the side, with perhaps a list of recent news items or blog posts, a todo or reminder widget, and maybe other information … Continue reading Solving The “Widget Problem” In ADR

Avoid Dependency Injection

Tue, 05 Dec 2017 13:00:15 +0000

At least, avoid it when building DDD Aggregates: Dependency injection of a Repository or a Domain Service into an Aggregate should generally be viewed as harmful. The motivation may be to look up a dependent object instance from inside the Aggregate. The dependent object could be another Aggregate, or a number of them. … Preferably, … Continue reading Avoid Dependency Injection

Choose Dependency Injection — If You Can

Tue, 17 Oct 2017 14:00:18 +0000

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 … Continue reading Choose Dependency Injection — If You Can

Atlas.Orm 2.0 Is Now Stable

Tue, 17 Oct 2017 13:43:53 +0000

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 … Continue reading Atlas.Orm 2.0 Is Now Stable

A Few Right Ways, But Infinitely More Wrong Ways

Tue, 10 Oct 2017 15:25:45 +0000

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 … Continue reading A Few Right Ways, But Infinitely More Wrong Ways