Skip to main content

Software Architecture · Intermediate

SOLID Principles — An Arabic Field Guide

Write code that can change, not only code that runs

Download PDF

PDF · 88 KB · 6 pages

The PDF is in Arabic. This page describes it in your language; the file itself is unchanged.

  • solid
  • architecture
  • oop
  • clean code
  • design principles
  • laravel
  • maintainability
  • testing

01About this document

About this document

It opens with the symptom rather than the definition: a small change forces edits across many files, and you start to worry about breaking something unrelated. The problem is often not the language or the framework but how responsibilities are divided and how the parts are wired together.

The five principles are grouped the way they are actually used — split responsibilities first, then think about extension; substitution means the same expected behaviour, not just the same name; depend on a stable contract rather than on a specific company or class. The Laravel example makes the last one concrete, and the final pages are four questions that tell you whether your code needs this now.

Preview

The first page of the document, as it is.Open the PDF in a new tab

02What you will learn

What you will learn

  • Read each of the five principles as a problem it solves, not a definition
  • Separate business logic from external details, with a Laravel payment example
  • Recognise the four symptoms that mean a codebase needs SOLID now
  • Understand why SOLID is design guidance, not a framework or a replacement for OOP

03What is inside

What is inside

  1. 01Single responsibility, and a clear reason to change
  2. 02Adding behaviour without breaking what exists
  3. 03Substitution: the same name is not enough, the behaviour has to match
  4. 04Not forcing a class to carry what is not its concern
  5. 05Depending on a contract, not on a specific implementation
  6. 06Laravel: separating payment logic from the provider
  7. 07When does SOLID actually help you?

04Who this is for

Who this is for

  • Developers past the basics who are starting to feel code get hard to change
  • Laravel and OOP developers working on systems that keep growing

05Related resources

  • Software Architecture

    From Idea to Architecture, Then Claude Code

    A nineteen-page workflow for taking a business idea to a documented architecture and then to phased implementation: a discovery interview, a PRD, architecture options with justified trade-offs, an exportable architecture document, phase breakdown, and only then a Claude Code intake that is explicitly told not to write code yet.

  • Full-Stack Roadmaps

    How to Start Full Stack

    A 25-page roadmap that puts the whole journey in order: programming fundamentals in C++, front-end core, React, API integration, Git and deployment, then Laravel and Node.js on the back end, ten full-stack projects, and a 24-week schedule to work through it.

  • Frontend Development

    Front-End Developer Roadmap 2026

    A nineteen-page front-end roadmap built as ten stations — HTML, CSS and responsive design, Git, JavaScript, browser and REST APIs, TypeScript and tooling, React, React in real applications, Next.js, then testing, accessibility, performance, deployment and SEO — with free courses named at each one.