News for hackers. Stuff that matters.
Re:Simply Lift by PaulHoule on Thursday May 26, 2011 @11:51AM (#2588161)
It looks like less than half of the tutorial is written, it's mostly an outline.

I saw something about guids halfway through the article which scares the pants off of me. Guids are a major part of the evil of Windows programming; the proliferation of opaque identifiers makes it hard to understand what you're looking at. Worse than that, some programmers are tempted to make up their own guids rather than making them the way you're supposed to make them... I eventually quit working at a place where there was this old guy who'd start screaming and turn red because I told him that

var guid=new Guid("0000-...");

was't a guid because it wasn't globally unique.

Guids certainly have a place in distributed systems, but oversized keys can really destroy the performance of a database, quite literally by a factor of 5 or more. They're great for hardware vendors that want to sell you an oversized machine, great for expensive enterprise apps and clunky intranets where you can complain about a page taking 20 seconds to load but but nobody listens, but not acceptable for internet apps that have to compete for time and attention.

Re:Simply Lift by aaronblohowiak on Thursday May 26, 2011 @05:49PM (#2589564)
UUIDs have great characteristics as well: they don't leak information about the size of your data (or the rate it changes,) they are easily masked, you can have clients generate stable ids (which you hint at in distributed systems.) The db performance degradations you mention are highly implementation-dependent.
Re:Simply Lift by sross on Friday May 27, 2011 @04:29AM (#2590821)
It's also worth noting that GUIDs in this case have nothing to do with persistence but rather with associating urls with behaviour in much the same way as the fnids you'll see on various urls (like flag) on hacker news.