About Insanely Stupid Code

When looking into a JS-problem on an Autoptimized site, it turned out missing semi-colons messed things up. Missing semi-colons make JS un-minifyable, as eloquently explained by master-minifier and JS-guru Douglas Crockford in this Bootstrap issue from back in the day;

That is insanely stupid code. I am not going to dumb down JSMin for this case.

One thought on “About Insanely Stupid Code

  1. Daan van den Bergh

    Well put. ;)

    Recently I was asked by a customer to fix a script on their site: the chat pop-up wasn’t working.

    The solution: the end of the script was }); }); when it should’ve been });

    Unbelievable.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *