News for hackers. Stuff that matters.
Re:About the security content of iOS 7.0.6 by PhantomGremlin on Saturday February 22, 2014 @04:45AM (#7281581)
People bitch about indentation in Python. But in this case it would have prevented the bug!

Of course Python doesn't even have a goto, so the code would have needed to be structured differently to start with.

If I were a betting man I'd wager that this bug wasn't really an accident. It would be really interesting to check commit logs to see the history.

Re:About the security content of iOS 7.0.6 by wreegab on Saturday February 22, 2014 @09:57AM (#7282194)
> People bitch about indentation in Python

Really? I did something in Python for the first time a while ago and the indentation as code block is something I find very elegant. I can't fathom why would people find something wrong with this.

Re:About the security content of iOS 7.0.6 by baq on Saturday February 22, 2014 @10:13AM (#7282251)
it's relatively harder to refactor code - you can't just select between { and }. otherwise, no idea - python is my weapon of choice, so i may be biased.
Re:About the security content of iOS 7.0.6 by rplnt on Saturday March 01, 2014 @06:01PM (#7326551)
Can't really write onliners. And use of otherwise great interactive shell is not as good (not that bracketed blocks would help).
Re:About the security content of iOS 7.0.6 by schnable on Sunday February 23, 2014 @09:05PM (#7288713)
Style guideline of using curly braces with ALL if statements, even one liners, would have gone a long way to prevent this.
Re:About the security content of iOS 7.0.6 by lzhz on Monday February 24, 2014 @03:23AM (#7289657)
Code reviews and comprehensive test suites for critical code would have prevented this and many other kinds of mistakes besides.