Skip to content

Instantly share code, notes, and snippets.

@chrisschreiner
Last active August 29, 2015 14:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisschreiner/bfcc21abd8958e057a10 to your computer and use it in GitHub Desktop.
Save chrisschreiner/bfcc21abd8958e057a10 to your computer and use it in GitHub Desktop.

What is this?

Short text about what this is all about.

System contents

AppDelegate
@ statusBar (awakeFromNib)

ViewController
@ apiCall (viewDidLoad)
- shortenAsync -> NSURL //what do I produce?

TraditionalAsyncThing:ViewController
- process1

ReactiveCocoaThing:ViewController
- reactiveCocoaCall -> SignalProducer<NSURL,MyErrors>
- process2

LFStatusBar
@ statusBarItem
@ recentUploads
- displayStatusBarItem -> Void //!!!
- createMenu -> NSMenu

LFAPICalls

TraditionalAsyncExtension: LFAPICalls
- shortenAsync

SignalProducerExtension: LFAPICalls
- shortenProducer(NSURL) -> SignalProducer<NSURL,MyErrors>

ServiceProviderURLs: String
- asBitlyURL

MyErrors
* CodeRed
* DataWasFuckingNilMan
* OtherError
* NoNetworkAccess

Some profound words about our custom markup

IAmAClass: ThatExtendsAnother
@ andThisIsAProperty (important context where I’m used)
- andHereWeHaveAMethod -> ThatReturnsAType
- secondMethod -> Void //a comment about that
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment