News for hackers. Stuff that matters.
Re:Ask HN: what is the most stupid line of code you saw? by fzfzqfz on Wednesday February 20, 2013 @06:23AM (#5249853)
Old php site from year 2000.

Each line of HTML is generated like that :

$html.='<html>';

$html.='<body>';

$html.='The content';

$html.='</body>';

$html.='</html>';

The dev used this in every file, each file contain thousands of lines like that. Worst project i have ever seen, and i must work alone on it. FML.

Re:Ask HN: what is the most stupid line of code you saw? by krapp on Wednesday February 20, 2013 @10:35AM (#5250964)
I've seen this done with SQL queries all the time but... ouch.