Blog

In the competitive landscape of software development, maintaining top-notch code quality is crucial. Bugs not only waste valuable time but can also cost companies millions. This is where static analysis tools like PHPStan come into play. PHPStan is a game-changer for PHP developers, enabling them to detect potential issues in their code before it even runs. By thoroughly analyzing your codebase, PHPStan identifies bugs, enforces coding standards, and highlights areas for improvement.

Read More...

Ensuring that infrastructure services, like Repositories or Cache implementations, are reliable is crucial for building sturdy software. In our previous post, Testing Services in Hexagonal Architecture, we talked about unit testing. Now, let's dive into contract testing to check how infrastructure services works with services from other layers. By making sure that different implementations stick to their contracts consistently, we can keep the system reliable without needing complicated setups. This method helps make sure infrastructure services are dependable and that everything integrates smoothly throughout the system.

Read More...

In software architecture, ensuring effective communication between different components of a system is vital. One effective technique for verifying these connections is through interface mocking. This involves creating mock implementations of interfaces to simulate the behavior of different components. By using these mocks, we can test the services independently, ensuring that the messages they send and receive adhere to a predefined standard, commonly referred to as a "contract". This approach allows us to validate the interactions and functionality of each service without needing the actual implementations or infrastructure.

Read More...

Value Objects (VO) are a fundamental piece of Domain-Driven-Design (DDD) and object-oriented programming. They describe a concept of our domain layer.

Read More...

As I already mentioned in the article Configuring Apache with PHP-FPM in CentOS/RHEL 7, PHP-FPM is a much more efficient to handle large volumes of queries. In this article we will see how to configure it in Ubuntu.

Read More...