Code Review: Text-based Monopoly in Java
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...
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...
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:...
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...
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...
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 ...
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)...
The Single Reponsibility Principle (SRP) is commonly misunderstood1. Often you might hear explanations like “a class should do only one thing”, sometimes eve...
I discovered some nice features in JUnit 5 that I haven’t really seen before in the wild, so I thought I’d share them with you.
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...