Category Programming

Microservices and Magento (Quick Note)

Firebear Studio published an interesting blog on Magento and Microservices. You might like to go read it first at Microservices In eCommerce And Magento | FireBear Blog. I thought I would give a quick possible way forward for Magento to see what others think. (There is no commitment to do any of this at this […]

Improving PHP Support for Dependency Injection

Most modern frameworks support Dependency Injection, including Symfony, Zend 2, and of course Magento 2. One of the criticisms of Magento 2 has been the extra code volume it has created compared to Magento 1. (It is the same problem in other frameworks – it is highlighted in Magento 2 because there is a direct […]

ApacheSpark

A Foray into Spark and Scala

Apache Spark is a new wave in Big Data computing, an alternative to technologies such as Hadoop. I was recently watching someone analyze log files of image URL requests using shell scripts to create a MySQL database and thought it might be an interesting exercise to try it in Spark as well. Hadoop versus Spark So what […]

What is “Good Code?”

What is “good code”? This question is probably as old as programming itself. Sometimes I forget how old programming is. (See my previous post “The Ten Commandments of Egoless Programming” a few years back, celebrating the 42nd anniversary of this original list.) The discussion in https://github.com/magento/magento2/issues/1133 raised this question for me. My gut reaction was immediate […]

Why I Prefer Constructor Injection over Setter or Property Injection

Magento 2 uses constructor injection as a part of the move towards dependency injection. This is a quick post on why I personally believe constructor injection is the best approach. And to give appropriate credit, it was the core team and individuals like Anton Kril that drove the introduction of dependency injection in Magento. I […]

How important is PHP Type Hinting to Magento? (Quick Note)

I did not have time for a real post this week on Magento 2, so I thought I would replace it with a community question. I am personally interested in Magento community opinions as a litmus test to work out trends of Magento versus more general PHP community. Reading http://www.matthias-zeis.com/archiv/magento-neuigkeiten-32 there was a comment that […]

Performance versus Scalability (Quick Note)

A frequent source of confusion I come across is the difference between performance and scalability. They are related, but not the same thing. Performance is speed – for example, how fast does a web page come up for a user in a web browser. Scalability is about how much load you can throw at a site […]

“PHP Namespaces as flawed” NOT! (Quick Note)

@VinaiKopp tweeted about an old post “PHP namespaces are flawed” by @pornelski. I don’t agree with many of the points, Vinai asked why, too long for a tweet response so here is a quick blog post instead. I will start off saying a lot of the following is formed from my experiences from Java, but […]

TrendBugs

Magento 2 Test Automation – is it Helping? YES!

Magento 2 is more than a revamped platform – automating testing has also been a significant investment. But is it paying off? Is test automation worth the effort? YES! Here is the data to prove it. Disclaimer: opinions expressed here are my own and not necessarily that of my employer. Please also note the data […]

ray-gun

Performance Analysis with Z-ray in Zend Server 7

Zend Server 7 was released last week which includes Z-ray, a performance analysis tool. (Think X-ray vision.) I have done my fair share of performance analysis over the years in C/C++ and Java, so was curious to see how good the tools around are for PHP. So here are my experiences after a few days of […]