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
Alibek Aidarov
5,233 PointsReusing the code from Project 2 for a different blog(url)
Is it possible to reuse the code from Project 2 if I want to build a blog reader for a different blog (the one that is not mine and is not wordpress)? Say, for example, I want an app to read Jeff Atwood's blog (codinghorror.com) or Paul Graham's articles (paulgraham.com), how would I need to change the code in order to do that? Tutorials and articles will be helpful. Thanks in advance!
1 Answer
Ben Jakuben
Treehouse TeacherThat is definitely possible, and recommended! It's a great way to continue your learning (and build something useful for yourself).
The key to adapting a different blog is to find out how the data is available. Sometimes it will be an XML-based RSS feed, sometimes they'll have JSON feeds, etc. You'll need to find the URL that gets you the raw data in one of those formats, and then update the app code to request data from that URL and then parse it appropriate. If you can find JSON feeds then you should have minimal updating to do.
I know that's not a very complete answer, but hopefully it helps you get started, and you can post specific questions in here along the way!
Alibek Aidarov
5,233 PointsAlibek Aidarov
5,233 PointsThanks, Ben! It helps a lot! I just wanted to see the bigger picture to understand what is required how I can do that.