Tag: design
All the articles with the tag "design".
-
Handling Enum Values as Strings in C# API Models
A practical pattern for working with enums in API request models - storing as strings while keeping type-safe enum logic throughout your codebase.
-
Standardize Data at Write Time, Not Read Time
Why I normalize data from multiple sources when saving to the database, not when displaying it. Using IoT temperature monitoring as a practical example.
-
Property Getters vs Get Methods: When to Use Which
A detailed guide on choosing between property getters and get methods in object-oriented programming, with practical examples and best practices for API design.
-
The Static-Instance Singleton Pattern in Flutter
Static methods for state changes, instance properties for reads. A singleton API pattern for Flutter.
-
Your system is an ETL pipeline
Understanding how most software systems inherently function as ETL pipelines and how to leverage this perspective for better system design.
-
Wrapping Google Sheets as a backend instead of migrating away from it
A practical approach to using Google Sheets as a lightweight backend solution, preserving existing business logic while avoiding unnecessary rebuilding of systems.
-
A loop that does five things is five problems
How to simplify complex data processing loops by refactoring them into clear, maintainable transformation pipelines using functional programming concepts.
-
Use enums over booleans for status fields
Why and how to use enumerated types instead of boolean flags for status fields, improving code maintainability and preventing future refactoring headaches.
-
How to Extend Select2 with Adapters
A guide to extending Select2's functionality using its adapter and decorator patterns, with practical examples for customizing appearance and behavior.
-
Refactoring a Feature Envy Code
A practical guide to identifying and fixing Feature Envy code smell in C#, with step-by-step examples of moving behavior to where the data lives.
-
ASP.NET MVC5 Feature Folders Structure
How to organize ASP.NET MVC5 projects using feature folders for better maintainability and separation of concerns, with practical examples and implementation details.
-
How to Refactor Business Rules Using the Specification Pattern
A practical guide to implementing the Specification pattern for cleaner and more maintainable business rule validation in your code.