🌆 Berlin
⚙️ https://www.fortrabbit.com - PHP hosting for busy people
🆕 https://new.fortrabbit.com/ - to be released soon
🛠 https://github.com/igornast
The facade is a #php class following the facade structural pattern:
refactoring.guru/design-patte...
It’s the one and only way your module exposes functionality - ideally via an interface defined in a shared space.
The facade is a #php class following the facade structural pattern:
refactoring.guru/design-patte...
It’s the one and only way your module exposes functionality - ideally via an interface defined in a shared space.
You can keep throwing everything into a big “Service” folder, but if you want to level up your #softwareArchitecture, try splitting things into smaller, focused modules. 🧩
You can keep throwing everything into a big “Service” folder, but if you want to level up your #softwareArchitecture, try splitting things into smaller, focused modules. 🧩
In my last post, I mentioned how source #code dependencies can pollute high level policy 🍝
Solution? Introduce an interface that flips the dependency
🔥 Reverse source dope dependency
🔥 Decouples module
🔥 Mock dependencies
🔥 Improve maintainability
In my last post, I mentioned how source #code dependencies can pollute high level policy 🍝
Solution? Introduce an interface that flips the dependency
🔥 Reverse source dope dependency
🔥 Decouples module
🔥 Mock dependencies
🔥 Improve maintainability
In coupled systems, modules know about each other. That means the compiler knows that a high-level module depends on a mid-level module.
How is that?
The high-level module explicitly imports or references them. That creates source code dependency 🔗
#CleanCode
In coupled systems, modules know about each other. That means the compiler knows that a high-level module depends on a mid-level module.
How is that?
The high-level module explicitly imports or references them. That creates source code dependency 🔗
#CleanCode
🚫 No more chained if-else statements
🛠 Open-Closed principle: easy to extend without modifying the logic
✅ Promotes Single Responsibility Principle
#CleanCode #DesignPatterns #php
🚫 No more chained if-else statements
🛠 Open-Closed principle: easy to extend without modifying the logic
✅ Promotes Single Responsibility Principle
#CleanCode #DesignPatterns #php
🔨 Rigidity – Change one thing - suddenly, you must change everything else.
💥 Fragility – Fix one thing, and other unrelated parts start breaking.
#SoftwareEngineering #CodeQuality #CleanCode
🔨 Rigidity – Change one thing - suddenly, you must change everything else.
💥 Fragility – Fix one thing, and other unrelated parts start breaking.
#SoftwareEngineering #CodeQuality #CleanCode