Ahmed Fathallah
ServicesWritingAbout
Work with me
ServicesWritingAbout
Work with me

Ahmed Fathallah

Full-stack software engineer, available for freelance and contract work: web applications, back ends and APIs, AI integration and CI/CD.

ServicesWritingAboutContactSign in

© 2026 Ahmed Fathallah

    Writing

    Engineering notes

    In-depth articles on architecture, type safety and shipping software to production.

    8 articles

    Featured

    How This Blog Ships to Production with Docker, GHCR and Caddy

    The fully automated pipeline behind this site: a multi-stage Next.js Dockerfile with BuildKit secrets, immutable SHA-tagged images on GHCR, workflow_run deployments with instant rollbacks, and Caddy as a hardened reverse proxy.

    October 11, 2026·9 min read

    Docker
    Next.js
    DevOps
    CI/CD
    Read
    • October 11, 2026·6 min read

      Validating Next.js Environment Variables with Zod at Build Time and Runtime

      A build can pass and health checks stay green while production ships a placeholder value. How to validate env vars with Zod in a containerised Next.js app, why NEXT_PUBLIC_ values are frozen at build time, and where to fail fast.

      Docker
      Next.js
      TypeScript
      Zod
    • October 11, 2026·8 min read

      Laravel-Style Authorization Policies for tRPC Procedures

      Bringing Laravel's policy pattern to a Next.js + tRPC + Prisma app: permission-based policy classes, one authorize() call per procedure, compile-time checked action names, and Prisma scopes for lists.

      Next.js
      TypeScript
      tRPC
      Prisma
    • October 11, 2026·6 min read

      PHP Backed Enums as the Single Source of Truth in a Laravel API

      Using PHP 8.1 backed enums so each set of statuses is defined once: string columns, Eloquent casts, Rule::enum validation, state transitions, value/label API responses and generated TypeScript types.

      PHP
      TypeScript
      Laravel
    • December 6, 2024·4 min read

      Docker Made Simple

      When building a web application, managing different software components can be tricky. Docker helps simplify this process by packaging your application and its dependencies into a single container. Here's how Docker can make your development and deployment easier.

      Docker
    • November 4, 2024·2 min read

      Fitness Your Journey to a Healthier You

      Fitness, the state of being physically healthy and strong, is essential for overall well-being. It encompasses a wide range of activities, from cardiovascular exercise to strength training and flexibility exercises.

      PHP
      HTML
    • November 4, 2024·2 min read

      The Art of Crafting Digital Worlds

      Programming is more than just writing code; it's about problem-solving, creativity, and logical thinking. When you learn to program, you're not just learning a skill, you're learning a way of thinking.

      Well-Being
      Health
      Fitness
    • November 4, 2024·1 min read

      Welcome to My Blog3

      Hello, and, welcome to my blog. I hope you enjoy your time here and learn a thing or two

      PHP
      CSS
      HTML