News for hackers. Stuff that matters.
Re:Emerging Best Practices in Swift by mjmsmith on Tuesday November 17, 2015 @09:09PM (#10585461)
Why is this explicitly testing for false:

  if defaults.boolForKey("launchBefore") == false {
rather than:

  if !defaults.boolForKey("launchBefore") {
Re:Emerging Best Practices in Swift by florian_buerger on Tuesday November 24, 2015 @01:11PM (#10622376)
I use this style myself. It is way easier to read than `!condition`. If you are scanning the code, a single `!` at the beginning of the condition won't stand out that much.
Re:Emerging Best Practices in Swift by holyjaw on Wednesday November 18, 2015 @12:47AM (#10586169)
Probably a style thing. I think I recall reading about this in one of his Swift or Objective-C books? Can't quite remember.

EDIT: Or maybe even just a hastily typed example code