Igor
igor-nast.bsky.social
Igor
@igor-nast.bsky.social
Backend Developer •fortrabbit 🇪🇺
🌆 Berlin

⚙️ https://www.fortrabbit.com - PHP hosting for busy people

🆕 https://new.fortrabbit.com/ - to be released soon

🛠 https://github.com/igornast
💡 Last time I posted about #ModularDesign, some of you asked: what’s a facade?

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.
July 16, 2025 at 6:10 AM
Want to keep your code clean and modular? 💡

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. 🧩
June 19, 2025 at 7:22 PM
💡 How to fix coupling with Dependency Inversion

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
February 24, 2025 at 7:50 PM
💡 What makes a system coupled?

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
February 14, 2025 at 7:11 AM
Code Smell: If-Else Chains vs. Repository Factory

🚫 No more chained if-else statements
🛠 Open-Closed principle: easy to extend without modifying the logic
✅ Promotes Single Responsibility Principle

#CleanCode #DesignPatterns #php
February 10, 2025 at 2:54 PM
Bad code smells like

🔨 Rigidity – Change one thing - suddenly, you must change everything else.

💥 Fragility – Fix one thing, and other unrelated parts start breaking.

#SoftwareEngineering #CodeQuality #CleanCode
February 6, 2025 at 7:43 AM