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
Isaiah Curry
3,950 PointsHow Youtube or Pinterest works
What method or process do these sites use to display the content once you've clicked on a video or tile. Is there a script that loads the data from the selection into a HTML template page or does each item already have a page created and is just called once you select it?
1 Answer
Kevin Korte
28,149 PointsFor sure they are using templates. Youtube uses Python as it's back end language, and according the BuiltWith Pinterest uses PHP.
All of the data for both of these sites are going to be stored in massive databases with I'm sure a lot of relational tables. When content needs to be generated into HTML to the user, the backend language will have gathered all of the necessary data and assets from the database, and will run it through a view model, or a series of view models that will get the correct HTML for the browser.
I image both sites use some sort of MCV to create the end result.
Isaiah Curry
3,950 PointsIsaiah Curry
3,950 PointsThanks Kevin, this info really helps a lot.