r/ProgrammerHumor • • Mar 03 '25 • Helpful 1

Meme ifYouDidntKnow

Post image
56.7k Upvotes

432 comments sorted by

View all comments

Show parent comments

650

u/trainrex Mar 03 '25

In case serious. It's MAJOR.MINOR.BUG

Bug versions are for bug fixes Minor versions are for non-api breaking changes (new functions, logic changes that allow for functions to be called the same way, etc...) Major versions are for API breaking changes (complete reworks of function namings)

186

u/Altruistic-Spend-896 Mar 03 '25

I am joking, but thank you kind stranger on the interwebs!

196

u/trainrex Mar 03 '25

Never know who might be part of today's 10,000!

113

u/Coal_Morgan Mar 03 '25

That would be me.

I had a general understanding of what was happening but never really made the MAJOR.MINOR.BUG association. Probably something I could have figured out but just never had my noodle aimed at 'naming' it.

Stellaris is at 3.14.14 right now and is making the big jump to 4.0.0 in Q2 this year. So my mind made the "EW A WHOLE LOTTA STUFF THIS TIME!" rather then the "3.15 Hope I get this quality of life improvement" or "3.14.15...Prolly some fixes for something I haven't run into yet."

60

u/FlakyTest8191 Mar 03 '25

The important one is the major, because you have to be prepared for your code breaking when you update. At least with an api or framework you use,  a game only if you're into modding i guess.

5

u/WashedSylvi Mar 03 '25

Some of the online games do use API stuff too

5

u/DragonDev1906 Mar 03 '25

With modding games it is sometimes WefeelLikeWeWantALargerNumber.NewStuff.BreakingChangeToSimpleThingsInModdingApiWithoutAnyReleaseNotes

If only they could use a second server scheme for the things where breaking changes are Relevant. Or at the very least patch notes that mention them.

20

u/Cheet4h Mar 03 '25

SemVer doesn't really apply to applications like games, since they don't typically have an API (other than a potential modding API) that breaks compatability. You could instead go for savegame compatability, but in some games (Stellaris included) they often break even among minor version updates.
Besides, SemVer isn't really the ultimative standard when it comes to game versioning. See the plentiful MMOs that release version 1.1 -> 1.15 -> 1.2 instead of 1.1 -> 1.1.5 -> 1.2

Personally I'm a fan of either a more verbose versioning (e.g. "Update X [Hotfix Y]") or build number.

4

u/PrincessRTFM Mar 03 '25

You might want to look at https://semver.org/ then, it made things pretty clear for me

3

u/dretland Mar 03 '25

Pi patch

→ More replies (2)
→ More replies (5)

58

u/ParkingAnxious2811 Mar 03 '25

In America they do it as MINOR.MAJOR.BUG

→ More replies (5)

25

u/georgeofjungle3 Mar 03 '25

I worked a project where we had to add a fourth number, because people where getting into a panic about how often we were changing the major version. So version 1.2.3.4 was: 1.x.x.x was if all you did was install and configure, we've possibly done something that broke your config, take a look. X.2.x.x was if you did any programmatic extension, look to make sure we didn't change the apis you were using. X.x.3.x, hooray new features. X.x.x.4, we screwed something up, this fixes it. 

16

u/Tetha Mar 03 '25

Some of our internal libraries follow semver pretty strictly. People certainly take a double-take if that library has a version of 11.2.9 or something with a high major version like that.

Though a lot of these major changes are cleanup at this point - removal of redundant functions, renames of old mistakes everyone disliked and such (or, rather, removal of the compatibility layer during the rename) and such. Oftentimes, the deprecation notice/upgrade guide is "inline this one layer".

4

u/nicuramar Mar 03 '25

11 isn’t really a high major version number, if you look at some libraries out there. 

2

u/ToaruBaka Mar 03 '25

Pride&Semver

10

u/Vox___Rationis Mar 03 '25

If you are a corporate entity 'MAJOR' may also mean 'IT IS A NEW FISCAL AND WE NEED A NEW VERSION OF OUR PRODUCT TO SELL SO PRESENT ALL THE MINOR UPDATES AND PATCHES SO FAR AS THE NEW MAJOR VERSION'

5

u/al-mongus-bin-susar Mar 03 '25

yeah but this is only for libraries for applications it's the post

1

u/10g_or_bust Mar 03 '25

I was taught MAJOR.MINOR.PATCH/SUBMINOR

Since bugs can and do require breaking changes, it wouldn't make sense to have them as "less important" than minor. If you want to be pedantic and call any change with a ticket a "bug" then it doesn't really make that much of a difference; but I view a bug fix as a defect fix, but I've 100% done patches due to things other than defects. We've also had single line change bug fixes need to trigger a full minor bump which is frustrating, but just life.

Patch versions are great for things like "oh no we forget to update the "last built on string" (that should be handled by CI/CD but manglement fired all the devops folks)

1

u/Exaris1989 Mar 03 '25

It unironically feels like a lot of people use mix of both, proud.major.minor.bug

1

u/RoboticBonsai Mar 03 '25

So if you make something with it, only the first or the last can break it?

1

u/Seraphaestus Mar 03 '25

Serious question: if your application has no API / doesn't expose code to users (e.g. a video game) how should semantic versioning work wrt the major version number? Maybe multiplayer incompatibility? But then if it's just singleplayer?

1

u/trainrex Mar 03 '25

Yeah, a public API is a requirement for SemVer

1

u/GlitteringStatus1 Mar 03 '25

Note that the rules for semantic versioning only makes sense for libraries, not for user-facing programs. All the rules are about "API changes", which only applies to libraries.

It makes no sense to claim to use "semantic versioning" on something that isn't a library.

1

u/bschlueter Mar 03 '25

I don't see a difference.