I've read a book from Robert C. Martin book title Clean Architecture: A Craftsman's Guide to Software Structure and Design and got amazed by one statement in the book: Don't marry the framework.Robert C. Martin Based on Uncle Bob's opinion, coupled a third party library directly into our code is not a wise decision to … Continue reading Architecture: Don’t Marry The Framework
Tag: Clean Code
Extension for Cleaner Code
The extension method in C#, VB, or F# is a static method that accepts this modifier of TInput. The method can be either void or return value. From MSDN definition, Extension methods enable you to "add" methods to existing types without creating a new derived type, recompiling, or otherwise modifying the original type. Extension methods are a special kind of … Continue reading Extension for Cleaner Code
About Cyclomatic Complexity
I read one of the blog posts in dev.to about this Cyclomatic Complexity and I couldn't resist also not talk about this one. Because I see a lot of programmers doing this mistake without they knowing it. So just today I check my email and see there is an automatic email contain changeset from one of my … Continue reading About Cyclomatic Complexity
Merging Javascript for Dynamics CRM Development
SOC (Separation of Concerns) is one of the best Design Patterns that I love so much. Using this design pattern, I found it easier for me to identify bugs in my code. When developing Javascript code on Dynamic CRM, I will separate my concerns into three parts: Events: Bridge from Dynamic CRM event to our Javascript … Continue reading Merging Javascript for Dynamics CRM Development
Simple Code Advice
When you do code, please avoid declaring the not read-only variable as private property for a class. For example: If your user reports a bug, then when you want to search for the root cause of the problem, it will be challenging because it is tedious to check. Suggestion For maintainability purposes, always remember KISS (Keep It Simple Stupid) … Continue reading Simple Code Advice