Skip to content

Mohcin Bounouara

Thoughts about software engineering and life

Handling Multiple Forms with Different Field Names Using a Single Endpoint

The Problem: Suppose you have an endpoint to send data to the database, and in your project, you have two forms with the same field(s), let’s say a field named “name”. How can you manage this without creating redundant and complex code? The Initial Solution: A quick solution might be to create two separate forms Continue reading “Handling Multiple Forms with Different Field Names Using a Single Endpoint”

You can rely on existing solutions

I used to believe that building everything from scratch was the mark of a good developer. However, I understand later that this mindset reflects a lack of experience and problem-solving skills. In the real world, developers often rely on prebuilt solutions rather than creating everything themselves. While we might not always understand the inner workings Continue reading “You can rely on existing solutions”

A Quick Guide to Creating Laravel Factories and Seeders

I often find myself back to the Laravel documentation whenever I need to create new factories and seeders for my projects, whether they’re learning exercises, hobby projects, or real-world applications (bored doing the same actions every time). To make this process easy, I’ve decided to create a guide that I can refer to whenever needed, Continue reading “A Quick Guide to Creating Laravel Factories and Seeders”

Promises in life is likes promises in JavaScript

In JavaScript, a promise is like a promise someone made to bring you something. It works based on four main steps: creating a promise, waiting for the promise to happen, the promise being fulfilled (meaning they come with the thing you were waiting for), or the promise being broken (meaning they couldn’t come with that Continue reading “Promises in life is likes promises in JavaScript”

Code Reading is important!

One of the most important things I’ve focused on recently is reading a lot of code written by others. Even if I don’t understand some large parts of the code blocks I’m reading, it’s a way to train my brain muscles, boosting both my imagination and logic. By reading others’ code, you gain new perspectives Continue reading “Code Reading is important!”

One Day Without Using YouTube

The best way to test if you are addicted to something is to try living one day without it. This way, you can observe your behavior. That’s exactly what I tried today. I used to be a heavy YouTube user, primarily for learning technical and Islamic topics. I believed I was using it positively, which Continue reading “One Day Without Using YouTube”

It’s not about being “WOW”, it’s about be a part of the team.

When you are part of a team, it’s not about being a “wow” person; it’s about truly being part of the team. This idea always motivates me to keep learning, so I can be an asset to the team. When you’re part of a team, strive to do just this: It’s about working as a Continue reading “It’s not about being “WOW”, it’s about be a part of the team.”