Skip to main content

Home/ OCG developers/ Group items tagged Programming design

Rss Feed Group items tagged

Steven van Dijk

Validate User Input, Not Developer Input - 0 views

  •  
    I have a very simple rule, I like to follow that helps to simplify my code. "Don't validate developer input" This rule simply means that we should not try and validate input that came from a source that is not a user or external system.
Steven van Dijk

Types of Duplication in Code - 0 views

  •  
    I've found that there are three basic types of duplication that we can eliminate from our code that successfully build on each other.
Steven van Dijk

Keep Public Interfaces away from Children | Passion for Coding - 0 views

  •  
    It is natural to think of the public methods and properties of a class as the public interface of the class. When implementing a class that is meant to be derived there is also another interface - the one meant for child classes. A clear separation of the two interfaces makes the code cleaner. The one construct to avoid is public virtual methods.
Steven van Dijk

Favor Composition Over Inheritance - 0 views

  •  
    "Making code reusable through public class inheritance (PCI) is so convenient and easy that to say it should be avoided may sound a bit heretical. After all, isn't this what OOP is about? And yet that's the position I hold."
‹ Previous 21 - 30 of 30
Showing 20 items per page