Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Building for Open-Source

Kyle Fuller
September 19, 2014

Building for Open-Source

Kyle Fuller

September 19, 2014
Tweet

More Decks by Kyle Fuller

Other Decks in Technology

Transcript

  1. // Playground - noun: a place where people can play

    import UIKit class AlertView : UIAlertView { init(title:String, message:String?) { super.init(title: title, message: message, delegate: nil, cancelButtonTitle: nil) } required init(coder decoder: NSCoder) { super.init(coder: decoder) } func addButton(title: String, handler:(() -> ())) { } }
  2. $ pod lib docstats WARN | NSAttributedString+CCLFormat.h@13: Description for parameter

    '...' missing for +[NSAttributedString(CCLFormat) attributedStringWithFormat:]! WARN | NSAttributedString(CCLFormat) is not documented! 2 tokens, 50% documented
  3. if(JK_EXPECT_F(ullv < 10ULL)) { *--aptr = ullv + '0'; }

    else { while(JK_EXPECT_T(ullv > 0ULL)) { *--aptr = (ullv % 10ULL) + '0'; ullv /= 10ULL; NSCParameterAssert(aptr > anum); } }
  4. - (NSError *)read { if (!open("foo", 0)) { return error;

    } if (!malloc()) { return error; } if (!read()) { return error; } }