shlogg · Early preview
Samuel Ko @samuelko123

An ordinary full-stack developer who slaves for wage. :)

DAO Configuration: Configurable Vs Hard-Coded Values

DAOs can be configured with environment variables or hardcoded values. Configurable values introduce maintenance & consistency issues. Only create them when necessary.

5 Reasons To Review Your Own PR Before Submitting

Reviewing your own PR? Don't miss these 4 key steps: Eliminate stupid mistakes, Enhance readability, Improve code quality & Ensure commit history makes sense. Your reviewer (and yourself) will thank you!

Code Coverage: A Misleading Metric In C#

Code coverage measures execution, not logic. Example: `IsHuman` method has 100% coverage but still fails with order change. Writing good unit tests is more important than code coverage.

Consumer-Driven Development: Simplifying Code With API Feedback

Consumer-Driven Development prioritizes meeting consumer needs first in web app development, focusing on presentation layer (API controllers) requirements. It simplified code but may lack data validation & scalability.