Re:Ask HN: What are some of the most elegant codebases in yo...
by Tokumei-no-hito on Sunday June 18, 2023 @10:55AM
(#36380841)
I’ve always heard about the “util” package code smell but usually in complex contexts that are hard to discuss.
How would you refactor this to avoid a util package or a UrlUtils class?
Comment for a method says "null safe" - why not use an annotation?
A package called "util" is a code smell for me.
UrlUtils only provides two methods for URL encoding so why not name it appropriately?