Agile & Lean Management

Refactoring the Software Development Process

Browsing Posts tagged Facade Design Pattern

Sometimes, you want to do some simple validation. For example, data should not exceed the reserved storage size for the field in the database. In this example CustomerName must be less than 10 characters. So, the client code should look like this: Customer customer = new Customer(); // customer name must be less than 10 [...]

Validation of user input is very important. A lot of our users are very environmentally aware and throw all kinds of garbage in (= garbage out). So you probably better use extensive validation for all your dataclasses (or Business Entities, if you like).  A consequence is that you have to invoke validation almost everywhere in [...]