Dependency Injection in JavaScript: A Functional Approach

  • 2025-06-24
  • design-patterns, dependency-injection, software-development, testing, developer-experience, javascript, typescript

Learn how to apply Dependency Injection in JavaScript using a functional programming style. This approach improves testability, modularity, and developer experience by decoupling dependencies from function logic.

Why JavaScript Deserves Dependency Injection

  • 2025-06-18
  • design-patterns, dependency-injection, software-development, testing, developer-experience, javascript, typescript

The evolution of JavaScript from client-side to server-side has invalidated many reasons for avoiding Dependency Injection. This post explores how Dependency Injection can be used in JavaScript and highlights its advantages beyond testing.

Dependency Injection: Why it matters not only for testing

  • 2025-06-01
  • design-patterns, dependency-injection, software-development, testing, developer-experience

Most articles highlight how Dependency Injection simplifies testing and improves modularity and maintainability. In this post I will show how DI accelerates development and boosts developer experience

Multi-namespace migrations with doctrine/migrations 3.0

  • 2020-04-05
  • open-source, php, doctrine, migrations, database

doctrine/migrations 3.0-alpha1 has been made available last week. The main user-facing feature is the ability to define migrations into multiple folders/namespaces and to specify dependencies between migrations.

Released doctrine/migrations 3.0-alpha

  • 2020-03-29
  • open-source, php, doctrine, migrations, database

doctrine/migrations 3.0-alpha has been made available today. This new major release is the result of almost 6 months of work, brings a completely refactored/rewritten internal structure and many new features.

Make the difference when contributing to open-source

  • 2019-10-22
  • open-source, php

Collaboration in open-source it is always a hard thing. It is a delicate balance of freedom, ideas, rules, time, money and motivation. If you decide to contribute, make your contributions count. Do not waste precious resources.

How to use external services with the Symfony Validator

  • 2019-10-07
  • php, symfony, validator, validation, expression-language

In this article we are going to see a particular case of validation using the Symfony Validator expression language and accessing third party services.

Changing credentials on Docker Swarm Services

  • 2019-07-01
  • php, docker, devops, swarm, security

This post will give you and overview on how docker performs the authentication into image registries,
and how changes to the credentials alters the workflow when multiple nodes are involved.

Traps on the way of Blue-Green deployments

  • 2019-06-14
  • php, docker, devops, swarm

Docker (as well as Kubernetes) gives you a way to update your applications with no-downtime through a strategy called Blue-Green deployment. Here we can see a common trap (and solution) when building PHP-based applications and doing blue-green deployments.

Why and how some people run open source projects

  • 2019-02-06
  • php, open-source

In the past weeks I asked some people to answer few questions on how and why they maintain/develop open source projects. The results are here.

Want more info?