Re: Website Design Hell
Day 2:
So I open up one of the existing pages to see if I can salvage any code. To my surprise the raw code is LITERALLY 10,000 lines long. Apparently whoever coded it decided putting 100 lines of blank space between each line of code was a great idea. Because you know that makes it more readable or something.
I have heard of a solution to this, I can just use find/replace with a regular expression to find all the line breaks and replace with \n!
WRONG.
The blank space is not actual line breaks, it's spaces. From the spacebar. Good old &# 32;
Which means somehow between each line of code is 100 lines worth of holding down the spacebar.
Yeah I don't know either.
Day 2:
So I open up one of the existing pages to see if I can salvage any code. To my surprise the raw code is LITERALLY 10,000 lines long. Apparently whoever coded it decided putting 100 lines of blank space between each line of code was a great idea. Because you know that makes it more readable or something.
I have heard of a solution to this, I can just use find/replace with a regular expression to find all the line breaks and replace with \n!
WRONG.
The blank space is not actual line breaks, it's spaces. From the spacebar. Good old &# 32;
Which means somehow between each line of code is 100 lines worth of holding down the spacebar.
Yeah I don't know either.

















- Tosh 2014




Comment