PHP, MySQL, Symfony, Doctrine, Javascript, jQuery, Vue.js, Express.js, Socket.io, HTML5, CSS, SASS, RWD, Git, Webpack, Gulp, Vagrant etc., WordPress, Magento, Prestashop, Linux
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 endpoints. That was strange because I would rather expect the relevant logic should be the heaviest part of the request. Problem Turns out, that by default every dependency in Laravel […] Article Uncovering the bottlenecks: An investigation into the poor performance of Laravel’s container is from SarvenDev.
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 lack of deferred providers. It was strange because we’ve used a lot of deferred providers. After more debugging, we’ve found that AggregateProviders doesn’t respect […] Article Laravel – AggregateServiceProvider affects the performance is from SarvenDev.
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 following: final class Service { /** * @var HandlerInterface[] */ private readonly array $handlers; public function __construct( HandlerInterface ...$handlers, ) { $this->handlers = […] Article Laravel – variadic parameter trap is from SarvenDev.
During modeling a business logic we have often a problem with properly highlighting a relevant future action. I mean relevant from a domain point of view. The most popular solution will be using a CLI command which will be executed by cron at a specific time. I think that this solution often hides a lot […] Article Modeling a future action is from SarvenDev.
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 knowledge from conferences or blogs. As I saw many times, people are trying to be too much strict with these practices. Trying to make […] Article An absolutely clean domain or just common sense is from SarvenDev.
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 business logic, unit tests are the most important tests, because they are fast and can us instantly assure that our implementation is correct. However, […] Article Unit testing tips by examples in PHP is from SarvenDev.
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 (images, volumes, etc.) in /var/lib/docker. Firstly I wanted to move this directory to the /home, but unfortunately, there was probably a problem with encryption, […] Article Docker hangs during build is from SarvenDev.
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 can go wrong. These calls can be potential bottlenecks, we don’t want user waiting for the response from the server very long, because external […] Article Circuit Breaker is from SarvenDev.
Objąłem tegoroczną edycję konferencji ConFrontJS 2019 patronatem medialnym. Konferencja odbędzie się 7 grudnia w Warszawie. Mam dla Was kod rabatowy -25% do wykorzystania nie tylko na wejściówki na konferencję, ale również na bilet VIP i workshop. Szczegóły możecie znaleźć tutaj: https://2019.confrontjs.com/ Mimo, że w pracy siedzę głównie w backendzie to na pewno będę na tej konferencji, […]
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 solutions are correct. Are you sure? Maybe there is a tool that can give us more accurate feedback? Mutation testing Mutation testing is […] Article Mutation testing – we are testing tests is from SarvenDev.
Pisanie testów ma nas upewnić, że wytwarzany przez nas kod działa poprawnie. Często wyznaczamy sobie współczynnik code coverage i przy wyniku blisko stuprocentowym możemy powiedzieć, że zaimplementowane rozwiązania są poprawne. Na pewno? Może jest jakieś narzędzie, które dam nam lepszy feedback? Testy mutacyjne Testowanie mutacyjne polega na modyfikacji małych części kodu i sprawdzaniu w jaki […]
To jak tam, już implementujecie wszędzie nowe rozwiązania zasłyszane podczas konferencji? Ja wróciłem jakieś 4 godziny temu do domu i pomyślałem, że może napiszę jakieś podsumowanie. Wrażenia bardzo pozytywne, jedynie cały czas mam lekki niedosyt, że tak szybko to minęło, a mogłem jedynie zobaczyć małą część prezentacji. Tak, aby w dzień konferencji funkcjonować w miarę […]
Trzeba przyznać, że PHP rozwija się dosyć wolno. Główne wydania pojawią się średnio co roku, jednak ilość zmian nie jest jakaś przytłaczająca, a nadal brakuje dosyć istotnych elementów jak np. klas generycznych. Jednak jeśli chodzi o wzrost wydajności to wygląda to na prawdę bardzo dobrze, co wydanie to jest coś na plus. Dlatego chcąc nie […]
Trzeba przyznać, że PHP rozwija się dosyć wolno. Główne wydania pojawią się średnio co roku, jednak ilość zmian nie jest jakaś przytłaczająca, a nadal brakuje dosyć istotnych elementów jak np. klas generycznych. Jednak jeśli chodzi o wzrost wydajności to wygląda to na prawdę bardzo dobrze, co wydanie to jest coś na plus. Dlatego chcąc nie […]
Od wersji php 7.0 mamy możliwość używania deklaracji typów w parametrach funkcji, metod, a od 7.1 również możemy określić typ wartości zwracanej. Jednak okazuje się, że nie do końca działa to w sposób jaki moglibyśmy oczekiwać, a często wartości są po prostu w miarę możliwości konwertowane do pożądanego typu. Natomiast konwersja często może być efektem […]
PHP, MySQL, Symfony, Doctrine, Javascript, jQuery, Vue.js, Express.js, Socket.io, HTML5, CSS, SASS, RWD, Git, Webpack, Gulp, Vagrant etc., WordPress, Magento, Prestashop, Linux
SarvenDev a właściwie Kamil Ruchała jest z Nowego Sącza. Swoją przygodę zaczął jako freelancer pisząc wtyczki do WordPress, Magento czy Prestashop.
Obecnie pracuje jako Backend Developer, ale mimo to nie zamyka się na technologie frontendowe - lubi pisać kod między innymi w Vue.js.