<?xml version="1.0" encoding="windows-1252"?>
<node id="79299" title="Re: Suggestions for working with poor code" created="2001-05-10 00:04:13" updated="2005-08-06 11:22:34">
<type id="11">
note</type>
<author id="44895">
r.joseph</author>
<data>
<field name="doctext">
Wonderful post [Ovid] - just added to my favs list.  For someone who had the great misfortune a while back of inheriting a large, ill-maintained and astrociously coded website, I know what you mean and this post really highlights some of the main points that go into fixing it.&lt;br&gt;&lt;br&gt;
I also have to agree heartily with the replies, although I would like to add something.  I find sometimes that it actually helps, with particularily insubordinate code, to take part of it out of the main file (say, a sub) and put it into another script that has major error-checking, lots of warnings and what not, and then test it from there.  Sometimes this will yield a solution very quickly, and other times it has quickly allowed me to see what was wrong and what needed to be recoded.&lt;br&gt;&lt;Br&gt;
Just thought I'd offer a quick idea...great job again!&lt;br&gt;&lt;br&gt;
&lt;font color="#222255"&gt;r.&lt;/font&gt;
&lt;font color="#333366"&gt;j&lt;/font&gt;
&lt;font color="#444477"&gt;o&lt;/font&gt;
&lt;font color="#555588"&gt;s&lt;/font&gt;
&lt;font color="#666699"&gt;e&lt;/font&gt;
&lt;font color="#7777aa"&gt;p&lt;/font&gt;
&lt;font color="#8888bb"&gt;h&lt;/font&gt;&lt;br&gt;
&lt;i&gt;"Violence is a last resort of the incompetent"&lt;/i&gt; - Salvor Hardin, &lt;i&gt;Foundation&lt;/i&gt; by Issac AsimovW</field>
<field name="root_node">
79261</field>
<field name="parent_node">
79261</field>
</data>
</node>
