Nathan was going through some of his company's fairly buggy JavaScript calendar code, and saw this perfectly described function.

function DoNothing()
{
}

Of course, such a function in and of itself isn't too huge of a deal. Perhaps something requires a callback function, but someone didn't want anything to happen on callback. Who knows? What was curious, however, was this following function a few lines down ...

function Nothing() 
{
}

Nathan couldn't help but scratch his head. But I think it makes sense. Obviously, when you do nothing, you don’t actually do nothing, you just do nothing. Even when there’s something that’s nothing, you just do nothing. Not nothing, though, just nothing. I hope that clears things up.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!