• Programming, WTF 03.12.2009 2 Comments

    Found in an old bit of code a former student in my department wrote:

    <form action=”…” method=”post” onsubmit=”myfun();myfun2();myfun3();return submitSully;”>

    If it just called myfun(), myfun2(), and myfun3(), and then returned Sully, that would be mundane.  But it calls myfun(), myfun2(), and myfun3(), and returns submitSully, and that’s just priceless.