First8 staat voor vakmanschap. Al onze collega’s zijn een groot aanhanger van Open Source en in het bijzonder het Java-platform. Wij zijn gespecialiseerd in het pragmatisch ontwikkelen van bedrijfskritische Java toepassingen waarbij integratie van systemen, hoge eisen aan beveiliging en veel transacties een belangrijke rol spelen. Op deze pagina vind je onze blogs.

Remove boolean parameters: test your code more easily with cleaner code

          The last time I blogged here about cleaner code (see link for details), I wrote about how you could make your code more testable by centralizing switch statements in a factory and putting the behavior in separate objects. Today I will show you another technique to clean up your code and make it easier to … Lees verder Remove boolean parameters: test your code more easily with cleaner code

SOLID Principle

Cleaning up switch cases with clean code for easy testing

I was reading an article about property-based testing the other day. This article started with the problem that it could be difficult to test all the cases of a function and that this was cumbersome and error prone. This triggered me to think about why such a function would be difficult to test. The switch statement During the years I … Lees verder Cleaning up switch cases with clean code for easy testing