Brak podglądu sarvendev.com · php UUID, ORM and strange deadlocks Some time ago I took over the development of one module in a bigger application. The volume of requests in this module was quite small. However, I’ve noticed some strange deadlocks... 30.10.2024 sarvendev.com
Brak podglądu sarvendev.com · laravel Poor performance of Eloquent ORM in comparison to Doctrine In the last article, I compared two ORMs: Eloquent mostly related to Laravel, and Doctrine associated with Symfony. I presented a comparison on why reading data from the database w... 14.10.2024 sarvendev.com
Brak podglądu sarvendev.com · good practices Unlocking ORM Performance: The Essential Role of Read Models ORMs are useful tools that help us save our objects to the database. However, there are some pitfalls, so it is important to know the tools we use. In this article, I want to focus... 01.10.2024 sarvendev.com
Brak podglądu sarvendev.com · laravel Container Efficiency in Modular Monoliths: Symfony vs. Laravel In the evolving landscape of software development, modular monolith architectures have gained significant traction. This approach offers a balanced middle ground between traditiona... 10.07.2024 sarvendev.com
Brak podglądu sarvendev.com · laravel Laravel: Bootstrap time optimization by using a hashtable to store providers Having a profiler and performance monitoring is crucial for maintaining the efficiency and reliability of any application. Profilers help engineers identify bottlenecks by providin... 28.05.2024 sarvendev.com
Brak podglądu sarvendev.com · php Rethinking Mocking: DIY Approach vs. Frameworks on examples in PHP and Typescript In the landscape of software testing, the choice between a do-it-yourself (DIY) approach to mocking or utilizing mocking frameworks is a pivotal decision for programmers. While moc... 23.04.2024 sarvendev.com
Brak podglądu sarvendev.com · php Tips for optimizing integration tests While unit tests are known for their speed compared to integration tests, the latter offer heightened confidence in the system’s functionality. Thus, avoiding integration tests is... 25.01.2024 sarvendev.com
Brak podglądu sarvendev.com · laravel Uncovering the bottlenecks: An investigation into the poor performance of Laravel’s container Last time I’ve been analyzing the performance of Laravel’s container. I’ve encountered that the application spends a lot of time building dependencies, especially for heavy endpoin... 03.04.2023 sarvendev.com
Brak podglądu sarvendev.com · laravel Laravel – AggregateServiceProvider affects the performance Some time ago I started wondering about the long bootstrap time of an application based on Laravel. I’ve started debugging and have figured out that this problem was related to the... 21.03.2023 sarvendev.com
Brak podglądu sarvendev.com · laravel Laravel – variadic parameter trap What do you expect from the framework if the dependency cannot be created? Sure, it should be an exception, but I had an unpleasant surprise. Problem I had code similar to the foll... 14.03.2023 sarvendev.com
Brak podglądu sarvendev.com · ddd An absolutely clean domain or just common sense Nowadays, a concept like DDD is widely known and used by many programmers. Curious programmers read a lot about those practices in books written by Evans or Vernon or maybe have kn... 11.10.2022 sarvendev.com
Brak podglądu sarvendev.com · good practices Unit testing tips by examples in PHP In these times, the benefits of writing unit tests are huge. I think that most of the recently started projects contain any unit tests. In enterprise applications with a lot of bus... 17.08.2021 sarvendev.com
Brak podglądu sarvendev.com · devops Docker hangs during build Yesterday I had a strange problem with Docker during a build process. I use Linux Mint. I didn’t have enough space at the main system directory /. By default, Docker saves all data... 02.04.2020 sarvendev.com
Brak podglądu sarvendev.com · patterns Circuit Breaker In most systems, we use remote calls. Many factors may have an impact on these remote calls e.g. network latency, server availability and so on. So we should assume that something... 23.03.2020 sarvendev.com
Brak podglądu sarvendev.com · good practices Mutation testing – we are testing tests Writing tests should assure us that the code created by us is working correctly. Often we point out the code coverage factor and if we have 100% we can say that implemented solutio... 25.06.2019 sarvendev.com
Brak podglądu sarvendev.com · good practices Entity should always be valid Very often in projects using Doctrine, in entity there are mapping for fields also for each field there are getters and setters. In addition, for each field, we have validation ann... 29.01.2018 sarvendev.com
Brak podglądu sarvendev.com · good practices Active record (Eloquent) vs Data mapper (Doctrine) In the most of systems need to save data somewhere and in some way. ORM (Object-Relational Mapping), is the way of mapping the system to the database. ORM is the layer between data... 15.01.2018 sarvendev.com
Brak podglądu sarvendev.com · good practices Service locator vs Dependency injection During designing application, we are making new classes. Classes have dependencies. In programming we distinguish two patterns for managing class’s dependencies: Dependency injecti... 09.11.2017 sarvendev.com