FYI I'm referring to 'trying to break into a system, possibility illegally, with time pressure, hackers', rather than HackerNews hackers. Which I thought was reasonably obvious from the context.
If you're actually trying to crack a system, you're generally trying a lot of different things very rapidly. Tweaking performance and nicely formatting code you're going to immediately discard is... a misappropriation of resources.
On the movie, also, the girl was not trying to crack into a computer - she seemingly had full MySQL console access.
(Actually, the way usually explain it to non-techies: duct tape. Everyone understands what duct tape is meant for: it won't necessarily win any awards for style[1], but it's powerful, and it sure as heck gets the job done in a pinch, and quickly too! I find that analogy generally holds well enough, whether we're talking about black-hat hacking or 'real' hacking.)
[1] Most of the time, that is: http://www.google.com/search?hl=en&q=duct%20tape%20cloth...
Speak for yourself ;-)