Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Displaying Data with Table Views in Swift 2 Enhancing the Networking Stack Finishing Up the Networking Stack


Hi there, What are the benefits in creating the API/Foursquare client vs. using Alamofire? (obviously it's good to understand how it all works rather than just using third party code).


1 Answer

David Lin
David Lin
35,863 Points

Yeah, the benefit to writing our own networking service is probably mostly for didactic purposes, in the same spirit where he wrote out the parameter encoding methods, but in the end, simply used the iOS libraries to do the exact same thing.

I suppose another benefit of having your own networking service is that you're not reliant on 3rd party libraries, for example, in case of bugs in the libraries, or waiting for them to update their implementation to a newer version of the language, etc.