Categories
Software Craftsmanship

Builder pattern without getters

I like builders. If you’ve ever seen a constructor with ten parameters, eight of which can be null, you probably like builders, too. While this pattern is quite verbose, it is elegant. After doing some work with builders, I found myself wondering. Why are getters ever used in these? From Single Responsibility Principle point of […]

Categories
Software Craftsmanship

Switch-case data conversion in Java

Probably every programmer knows switch-case keywords. They are often used to convert data, e.g. some string from another (sub)system to your enum. While working with those, I found two patterns I call best practices. The first one uses return outright. Its code is short and elegant: However, some might argue it doesn’t follow the single-exit […]

Categories
Events

Bigger & Better RnD – GeeCON.cz 2014 – slides

It’s important to grow Y Soft RnD and to make it better. We deployed several big changes in last year. Here you can find slides from talk at GeeCON.cz 2014 Prague. Bigger & Better RnD – GeeCON.cz 2014 from Juraj Michálek Video recording of lightning talk will be available later this year.