Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

iOS Build a Photo Browser iPhone App Connecting to an API using OAuth Introducing API and OAuth 2.0

arkadi Yoskovitz
PLUS
arkadi Yoskovitz
Courses Plus Student 6,341 Points

WTF should I use cocapods

I'm trying to learn to be an ios developer not a coca pods user .....!

6 Answers

Stone Preston
Stone Preston
42,016 Points

tons of iOS developers use cocoa pods to manage their dependencies. its very easy to use and makes adding 3rd party libraries a breeze. There is not that much to learn. Just one file and one command to run. I highly recommend you use it

Patrick Cooney
Patrick Cooney
12,216 Points

Here ya go. If you're so worried write it yourself. You can't expect Treehouse to show you everything at some point you have to apply the things you've learned to your own code.

LOL

arkadi Yoskovitz
PLUS
arkadi Yoskovitz
Courses Plus Student 6,341 Points

That might be true but think of the situation my paying money to learn how to program in objective-c and write ios applications. And that you're telling me is someone already did that so go use it. Generally it's ok but this is user authentication we're talking about not a really good idea to not know what's in the code. For all I know the static library might have a send my info to a bogouse server sub routine that steals my user ID and such

Really bad mojo

Stone Preston
Stone Preston
42,016 Points

Oauth is a trusted protocol used by sites like github, twitter, google...you get the idea. Every good developer reuses code and uses 3rd party libraries. You have no reason to be paranoid that OAuth is going to do anything shady. Its not.

I think rolling your own authentication system is a bit out of the scope of what treehouse courses offer. Being an iOS developer does not mean you have to write every piece of code yourself. You simply cant.

arkadi Yoskovitz
PLUS
arkadi Yoskovitz
Courses Plus Student 6,341 Points

its less the idea of using OAuth, more that it's really buging me is using a static library for OAuth, need i remind you heartbleed...

arkadi Yoskovitz
PLUS
arkadi Yoskovitz
Courses Plus Student 6,341 Points

But i can expect Treehouse to show me a relevant example, not to say use a static library that i have no idea who wrote.

And more important secure programming is something that's really hard to find out on the net , could been a good idea for a project

Patrick Cooney
Patrick Cooney
12,216 Points

They shouldn't have to show you an example! You should be able to take the constructs of the language that you've learned so far and combine them with searches of the Apple reference docs and any other relevant docs to build whatever you want.

arkadi Yoskovitz
arkadi Yoskovitz
Courses Plus Student 6,341 Points

Then why sould I use their services becose news flash nothing that treehouse shows thus far is actully new or worth the money of the subscription. Could use itunesu course from Stanford would be cheaper.