Filina Consulting, Inc


Converting a Joined Resultset Into a Hierarchy

July 2nd, 2015

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

June 16th, 2015

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

June 9th, 2015

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

Magento 1.9 on PHP7

May 30th, 2015

I tested many applications on PHP7 and only one of them had an issue: Magento 1.9. The issue was very easy to fix. I couldn’t find a way to submit a patch because only Magento 2 was on GitHub, so here’s the patch if you decide to upgrade. […]

Read more

Conference Travel Expenses

May 19th, 2015

Some conferences cover expenses of their speakers, other conferences don’t. Travel and accommodation can be extremely expensive and some speakers wonder why a conference would choose to put that burden on the speakers. There are many ways to run a conference. I believe that all conference models are valid. Ticket price The price of a ticket […]

Read more

Doctrine not saving ManyToMany

March 26th, 2015

Say you have a ManyToMany relationship, like Post <—> Tag. When you add tags to a Post and the save the Post, everything is great. But when you add posts to a Tag and then save the Tag, the posts are not saved. Why? Because Doctrine persists changes only on the owning side of a relation. The owning side is […]

Read more

How skiing made me a better developer

March 4th, 2015

I’m currently sitting at T-Bar & Grill in Panorama, British-Columbia, Canada. I had a great week of skiing and another week to come. While ripping the slopes at ear-popping speeds, my mind was surprisingly free to roam and explore ideas that lead me to this article. I’m going to tell you how skiing made me […]

Read more

Should Conference Talks be Written in Advance?

March 3rd, 2015

I had a discussion on Twitter today regarding a conference’s selection process. It was suggested that speakers should be forced to write their entire talk before submitting it to a conference, perhaps even presented at a local event. This might work for speakers who give the same talks over and over again, but that’s not the majority. I organize a […]

Read more

Anatomy of a Bully

February 8th, 2015

This is a combination of research that I read, what I witnessed and what I personally experienced. I was bullied since childhood, too many times to count. I continue to be bullied on a regular basis. I blocked nearly a hundred bullies and harassers on Twitter alone, and it takes much effort to get on that […]

Read more

Fake Facebook Profiles

February 5th, 2015

If you participate in Facebook groups, you have probably seen requests to join. About half of the people who try to join my group are fake profiles. I block them. But how can I be sure which ones are fake? It’s really easy. I look at a number of elements. Date joined Fake profiles would probably […]

Read more

Newer Posts Older Posts

Phone: +1 514-918-7866 | E-mail: