SHARE:
Uncategorized

Flatiron Day 25: Networking

Flatiron School / 5 November 2013

The following is a guest post by Dulio Denis and originally appeared on his blog. Dulio is currently in the iOS-000 class at The Flatiron School. You can follow him on Twitter here.

Kicking-off week 5 we started the morning with pair coding on our class App LocationQuiz.  We implemented the design we crafted on Friday – getting location venues from FourSquare and filling a new Nearest Locations Table View controller. This was a good exercise in practicing our Inter View Controller Communication as the Nearest Location needs to send its chosen venue object back to the presenting View Controller that spawned it.  Instead of implementing a delegate in the presenting controller we did this by having a property on both sides and setting that object before we popping the Nearest Location View Controller.

After some lunch at Sophie’s we went into Afternoon Lecture that covered the anatomy of a request.  This introduced networking at a broad computer science level from the abstract to the specific: from the 7-layer ISO OSI model through browser render phases and theByzantine Generals.  We discussed HTTP verbs, response codes, DNS, and even how they lay submarine cables.

We finished up by reading some of Tim Berners-Lee quotes who was of course a Cocoa man coding in Cocoa before it was called Cocoa (true NeXTStep days).

We then started a Weather App with the Weather Underground APIs. This got us to introduce NSURLConnection.  Tomorrow, we’ll continue this but start using it in the background in the data store.  This will get us to a point where we can start AFNetworking.

Also, tomorrow we have a guest speaker, Matt Bischoff, who will discuss Good Objective-C Coding Style.  Our reading tonight is the NY Times Objective-C Style Guide which I’ll do right after I finish the homework due tonight.

Using Delegates for Object Passing Between ViewControllers Previous Post Accessing an ASP.NET Web Site on Parallels from Mac OS X Next Post