ConFoo Call for Papers is Open

ConFoo is once more seeking passionate speakers for the upcoming conference. The event is happening in Montreal, Canada, between February 24th and 26th, 2016. It is an exciting conference for web developers with speakers from all over the world. It unites many web programming languages under one roof, as well as other topics related to…

Read More

Forcing Doctrine to Persist

I stumbled upon a case where Doctrine would refuse to persist my entity due to a very special circumstance. Here’s the context: I’m using a generic method in my Repository to fetch a Post. I’m selecting partial fields like this:

If the entity is found, then I proceed to delete it by setting is_deleted to true,…

Read More

Converting a Joined Resultset Into a Hierarchy

I needed nested resultsets in some projects. I’ve seen a lot of StackOverflow chatter which essentially pointed people towards Doctrine or Propel ORMs, which was overkill when you didn’t want mapping or even model classes. I built a very small function that will transform joined results into a hierarchy. This avoids using heavy ORMs if you just…

Read More

Naming functions consistently

I believe that in order to write readable and maintainable code, we must name our functions in a consistent way. What I noticed by reading a lot of code, especially frameworks, is that developers use too many different verbs when naming functions. It’s even worse when the verbs are meaningless, such as handle, execute, do, match,…

Read More

Composer Security Checker

Stefan Priebsch made some very interesting points in his IPC talk about dependencies. Someone in the audience asked how often should we update our dependencies. Stefan recommends not to touch dependencies if everything is working and only monitor for security updates. However, monitoring security updates for a big dependency tree would be tedious. Here comes my…

Read More