Ürgo Ringo

16 posts

When to Throw an Exception

Simplest rule to figure out whether we need an exception is to think if having a stracktrace will give any value. For example, do we care about stacktrace when some business rule is violated? One widely known principle is that exceptions should be used for programming errors. But what is

Read more

Rebuilding software is inevitable

No matter how good the initial design is it will start degrading once it's out there. Software design seems to follow the 2nd law of thermodynamics - in a software system the amount of entropy tends to increase over time. The moment something is released new requirements will start bombarding

Read more

Implementing Validation

TL;DR use Command objects to modify objects of Domain Model check basic validation rules on these Commands use validation framework for checking rules on Commands implement constraints that are "interesting" from business perspective inside Domain Model as part of the behavior without any validation framework Constraint scopes Based on

Read more

Model in AngularJS

AngularJS is one of these frameworks that is deceptively simple at first sight but once you start developing more complex apps you discover that there are quite many questions that don't have a single obvious answer. I guess this can be said about any good framework as good framework leaves

Read more