PHPNews

Eliminating Visual Debt

Today we're talking about Visual debt in our code. As an introduction, I suggest to watch this short tutorial about visual debt by @jeffrey_way . The concept is simple: let's take the example from Laracasts and re-visit the steps taken to remove visual debt. …

Continue reading »

Written by ocramius.github.io - - Aggregated on Monday May 29, 2017


When to declare classes final

TL;DR: Make your classes always final , if they implement an interface, and no other public methods are defined In the last month, I had a few discussions about the usage of the final marker on PHP classes. The pattern is recurrent: I ask for a newly introduced class …

Continue reading »

Written by ocramius.github.io - - Aggregated on Tuesday January 6, 2015


Fluent Interfaces are Evil

Today, I had again a discussion on IRC on why Doctrine's EntityManager doesn't (and won't) implement a fluent interface. Here are my thoughts on why that's the case. Recap: What is a Fluent interface? A Fluent Interface is an object oriented API that provides "more readable" …

Continue reading »

Written by ocramius.github.io - - Aggregated on Thursday November 7, 2013