Learn Java.... The cheap way

rofl @FrozenShade
I like stories like that. I want more ! I guess we all have many stories of this kind to share. Maybe we should start a “programming horrors” thread ?
One day a “programmer” called and was unhappy with the performance of the server. Long story short : the guy had a mysql table with hundreds of columns and thousands of rows (very very bad design) … AND … his php code looked like that :
$user = “blah”;
$pass = “blah”;
$db = …
(db config, password and db connection was hard coded in each php file …)
$query = “SELECT * FROM table;” (no WHERE or anything)
… then, he looped over everything and selected what he needed using conditional blocks in his loop.

the social skills part : go explain to a non-technical customer that their only technical guy is not doing things right when this only technical guy is telling them “that’s because the server is shit !”. Hint: car analogies work great !

Please pardon my off-topicness. Feel free to delete it.