visit
TL;DR: Naming is hard, don't make it harder with unnecessary accidental complexity.
public class AbstractDataHandlerManager {
private String dtStr;
public void execProcessingOps(String input) {
if (dtStr != null && !dtStr.isEmpty()) {
// process
}
}
}
public class SETIProcessor {
public void processSignal(String input) {
// process
}
}
}
You can detect this smell when names start to get long, or when you see "Abstract", "Manager," "Handler," "Helper", or "Data" too often.
Another sign is when you must explain what a name means to other developers for example in a code review.
//gzht888.com/how-to-find-the-stinky-parts-of-your-code-part-v-evj3zs9
//gzht888.com/how-to-find-the-stinky-parts-of-your-code-part-viii-8mn3352
//gzht888.com/how-to-find-the-stinky-parts-of-your-code-part-xxxx
//gzht888.com/how-to-find-the-stinky-parts-of-your-code-part-xxiii
Disclaimer: Code Smells are my opinion.
The greatest enemy of clear language is insincerity.
George Orwell
This article is part of the CodeSmell Series on HackerNoon: How to Find the Stinky Parts of your Code