News for hackers. Stuff that matters.
Re:TIL: Versions of UUID and when to use them by sweca on Sunday August 25, 2024 @05:53PM (#41351785)
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.

Re:TIL: Versions of UUID and when to use them by lopkeny12ko on Sunday August 25, 2024 @06:04PM (#41351886)
This 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.
Re:TIL: Versions of UUID and when to use them by sweca on Sunday August 25, 2024 @07:31PM (#41352481)
No, it's not a standard library, but my point is UUID is standard and thus present in almost every language with a one line abstraction.
Re:TIL: Versions of UUID and when to use them by bigiain on Sunday August 25, 2024 @10:38PM (#41353527)
> Anyone can publish a third party library

I propose leftpad.js