Here’s a shell function which unifies the act of creating a directory and then subsequently changing into it:

https://gist.github.com/5275129

Example usage:

https://gist.github.com/5275133