Why place all of your Javascript code in one file?

http, javascript

Solution

You can have two different "builds" of the JS code. One nice, modular version that you write, then use Google's JS compiler to build a fast, optimized, small version for live use.

Problem

Why place all of your Javascript code in one file? Is it possible and is it make sense to split into smaller logical file units?

Original source