Archive

psychology

The Magical Number Seven Plus or Minus Two

The seminal 1956 George Miller paper The Magical Number Seven, Plus or Minus Two: Some Limits on Our Capacity for Processing Information is a true classic. In it, Miller observed that the results of a number of 1950s era experiments in short-term memory had something in common: most people could

By Jeff Atwood ·
Comments

hardware

Sometimes It’s a Hardware Problem

One of our best servers at work was inherited from a previous engagement for x64 testing: it’s a dual Opteron 250 with 8 gigabytes of RAM. Even after a year of service, those are still decent specs. And it has a nice upgrade path, too: the Tyan Thunder K8W

By Jeff Atwood ·
Comments

c#

The Last Configuration Section Handler.. Revisited

If you need to store a little bit of state-- in your configuration file, or on disk-- nothing is faster than some quick and dirty serialization. Or as I like to call it, stringization. In late 2004, I wrote about The Last Configuration Section Handler, which does exactly this for

By Jeff Atwood ·
Comments

human-computer interaction

Fitts’ Law and Infinite Width

Fitts’ Law is arguably the most important formula in the field of human-computer interaction. It’s... Time = a + b log2 ( D / S + 1 ) ... where D is the distance from the starting point of the cursor, and S is the width of the target. This is all considered on a 2D

By Jeff Atwood ·
Comments

multicore processors

Quad Core Desktops and Diminishing Returns

Dual core CPUs were a desktop novelty in the first half of 2005. Now, with the introduction of the Mac Pro (see one unboxed), dual core is officially pass. Quad core – at least in the form of two dual-core CPUs – is where it’s at for desktop systems. And sometime

By Jeff Atwood ·
Comments

properties

Properties vs. Public Variables

I occasionally see code with properties like this: private int name; public int Name {     get { return name; }     set { name = value; } } As I see it, there are three things to consider here. 1. When is a property not a property? When it's a glorified public variable. Why waste everyone&

By Jeff Atwood ·
Comments

font rendering

My Love/Hate relationship with ClearType

I’ve been vacillating a bit on ClearType recently. I love ClearType in theory. A threefold improvement in horizontal resolution on LCDs is an incredible step forward for computer displays. Internet Explorer 7 forces the issue a bit by always defaulting to ClearType for web content, even if you haven’

By Jeff Atwood ·
Comments

regular expressions

Shortening Long File Paths

We're working on a little shell utility that displays paths in a menu. Some of these paths can get rather long, so I cooked up this little regular expression to shorten them. It's a replacement, so you call it like this: static string PathShortener(string path)

By Jeff Atwood ·
Comments

open source

Open Source: Free as in “Free”

Here’s Scott Hanselman on the death of nDoc: We are blessed. This Open Source stuff is free. But it’s free like a puppy. It takes years of care and feeding. You don’t get to criticize a free puppy that you bring in to your home. Free like

By Jeff Atwood ·
Comments

programming languages

Linus Torvalds, Visual Basic Fan

Stiff recently asked a few programmers a series of open-ended questions: * How did you learn programming? Were schools of any use? * What’s the most important skill every programmer should have? * Are math and physics important skills for a programmer? * What will be the next big thing in computer programming?

By Jeff Atwood ·
Comments