News for hackers. Stuff that matters.
Re:Show HN: Rust Web Framework by sodapopcan on Tuesday October 22, 2024 @02:15PM (#41917068)
I don’t really follow. My focus wasn’t on the naming but the location of responsibilities.
Re:Show HN: Rust Web Framework by CSSer on Tuesday October 22, 2024 @10:21PM (#41921121)
I understood. Perhaps my mental connection was somewhat flimsy though. I was trying to make a tongue-in-cheek joke about how whenever I work on a database that has tables with overloaded responsibilities (poor normalization) instead of proper foreign keys they often also coincidentally have poor, plural names. Whenever I encounter such a thing, I think about the story of how it became that way. Usually part of the story includes a developer looking for a place to stick some logic and deciding an arbitrary place seems good enough because it’s a bit vague.
Re:Show HN: Rust Web Framework by sodapopcan on Wednesday October 23, 2024 @09:25AM (#41924858)
How are plural names linked to those things, though? I have a low-care level for naming conventions so long as there are conventions. Many successful frameworks use plural tables names. Though I agree singular probably makes a little more sense, especially since it eliminates the need for inflection code.
Re:Show HN: Rust Web Framework by CSSer on Wednesday October 23, 2024 @12:30PM (#41926659)
Your UserRegistrationService(s) is/are also prone to be overloaded. You don’t think of that as part of a naming convention? Would you argue that’s more about architecture? I was simultaneously agreeing with you and adding that this other minor organizational annoyance I have adds to the pile. Apologies if that seems low value.