in reply to poll ideas quest 2016

When you see a bad/stupid line of code in someone else's code, what are you most likely to do?

Related, perhaps:When my script doesn't work, I ...

  • Comment on Re: poll ideas quest 2016 (bad code line)

Replies are listed 'Best First'.
Re^2: poll ideas quest 2016 (bad code line)
by choroba (Cardinal) on Jan 28, 2016 at 23:01 UTC
    It depends on where it happens: at work, on GitHub, in a CPAN module, in the script I discovered after my server was hacked...
    ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

      Good point. It also may likely depends on the coder as well. Known or unknown. Friends, coworker, boss, et al. Added an "it depends" option.