skybert's Blog

skybert's Avatar Image
Coder of systems, lover of languages, follower of Christ. 台灣女婿
← All posts

“Util” and “Helper” are the most useless class names as they don’t describe anything about what they do. Everything is a helper or a utility. Even JAX-RS is a “utility for creating web services”

In my years as a Java developer, I’ve encountered a “StringUtil” class in every project. Instead, name it for what it does. A StringUtil can be a SpecialWordCounter, an XMLCleaner, a MarkdownToHTMLConverter or a HTMLOutputGuardian

As a bonus, it’s easier to fuzzy find in your editor

#java #apidesign

To like or reply, open original post on Emacs.ch