Clean Code

Writing maintainable, easy-to-read code

Final Classes

A few days ago, a colleague asked me if it was wise to make every class a final class. Here is a more sophisticated answer than I could give at […]

Prefixes are a rather controversial topic. Taking everything into account, I think we should not use prefixed names. Here’s why.

There are different guidelines out there about where and how many return statements to use in a function, e.g. return only once at the end of the function or return […]

When you accept weakly typed data as input or have them as output, still convert them to strongly typed objects inside your application.

Is everything we use a string for really just a bunch of characters? Is everything we use an int for really just a number? Probably not. We can have stronger […]