devork

E pur si muove

I wrote crap

Wednesday, August 10, 2005

hstats is crap. And I only wrote it a month ago...

The good part of that observation is that it shows that I'm learning. ;-)

So why really? Basically just it's desing. It has one single monolithic class. And within this class everything just happens like one would wirte precedural or functial old style C. Quite useless really.

So for building the pstats wrapper hpstats, I'll use it anyway. I guess it's more important to move on and use it. Later on I can go back, and improve hstats. Which in turn will break hpstats. That's what writing software is for you.

Refactor mercilessly.

Wednesday, August 10, 2005 |

1 comments:

Kent Johnson said...

Fix it now. There's never time to go back and clean it up later. "I'll fix it later when I have time" is probably the cause of more badly written software than any other cause including incompetence and laziness. It will take you to a place you don't want to be.

Fix it now when it's fresh in your mind, you know what needs to be done, and there's nothing else depending on it.

Don't live with crap. You don't do it in your house, don't do it in your code either.

New comments are not allowed.

Subscribe to: Post Comments (Atom)