News for hackers. Stuff that matters.
Re:When less is more by edw519 on Friday August 14, 2009 @10:22AM (#763033)
I wish I had read this 2 weeks ago. Last night, I got my program working perfectly, but too slow! I quickly did some bench marking and immediately asked myself, "Why did I do it that way?" The answer: to get it to handle everything I wanted. I had feature creeped myself without even realizing it.

Back to the drawing board this weekend. Same core functionality, but much smaller footprint, and hopefully, much faster.

Re:When less is more by icefox on Friday August 14, 2009 @12:53PM (#763360)
What about profiling? I hear that will often tell you what part of your program is slow.
Re:When less is more by edw519 on Friday August 14, 2009 @01:02PM (#763382)
I know what part is slow. I still can't believe I did it that way. It wasn't until last night when I put all the pieces together that I actually saw how badly it sucked. I was trying to be "slick" when I should have just done the job. Lesson learned (again).