in reply to General Debugging Tips
Just a note, please take their comments about how well-documented their code is with a grain of salt. When I started my position I had assurances that the code was well-documented, well-written, performs well, could easily be ported to mod_perl, had very few bugs, etc., etc. Unfortunately, I have spent the last year and a half rewriting that code (not all at once, of course). It was full of zillions of global variables, some home-grown "template" system which apparently required that *every* function in the entire system take as arguments $xml and returns $xml (some gigantic hashref), so there was NO error checking going on at all ANYWHERE. Half of it used strict, the other half didn't. Every module had copy/pasted dozens of functions of duplicated code. And this guy thought it was all just great (he forgot to tell me when he left the company that he was leaving because management asked for some relatively simple features that were virtually impossible for him to implement, not only because he was a moron but also because the foundation was so bad and the db design was so wrong that it almost required a complete rewrite just to add features which should be trivial). Anyway, I think I just went off on my first tangent here so I'm sorry :)
Re^2: General Debugging Tips
by techcode (Hermit) on Jun 10, 2005 at 19:52 UTC
|
Yeah I had those situations too. Problem is even more challenging since I'm an freelancer. Which means that I usually have only few days to finish some project (alto projects/code base is probably smaller).
The last project (of that type) I did, was implementing on-hold function to some site/url dir/listing web application.
So I tougth, I just put another field in the table (on_hold) make it in form of check box in the entry form, change the SQL of search/browse functions (add something like 'AND on_hold != 1') and that's it. Yeah right!
First thing I saw is ~ 40 adminXX.cgi files. Same story about templating (self made), no strict, all HTML between the code, same thing/function is 5 places/files ...
On the other hand, if it was written better, we probably wouldn't have so much work to do :) | [reply] |
|