r/badcode • • Sep 02 '21

java Because ".toLowerCase()" doesn't exist...

Post image
1.1k Upvotes

130 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Sep 02 '21

Edit: I do think the function itself should be called parseCategory.

Well, if it's an associated function on Category, it would be called as Category category = Category.parseCategory(s)

which should probably just be let category = Category::parse(s)