dihjital.hashnode.devLoop 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...Jun 13, 2023·5 min read
dihjital.hashnode.devShare 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...Jun 1, 2023·4 min read
dihjital.hashnode.devWorker 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...May 25, 2023·6 min read
dihjital.hashnode.devSupercharge 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...May 19, 2023·10 min read
dihjital.hashnode.devChaining 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 ...May 16, 2023·5 min read