code quality

Code Review: Text-based Monopoly in Java

25 minute read

Originally posted on Code Review Stack Exchange on 07.09.2021. Question asked by user “DexMax” and licensed under CC BY-SA 4.0. Answer provided by me and lic...

StringBuilder Cargo Cult

2 minute read

This post is based on an answer I posted on Stack Overflow. The code example was submitted as part of the question by Bruno Rozendo under CC BY-SA 3.0. Note:...

Clean Code is Not a Style Guide

1 minute read

The term is sometimes used to refer to a specific and opinionated way of writing code, the one described in the popular book “Clean Code” by Robert C. Martin...

The Purpose of Getters and Setters

2 minute read

First of all, I don’t advocate for getters and setters at all. Don’t use them (especially setters) if you find an alternative. There usually is a better desi...

Taste Your Own Soup

2 minute read

Imagine this scenario: A restaurant cook learned from their grandmother the secret of her tasty soup. “Always put a tablespoon of salt in your soup”. And so ...

Code Review: Common Beginner Mistakes

4 minute read

After a long time, I once again did a few code reviews on Code Review Stack Exchange. One of them (a beginner’s implementation of a rock-paper-scissors game)...

On Line Length Limits

7 minute read

At the beginning of a new project, when the team (or the team lead) chooses a coding style, a common approach is to use a popular style guide for the program...