News for hackers. Stuff that matters.
Re:Vine mistakenly ships iOS app with debug mode enabled by ldidi on Wednesday November 25, 2015 @04:11AM (#10626220)
Happened to me at my previous company. We had a bunch of #ifdef DEBUG that wrapped non user-facing code. One day someone added DEBUG=1 in debug mode, DEBUG=0 in release mode, which led to the macro check always being true. The change was hidden in the Github PR since it was in our .xcodeproj. Nobody noticed, but even if we did, I'm not sure we would have guessed the actual impact of it.
Re:Vine mistakenly ships iOS app with debug mode enabled by Camillo on Wednesday November 25, 2015 @05:47AM (#10626529)
I think people overuse #ifdef when they should really be using #if.
Re:Vine mistakenly ships iOS app with debug mode enabled by mikeash on Wednesday November 25, 2015 @07:57AM (#10626930)
I'd wager that less than 10% of iOS programmers know that #if works (by treating as false) when the token is not defined.