4 ms·
True but the appeal for most developers is it's simple to implement. Virtually every language has a UUID library that works in one line or code. Like in Go, it
by sweca 2y ago
True but the appeal for most developers is it's simple to implement. Virtually every language has a UUID library that works in one line or code.
Like in Go, it's just uuid.New().String() vs using crypto/rand to read random data, convert it into Base64 of hex... which will take more lines and effort.
- lopkeny12ko 2y agoThis is an unfair argument. Which standard library in Go gives you uuid.New().String()? Anyone can publish a third party library that condenses reading random data, creating an identifier from it, and rendering it as a string into a single line of code API.