Recent Representative Line

A single line of code from a large application that somehow manages to provide an almost endless insight into the pain that its maintainers face each day.

Apr 2013

It's not the size that matters

by in Representative Line on

Arrays are one of the most basic data structures. They’re a primitive in nearly every language. In languages like C, they’re low level structures, which represent direct access to memory.

Wally’s co-worker, Brandon, wrote an array declaration:


Mini-GUID

by in Representative Line on

Let's say, hypothetically, that you need a bit of code to create a unique key in a database table that starts with an "N" and it MUST fit within the limits defined by a varchar(20) column.

You might think that transforming a database sequence ID might be a good way to go, but no, your project manager demands something more...robust. More unique. What to do? Well, Jay sent in the obvious answer: Use a GUID!