News for hackers. Stuff that matters.
Re:Ask HN: What are some of the most elegant codebases in yo... by pragmatick on Sunday June 18, 2023 @06:32AM (#36378946)
I only looked over your code for a minute but found some stuff I would comment on in a code review.

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?

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?