Okay, let’s get to it. What do you think about this code, well, besides the fact that the JDK already provides the java.time.DayOfWeek enum? Let’s pretend it doesn’t. There’s actually…
Here’s another one on strings. The following method classifies the specified day of week into either a weekday or a weekend day (if that’s even a valid expression). Would that…
Let’s get right to it, shall we? Would any of the following ways of converting a list of names into a semi-colon-separated string pass your meticulous review? Yes, the trailing…
Quata 5: Conscious Coding
First off, I’d like to apologize for the long delay between the previous quata and this one. Life got in the way, in a good way, I would say. I…
In Quata 3, I presented one half of my definition of “correct” when it comes to unit tests. In this quata, I will present the other half. Consider the snippet…
Unit tests are, in short, safety nets for your code. There are only two possible reasons why a test breaks: It needs to be updated to reflect the new code…
When it comes to code quality, logging is unique in that the readability issue is not so much in the code as it is in the output, the log file.…
Here it is, guys. The first ever quata. I’ll start with proper naming of classes, methods, and variables. It’s one of the most important code quality skills you’ll want to…