News for hackers. Stuff that matters.
Re:What is a magic number, and why is it bad? by bitwize on Wednesday August 28, 2013 @11:42AM (#6290679)
I once worked with a guy who thought like this. His work was a morass of hundreds-of-lines-long VB methods. And when it stopped working, it stopped working hard, and I had to pick up the pieces.

Good programming practices are not a distraction from getting it working. They're essential to keeping it working, even in the face of changing requirements and unanticipated circumstances.

Re:What is a magic number, and why is it bad? by a3voices on Wednesday August 28, 2013 @11:44AM (#6290693)
I agree, but they should be guidelines, not rules. Messy code is one extreme, and having perfect-looking code is the other. Clearly there's a balance somewhere.
Re:What is a magic number, and why is it bad? by recursive on Wednesday August 28, 2013 @12:05PM (#6290850)
Having perfect looking code has very little drawback.
Re:What is a magic number, and why is it bad? by xyzzy123 on Wednesday August 28, 2013 @12:20PM (#6290971)
It takes time to polish, and over-DRY is a kind of disease.