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 trialaroshinemunasinghe
5,649 PointsI don't understand what dependencies do..
Can someone tell me simple why we are on the Github and doing with dependencies? And also OkHTTP for..?
1 Answer
Ben Deitch
Treehouse TeacherIf you're baking a cake, you don't typically grow your own wheat to make the flour, you just buy flour at the store. It's the same way with software. We don't need to do all the work to handle the many complexities of networking; we can just add a dependency on OkHTTP and use that.
Also, here's a great workshop Craig did on Dependency Management with Gradle :)
Tomazzino Grabarino
101 PointsTomazzino Grabarino
101 PointsGithub is a version control system.
Dependencies - Simple example: Let's say that you have a nice navigation and it needs jQuery in order to display correctly. Hey! jQuery just became your dependency. It means that you require this in order for some piece of functionality to work properly.
Composer is a dependency management system, which pulls in all "dependencies" to your project so that you don't need to worry anymore.
In my navigation example:
okHTTP - Sorry can't help on that, I'm sure someone else will answer this for you.
Have fun!