Hazel icon indicating copy to clipboard operation
Hazel copied to clipboard

UUID naming

Open danielytics opened this issue 4 years ago • 3 comments

I highly recommend not calling them UUID's, but instead consider UID or UniqueID or similar. The "Universally" (or "Globally" for GUID) has a special meaning. UUID is a well-defined and common term in software and Hazel's "UUID"'s are not these, instead its co-opting the term for a similar but distinct concept. That seems like a cause of confusion.

I suggest simply "UID", since that's what they are: Unique ID's.

danielytics avatar Sep 24 '21 19:09 danielytics

Additionally a recent update to windows that makes some changes to the Windows SDK causes issues.

I had defined my UUID class as unqualified (not inside a namespace); turns out the new update adds a class to the Windows SDK named UUID that is also unqualified.

Needless to say: Things broke.

cugone avatar Nov 05 '21 17:11 cugone

Yep godot calls them RID(resource ID) or even better would be to make UUID an abstract class and use winapi or platform specific api to easily generate 128-bit uuids?

Pikachuxxxx avatar Nov 05 '21 18:11 Pikachuxxxx

These IDs in theory can also have a collision (although the probability is close to 0), so the name "unique" might be inappropriate as well...

neo-mashiro avatar Jan 25 '22 18:01 neo-mashiro