PHPnews.io

Overview for 'matthiasnoback'

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, and Add examples of situations where the rule really doesn't matter. The rules should work in most cases, but sometimes need to be "violated". Which…



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 independen…



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(): void The author of the email had some great points. For each, my test I should write +3 new line of code instead write, public function testIt…


Book release: PHP for the Web

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

While Advanced Web Application Architecture is still a work in progress, I decided to release another project in the meantime: a book for beginning PHP developers called PHP for the Web. Of course, there are PHP books for beginners, but most of them aren't very concise. They cover many related topi…