Hacker News new | past | comments | ask | show | jobs | submit login

80 lines, huh? I guess that's cool.

    #!/usr/bin/ruby -rcgi
    H,B=%w'HomePage w7.cgi?n=%s';c=CGI.new'html4';n,d=c['n']!=''?c['n']:H,c['d'];t=`xx
    cat #{n}`;d!=''&&`echo #{t=CGI.escapeHTML(d)} >#{n}`;c.instance_eval{out{h1{n}+
    a(B%H){H}+pre{t.gsub(/([A-Z]\w+){2}/){a(B%$&){$&}}}+form("get"){textarea('d'){t
    }+hidden('n',n)+submit}}}
http://www.joe-bowers.com/static/mirror/thisHackWasNotProper...



IF OP had removed all whitespace and used since letter variables he could have squeezed the javascript down to almost nothing too. Personally, I think it's a bigger achievement to write something that other people can look at and actually understand what is going on.


I think it's a bigger achievement to write something that other people can look at and actually understand what is going on.

Then you probably wouldn't title your article, "in XXX lines of code". But the author of this particular author did, so it's assumed that he considers this to be a big achievement. technomancy merely points out that this is not really an amazing achievement.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: