Skip to content

Mohcin Bounouara

Thoughts about software engineering and life

Synchronous and Asynchronous code by simple examples

In software development, there are two important concepts: synchronous and asynchronous behavior. JavaScript developers, especially those who use vanilla JavaScript, know these well because of how promises work. I like to explain things in a simple way, so it’s easier for me and others to understand new topics. Synchronous Programming Let’s imagine you went to Continue reading “Synchronous and Asynchronous code by simple examples”

Fixing Object Pagination with Laravel and Inertia.js that gives empty data

Problem When working with Laravel and Inertia.js, pagination returns an object instead of an array. This can make looping over the results a bit tricky, as the expected array structure isn’t accessible. For example, in a typical Laravel controller method like this: You might see the data coming through correctly as a prop in your Continue reading “Fixing Object Pagination with Laravel and Inertia.js that gives empty data”

Fixing Laravel Route Conflicts, that led to 404 Errors for Existing Routes

Problem: Recently, while developing a feature to update resources in my Laravel app, I faced an unexpected issue: the create functionality, which had been working previously, suddenly stopped functioning. When I tried accessing the jobs/create route, it led to a 404 page, even though my unit tests confirmed that the route existed and the functionality Continue reading “Fixing Laravel Route Conflicts, that led to 404 Errors for Existing Routes”

Delegation Skills Is a Must In Software Development

In the field of software development, mastering delegation is a must. I’ve always known this from learning and practicing in real-life work scenarios, as well as from various web conferences and podcasts discussing the importance of delegation. However, it wasn’t until today that I fully know its significance. Without delegation, you may experience the following: Continue reading “Delegation Skills Is a Must In Software Development”