The Hidden Key to App Stability: Why Data Validation in Model Classes Matters

The article emphasizes the critical importance of data validation within software development. It highlights that validation is often neglected, leading to significant issues related to application stability and data integrity. Multiple layers of validation are discussed, with a strong recommendation for prioritizing the Business Logic Layer to ensure consistent and secure data handling across applications.

Type Design: Equals and HashCode

Good type design dictates that the Equals should always be overridden. This is actually a FXCop violation but 99.99% of types that I see, never has it (or GetHashCode).  Overriding Equals is pretty easy. Public Overloads Function Equals(ByVal obj As [Object] ) As Boolean Try Dim ci = DirectCast (obj, ComputerInfo ) Return (ci.OSFullName = … Continue reading Type Design: Equals and HashCode →