Live data from Hacker News

We've Open-sourced Rendr

nerds.airbnb.com

31–40 of 56 posts

Re: We've Open-sourced Rendr

#31
post #29
post #5

Posts like this makes me think Airbnb is a awesome place to work. Sharing is caring!

It's great to see AirBnb's open sourced work, and tech talks, etc. Kudos to them - I'm sure it helps a lot with recruiting. I used to work for a company in a similar space and looked to AirBnb with deep envy.

https://www.airbnb.com/jobs :)

Re: We've Open-sourced Rendr

#32
post #8

so they have completely ditch Rails and Ruby?

IIRC, they are using node.js and rendr for their mobile site and still use Rails for the main website.

We're using Rendr in a few more apps in production, in progress. It's starting to eat away at our Rails site a bit.

Re: We've Open-sourced Rendr

#33
post #10

I'm not sure I fully understand this, is this just for SEO? Why not run the page in phantomJS, which is what we do at https://circleci.com , and what meteor apps do, and any others?

SEO was our first concern, but then we realized performance was the big win. Serving the user a full page of HTML rather than waiting for JS to download before rendering HTML makes a big difference, especially on high-latency or low-bandwidth connections (mobile). EDIT: We decided against using something like PhantomJS or node-chimera because why deal with a DOM if you don't have to? DOM is complicated and slow, comp…

How do you measure performance? I'm interested specifically in where & how you instrument, and how you collect the data.

Re: We've Open-sourced Rendr

#34
Anyone interested in something like this should also check out PJAX. Push State and AJAX. https://github.com/defunkt/jquery-pjax

This is what GitHub uses between tabs on its Pull Requests page. I love how simple the implementation is.

Your app still needs to follow the convention of having links going to different pages with URLs. I know it's not "single page" and the interaction is not that "rich." But it's nice because all your logic is still on the server, all rendering and templates are on the server and the server responds with either a full page of HTML or a partial page of HTML depending on an HTTP header you set.

Oh yeah, it also works without Javascript, crazy!

Re: We've Open-sourced Rendr

#35
post #29

Earlier quoted context omitted.

It's great to see AirBnb's open sourced work, and tech talks, etc. Kudos to them - I'm sure it helps a lot with recruiting. I used to work for a company in a similar space and looked to AirBnb with deep envy.

https://www.airbnb.com/jobs :)

Luckily for me it has been a long time since I was in that situation. Anyone would be wise to check that page, though- fantastically designed.

Re: We've Open-sourced Rendr

#36

Anyone interested in something like this should also check out PJAX. Push State and AJAX. https://github.com/defunkt/jquery-pjax This is what GitHub uses between tabs on its Pull Requests page. I love how simple the implementation is. Your app still needs to follow the convention of having links going to different pages with URLs. I know it's not "single page" and the interaction is not that "rich." But it's nice bec…

That is how Backbone and all other current frameworks work.

Re: We've Open-sourced Rendr

#37
post #19

Are there any similar efforts to tie the server with the client, reducing duplication, for Angular?

Angular uses DOM templating instead of string-based templating (most current JS templating engines are string-based), so you would definitely need to fire up a headless browser (PhantomJS) or DOM (JSDOM) of some sort to get it working. It would be very slow if you were doing this dynamically so you would probably want to regularly compile and cache your pages. Some links on this topic: https://github.com/steeve/angul…

Yeah this is the best way to serve rendered pages to search engines. I also found this project: https://github.com/ithkuil/angular-on-server - Which might be worth looking at too.

Re: We've Open-sourced Rendr

#39
post #5

Posts like this makes me think Airbnb is a awesome place to work. Sharing is caring!

I want to see them start open sourcing more of their i18n and translation tools. Most people aren't aware of this, but one of the coolest problems you can work on at AirBnB is building out tools and features that let two people, who don't speak a common language between them, transact with one another. There is no other startup I know of as vested in solving this problem.

Re: We've Open-sourced Rendr

#40
post #22

Just wondering what's the difference between this post and the last one where Rendr was already open-sourced? I mean, it was already open sourced for a while. Is there a change log or an adapter to better integrate with other systems? Thanks!

At the time of the previous post, Rendr was not yet open-sourced.
Post reply on HN