PHPeter Hrobarindihjital.hashnode.dev·Jun 13, 2023 · 5 min readLoop elimination in a directed, weighted graphLoop elimination algorithms are commonly used in optimization and graph algorithms to improve performance by removing redundant or unnecessary loops in computations. While the specific use cases may vary, the famous examples where loop elimination al...00
PHPeter Hrobarindihjital.hashnode.dev·Jun 1, 2023 · 4 min readShare nothing, copy by value and go \parallelPhoto by ArtisanalPhoto on Unsplash Parallel processing is a popular concept — especially these days — because it allows for the efficient execution of tasks by dividing them into smaller subtasks that can be processed simultaneously. This usually le...00
PHPeter Hrobarindihjital.hashnode.dev·May 25, 2023 · 6 min readWorker Pool design pattern with PHPPhoto by Museums Victoria on Unsplash In this article, I will show you how to use the Worker Pool design pattern with PHP. In the first part, I will use the Pool and the Threaded classes to demonstrate parallel processing. They are both part of the p...00
PHPeter Hrobarindihjital.hashnode.dev·May 19, 2023 · 10 min readSupercharge Laravel’s validation with value objectsPhoto by Tim Gouw on Unsplash Laravel is a popular PHP framework that provides a robust and flexible validation system for handling user input and ensuring data integrity. Laravel’s validation system allows you to define validation rules for incomin...00
PHPeter Hrobarindihjital.hashnode.dev·May 16, 2023 · 5 min readChaining events in LaravelThe Laravel event management system provides a flexible and powerful mechanism for implementing event-driven architecture in your application. It promotes decoupling, modularity, reusability, and testability while allowing for easy extensibility and ...00