-
Is spying on mocks a bad practice for unit tests?
07 July 2019 —
Comments For a long time, I have been trying to include tests in every project in which I've worked on. There are several types of automated tests (or what should actually be called automated checks). From unit tests, integration and functional tests, to end-to-end tests. Each one of them differs from the re…
-
Considerations to properly use open source software projects
27 April 2019 —
Comments I've been wanting to write this article for a while, but it is a subject complex to approach. Lately I've had some "conflicts" with users in some of the open source software (OSS) projects I maintain, and I have also seen some of the people I follow on Twitter dealing with the same. Because of that …
-
Dependency injection in nodejs projects
14 December 2018 —
Comments Some of you know that I work now as a full stack javascript developer, and I have interacted with a few different projects, both in front-end javascript and in nodejs. My main concern about javascript has been that, apparently, the community has not adopted one of the practices that, for me, has bee…
-
Delay constructor execution by using ServiceManager lazy services
16 November 2018 —
Comments A couple years ago I wrote a post about how to improve PHP applications performance by using zend-servicemanager lazy services. In that article I explained how the ServiceManager takes advantage of the proxy design pattern to delay the creation of services, when they are marked as lazy. That can imp…
-
Demonstrating the interoperability and decoupling of Zend Expressive
14 July 2018 —
Comments I have written a lot of posts about Zend Framework in general and Zend Expressive in particular, but I have noticed that I have never talked about one of the things that, from my point of view, makes Expressive so game-changing, Interoperability. Some context In the past, PHP frameworks used to be v…