News for hackers. Stuff that matters.
Re:Software component names should be whimsical and cryptic by makeitdouble on Tuesday September 13, 2022 @06:17AM (#32822443)
I think the point still somewhat stands.

Imagine a “UserProfile” service. It’s accessed from everywhere to show the handle name, address, icon etc. of your user.

Your application grows and your users want way more customization, now they get personas and avatars and can show different profile to different people. Those are full of breaking changes that you want to isolate from the legacy “UserProfile”, how do you name your new service ?

Re:Software component names should be whimsical and cryptic by qaq on Tuesday September 13, 2022 @06:25AM (#32822488)
Re:Software component names should be whimsical and cryptic by 0x457 on Tuesday September 13, 2022 @02:39PM (#32828497)
Tell me you don't version your APIs without telling me you don't version your APIs.
Re:Software component names should be whimsical and cryptic by makeitdouble on Tuesday September 13, 2022 @06:38PM (#32831071)
You version your APIs, but do you version your services ?

Think of your new service as having a different deployment target, its own DB, and could be under a different repo altogether.

Re:Software component names should be whimsical and cryptic by 0x457 on Tuesday September 13, 2022 @07:41PM (#32831526)
So? Have you heard of API Gateway and/or HTTP routing based on path prefix or header?
Re:Software component names should be whimsical and cryptic by makeitdouble on Tuesday September 13, 2022 @09:12PM (#32832136)
You're right about the external interface, but you still need to give a name to the actual service behind the URL.

From your point on versioning, I'd assume you'd actually call it UserProfileV2 ?

PS: to get back to the original point, you're still stuck with a "UserProfileV2" service that does a lot more than just user profiles, but that's not reflected in the name.

Re:Software component names should be whimsical and cryptic by 0x457 on Wednesday September 14, 2022 @02:46PM (#32841493)
It depends on the language, but I would probably call it `UserProfile` and change a major version even if it's in an entirely different language. Maybe even kept in the same repo.

> PS: to get back to the original point, you're still stuck with a "UserProfileV2" service that does a lot more than just user profiles, but that's not reflected in the name.

From what it said in the original comment, it still seems like a user profile to me.

Re:Software component names should be whimsical and cryptic by qaq on Wednesday September 14, 2022 @01:37AM (#32833659)
You def don't want a new DB and for it to be under new repo
Re:Software component names should be whimsical and cryptic by samatman on Tuesday September 13, 2022 @07:01AM (#32822720)
I mean, I'd call it the FaceBook in the first place but I'm already on team whimsical.

Some of you are thinking, well, what if you need to interface with facebook dot com? Easy, I'd call it the SneedFeed. If you know you know.

Re:Software component names should be whimsical and cryptic by Jarwain on Tuesday September 13, 2022 @06:27AM (#32822502)
UserPersona, where a single UserProfile may have multiple UserPersonas?
Re:Software component names should be whimsical and cryptic by amirulmenjeni on Tuesday September 13, 2022 @06:22AM (#32822466)
> Those are full of breaking changes that you want to isolate from the legacy “UserProfile”, how do you name your new service ?

Sound like it's better to make a new service. Isn't that the point of Single Responsibility concept?

Re:Software component names should be whimsical and cryptic by makeitdouble on Tuesday September 13, 2022 @06:40PM (#32831092)
You got me confused.
Re:Software component names should be whimsical and cryptic by Bootvis on Tuesday September 13, 2022 @06:20AM (#32822457)
UserProfile2
Re:Software component names should be whimsical and cryptic by saalweachter on Tuesday September 13, 2022 @08:09AM (#32823257)
Us3rPr0f1le
Re:Software component names should be whimsical and cryptic by praptak on Tuesday September 13, 2022 @06:22AM (#32822472)
NewUserProfile, obviously :-)
Re:Software component names should be whimsical and cryptic by em-bee on Tuesday September 13, 2022 @07:47AM (#32823060)
YeOldeUserProfile