Skip to content

Mohcin Bounouara

Thoughts about software engineering and life

31 Jul 2025

Use site.local Instead of localhost/mysite on apache without using docker or DDEV

Let’s suppose you’re using Apache on your local machine and you want to visit your PHP project using something like http://site.local instead of http://localhost/mysite. You’re not using Docker, DDEV, or any container tools, just plain XAMPP or Apache on Linux. Here’s how to set it up: Map your custom domain locall Edit your /etc/hosts file: Continue reading “Use site.local Instead of localhost/mysite on apache without using docker or DDEV”

29 Jul 2025

Building a reply system for comments in Laravel -Without a Subcomments Table-

Many developers, when adding a “reply to comment” feature in a Laravel app, often consider creating a separate sub_comments table (I was one of them, based on my lack of experience, I know this later). It sounds intuitive, because a reply is different from a comment, right? logic thinking But there’s a cleaner, more strict Continue reading “Building a reply system for comments in Laravel -Without a Subcomments Table-“

19 May 2025
26 Mar 2025
25 Mar 2025

Document the problem you solves

Documenting the problems you solve will save you time and stress when you need to implement similar solutions in the future. You can document your solutions in many forms:

24 Mar 2025

Do accessibility

Bringing accessibility into your frontend development, using semantic HTML, ARIA labels, descriptive alt text, and better error handling.. not only makes you a better developer but also shows that you care for others. This also brings a sense of joy. I’ve been focusing on this for a while now, and I’m truly grateful for it. Continue reading “Do accessibility”

23 Mar 2025

Work on your gaps

Whenever you find yourself comparing your journey to others, remember this: “Don’t compare your planting season to someone else’s harvest season”. Focus on your gaps and work on improving them. It requires both physical and mental effort, but there’s no other way to grow. This reminder is just as much a reminder for me as Continue reading “Work on your gaps”

22 Mar 2025

Talking about what you’ve learned

In software, talking about what you’ve learned theoretically deepens your understanding of the topic. Applying what you’ve learned in real-world tasks builds your confidence, helps you explain concepts more clearly, and give you willpower to explore further concepts. The keys are to:

21 Mar 2025
26 Jan 2025