Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: GUID or UUID?
2 points by illuminant 7 months ago | hide | past | favorite | 3 comments
In a data structure, dou you refer to the instance of a generated UUID value as "uuid" or "guid"?

For some reason my impulse is to call the instance value a guid, even though I just used a uuid function to generate it.




It depends on what platform you're working with. Microsoft based platforms tend to refer to the type as "GUID", whereas almost everyone else calls it a "UUID".

I wouldn't name a struct member "uuid" or "guid", however - that's a type, not a name.


Mostly I just refer to it as `id`. The only time I'll explicitly use `guid` or `uuid` as a field/property name is if it's semantically important - which is almost never.


I call it a UUID. "GUID" is a Microsoft-ism




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: