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”
Author Archives: mohcinbounouara.com
Update GitHub Access Token Locally
When you are working on a local project and using a GitHub Access Token to push your code, you might face an issue when the token expires, and you forget to update it or something like this. If you try to push or pull your changes, you’ll get an error stating that you are not Continue reading “Update GitHub Access Token Locally”
It’s ok to feel afraid when working to fill your knowledge gaps as a developer
I have been dealing with this feeling for years, and I still do. In the beginning, it was really frustrating for me, day by day, step by step, I learned to “TRY DEALING WITH IT”, not fully “DEALING WITH IT” yet, because I’m not at that level. Let me share a story that might be Continue reading “It’s ok to feel afraid when working to fill your knowledge gaps as a developer”
Take a breath before continue
When I sense that my motivation to publish is driven by the desire to share for the sake of just sharing or to impress others, I take a break from posting to realign myself and my goal from the whole thing. Impressing people was never and will never be the reason I began sharing, but Continue reading “Take a breath before continue”
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”
Knowledge comes on the way.
In life, and especially in software development, you can not always fully understand every step or action right away. I used to struggle with this feeling, like I wasn’t good enough if I didn’t completely understand every detail of what I was doing in programming. However, I was wrong. It’s totally normal to use or Continue reading “Knowledge comes on the way.”
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”
Understanding Method Spoofing in Laravel
Title: Understanding Method Spoofing in Laravel When working with request/response methods, different HTTP methods like GET, POST, PUT, and PATCH have custom purposes. POST is generally used for creating resources, while PUT and PATCH are intended for updates. But as a developer, you’ll often see POST used for updates too. This happens due to browser Continue reading “Understanding Method Spoofing in Laravel”
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”
The Joy of Understanding One Line of Code
In your software development career, you’ve probably experienced the joy of truly understanding a line of code, right?