You know you weren't suppose to do it. It was a immoral and sinful hack or tweak, but you did it anyways. A goto? A linked list of function pointers? Even committed it? What nasty hacks have you do lately?
Confess HN: Share your Immoral Hacks, Codes or Tweaks
1–10 of 70 posts
Re: Confess HN: Share your Immoral Hacks, Codes or Tweaks
#2The cleaner script was written in python working along side the C fastcgi app running atop Apache. I made the C fcgid app spawn the python script as a child. :(
Re: Confess HN: Share your Immoral Hacks, Codes or Tweaks
#3I used a bash script to query a mySQL database because we weren't allowed to use "unapproved" libraries and the last time I tried to get permission to use a CPAN module, it took 8 weeks.
I am ashamed.
Re: Confess HN: Share your Immoral Hacks, Codes or Tweaks
#4I used blocking disk I/O from a theoretically non-blocking event loop.
Re: Confess HN: Share your Immoral Hacks, Codes or Tweaks
#5Getting into the neighbor's WEP. There wasn't even much to it in the end. My desktop didn't have a wireless card so I had to pipe the connection from a half dead laptop I had lying around.
Re: Confess HN: Share your Immoral Hacks, Codes or Tweaks
#6Nice try, FBI.
Re: Confess HN: Share your Immoral Hacks, Codes or Tweaks
#7http://gist.github.com/159121
I'm so sorry.
Re: Confess HN: Share your Immoral Hacks, Codes or Tweaks
#8I used a boot to download twitter following pages because it was not allowed to a "non browser" and "non logged user"; it's so bad and some kind of spamming, but i did it any way! :'( :'(
Re: Confess HN: Share your Immoral Hacks, Codes or Tweaks
#9Gotos aren't necessarily bad - for example when you have a large amount of nested loops and need to break out of a certain number of them.
Re: Confess HN: Share your Immoral Hacks, Codes or Tweaks
#10Gotos aren't necessarily bad - for example when you have a large amount of nested loops and need to break out of a certain number of them.
Also good for exception/error handling for languages that don't have that capability built in.
E.g. the SQL script I've been working on today has a number of gotos in it.