Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
frontendbeauty
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
frontendbeauty
10y ago
> In every software company the people who are the most influential, and the best paid, are in management or sales. I don't think that's necessarily true in Silicon Valley, where companies like Google, Facebook, Airbnb, Uber, e
2.
▲
by
frontendbeauty
11y ago
> Here's the litmus test. Ask the Reactive Native team to port their non-trivial paper app or mission critical messenger app or main app to Reactive Native. Facebook is rewriting the News Feed in RN. That's not a trivial exampl
3.
▲
by
frontendbeauty
11y ago
s/AirBnb/Airbnb/
4.
▲
by
frontendbeauty
11y ago
We've called ourselves "nerds" since the very early days, at least 5 years.
5.
▲
by
frontendbeauty
13y ago
See Brian's post: https://news.ycombinator.com/item?id=7254986 Airbnb does leave an automated review about the cancellation and dings the host's listing in search results.
6.
▲
by
frontendbeauty
13y ago
Why couldn't you use a CDN for the JS files? We most certainly do.
7.
▲
by
frontendbeauty
13y ago
There are already two problems, if you're building a rich client-side web app. Have you done this? If so, you would understand the problem.
8.
▲
by
frontendbeauty
13y ago
I like "multiplatform" -- current winner :)
9.
▲
by
frontendbeauty
13y ago
There are a few options. Easiest is to just render HTML strings on the server, not actual DOM. But, you can also use a DOM implementation if you want to, like jsdom or PhantomJS, and then capture the outerHTML of an element as an HTML strin
10.
▲
by
frontendbeauty
13y ago
(author here) Good point. TBH, I have no idea what "isomorphic" means in the mathematical sense. I was inspired to use "isomorphic" from a 2011 article by Nodejitsu [1]. It seemed like a fine way to describe this approac
11.
▲
by
frontendbeauty
13y ago
(author here) We just bootstrap some JSON onto the page to transfer application state to the client. It's the same approach as the `express-state` (mentioned in a below comment). Same as any client-side app.
12.
▲
by
frontendbeauty
13y ago
The approach you mention is much easier. However, it does make for slower perceived page load times, even when serializing JSON on the page, because the browser has to fetch, parse, and evaluate JS files before rendering the HTML into the d
13.
▲
by
frontendbeauty
13y ago
Correct. If you're already writing a bunch of JavaScript for the client-side, then just think about this approach as migrating some of that client, UI logic to the server.
14.
▲
by
frontendbeauty
13y ago
(author) Cool! What's the JavaScript runtime on the server? Something JVM-based?
15.
▲
by
frontendbeauty
13y ago
(OP here) Probably your best bet is to create a small Node web service that takes a template name and data and returns HTML. Then your (Rails, Python, PHP) app can call out to that in the request cycle. Instagram.com does something similar;
16.
▲
by
frontendbeauty
13y ago
That is just amazing. Keep it up.
17.
▲
by
frontendbeauty
13y ago
Yep.
18.
▲
by
frontendbeauty
13y ago
At the time of the previous post, Rendr was not yet open-sourced.
19.
▲
by
frontendbeauty
13y ago
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.
20.
▲
by
frontendbeauty
13y ago
https://www.airbnb.com/jobs :)
21.
▲
by
frontendbeauty
13y ago
The app template is such an example, consuming the public GitHub API: https://github.com/airbnb/rendr-app-template In the future, we'd like to come up with some more in-depth tutorials.
22.
▲
by
frontendbeauty
13y ago
Yep! Because links use full URLs which get intercepted by JavaScript, if JS is disabled, you can still navigate around the app, getting full HTML from the server. Of course, any client-specific code wouldn't run (slideshows, etc).
23.
▲
by
frontendbeauty
13y ago
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-bandwi
24.
▲
by
frontendbeauty
13y ago
This is exactly right. We still have 5 years worth of business logic in Rails, so we just expose a RESTful API as part of the Rails app. The same API is consumed by our iOS, Android, Mobile Web, and Desktop clients.
25.
▲
by
frontendbeauty
13y ago
Thanks, fixed.
26.
▲
We've Open-sourced Rendr
(nerds.airbnb.com)
230 points
by
frontendbeauty
13y ago
|
54 comments
27.
▲
by
frontendbeauty
14y ago
Cool, I like that ViewModel pattern. You could certainly use that with Rendr.
28.
▲
by
frontendbeauty
14y ago
We are absolutely hiring! airbnb.com/jobs
29.
▲
by
frontendbeauty
14y ago
http://cl.ly/image/0M2g1Z1G3G0M
30.
▲
by
frontendbeauty
14y ago
Awesome effort. Be careful, though, when you post screenshots of your Twitter, Facebook, Instagram feeds to the world to see -- don't forget that the people who you follow may see that as a breach of privacy. Very likely the things that w
More ›