I created a huge-ass, 2009-line PHP script to make a dynamically-generated XHTML document with Javascript (also dynamically generated) that averages 92 lines. The majority of this I didn't write: the script is dominated by a gargantuan array of file names and index numbers, which I used a Bash script to generate, and most of the rest is from a publically available script to parse SWF header information. However, this PHP script needs ANOTHER PHP script (much smaller) to call it, and that PHP script generates half of the XHTML. All in all, it's a coding nightmare trying to fix this.
Anyone else have similar problems with spaghetti code?
>>1
Adhere to best practices and this won't be an issue. Learn to abstract. It may take longer to get something working, but it will take less time to get something finished, with the bonus of maintainability.
Perl 6 is still SLOW AS FUCK, so subbing it for Ruby would not be a great idea. (Someone has some blog software running it, but it's just used to generate static pages.)