PHPnews.io

Overview for 'matthiasnoback'

A simple recipe for framework decoupling

Written by Matthias Noback / Original link on Sep. 9, 2020

If you want to write applications that are maintainable in the long run, you have to decouple from your framework, ORM, HTTP client, etc. because your application will outlive all of them.Three simple rulesTo accomplish framework decoupling you only have to follow these simple rules:All services sh…


Violating the Dependency rule

Written by Matthias Noback / Original link on Sep. 7, 2020

I write about design rules a lot, but I sometimes forget to:Mention that these rules can't always be applied,Describe when that would be the case, andAdd examples of situations where the rule really doesn't matter.The rules should work in most cases, but sometimes need to be "violated".Which is too…



Free book chapter: Key design patterns

Written by Matthias Noback / Original link on Jul. 22, 2020

I wanted to share with you a free chapter from my latest book, "Advanced Web Application Architecture".I've picked Chapter 11, which gives a compact overview of all the design patterns that are useful for structuring your web application in a way that will (almost) automatically make it independent…



Unit test naming conventions

Written by Matthias Noback / Original link on Jun. 23, 2020

Recently I received a question; if I could explain these four lines:/** * @test */public function it_works_with_a_standard_use_case_for_command_objects(): voidThe author of the email had some great points.For each, my test I should write +3 new line of code instead write, public function testItWork…