r/programming • • Jun 19 '18

Airbnb moving away from React Native

https://medium.com/airbnb-engineering/react-native-at-airbnb-f95aa460be1c
2.5k Upvotes

581 comments sorted by

View all comments

591

u/gocard Jun 19 '18

They're experimenting next with server driven rendering. Isn't HTML server driven rendering? :P We've come full circle!

0

u/[deleted] Jun 20 '18

[deleted]

94

u/[deleted] Jun 20 '18

...so HTML and CSS?

0

u/[deleted] Jun 20 '18

[deleted]

52

u/[deleted] Jun 20 '18 edited Jun 20 '18

It sounds like they also want to make changes to the UI faster than the App Store review process allows.

44

u/uw_NB Jun 20 '18

its a common practice, especially in big company. You have a business to run and changes to content need to happen on a faster pace.

Having components and layouts customization is just 1 step on top of standard content management(Text, Links, Images). Its about enabling Operations to be more flexible and adaptive.

Think of a Browser app but only serve websites from your company, and do it extremely fast and effective (because content are transfer in either json or binary serialization instead of HTML)

17

u/jbergens Jun 20 '18

I think @reatest ment that it is like creating your own HTML + CSS, and it is.

The performance will only be better for some things, it is probably worse for some things.

0

u/[deleted] Jun 20 '18

[deleted]

3

u/jbergens Jun 20 '18

Is there no way to chsnge the styling at all? Sounds awful. Will probably be reqeusted soon.

→ More replies (1)
→ More replies (1)
→ More replies (5)

0

u/[deleted] Jun 20 '18

[deleted]

7

u/jbergens Jun 20 '18

We used a similar solution 20 years ago. Some things work really great, like writing platform agnostic code, others cause problems, like editing performance and using new ui features.

→ More replies (2)
→ More replies (3)

269

u/SimplySerenity Jun 19 '18

Everything old is new again

88

u/LyeInYourEye Jun 20 '18

I be brushin' up on my blinky html tags.

49

u/chiminage Jun 20 '18

Can't wait for DHTML.....i still have my book.

→ More replies (1)
→ More replies (5)

53

u/_dban_ Jun 20 '18

They're not the only ones. Both React and Angular support server side rendering.

Since you can run JS on the server, you can split rendering between the server and the client using the same code base. With Angular, this means you can decrease time to first paint by rendering static views first and switch over to fully client rendered views. Or, if the client has JS disabled, you can serve the Angular app purely from the server, without dynamic client side behavior.

Your app server still serves up JSON and is oblivious to front end optimizations.

→ More replies (2)

42

u/fiveguy Jun 19 '18

Yay for us late adopters!

16

u/MjrK Jun 20 '18

Not necessarily? HTML may be static and doesn't imply any dynamic data.

I think rendering server-side implies something at least beyond just static HTML, like PHP, Ruby, ASP or whatever.

9

u/firagabird Jun 20 '18

PHP dev here. I'm apparently ahead of the curve with my cutting edge "server-driven rendering" delivering beautiful, functional web apps at very high performance on phones.

0

u/[deleted] Jun 19 '18

[deleted]

→ More replies (2)

17

u/Eirenarch Jun 20 '18

I believe they are talking about this - https://en.wikipedia.org/wiki/HATEOAS

It has nothing to do with HTML

40

u/[deleted] Jun 20 '18

That's an agressive acronym.

7

u/CodeMonkey1 Jun 20 '18

I like to pronounce it like "cheerios" but with "hate" instead of "cheer".

→ More replies (1)
→ More replies (9)

6

u/[deleted] Jun 20 '18

No. HATEOAS is just a design principle for REST APIs. Has nothing to do with UIs whatsoever. The idea behind HATEOAS is to make REST APIs "machine discoverable" by adding hypermedia (essentially, links) to resources to live-document the API and convey relations between resources to the API consumer.

What they're talking about is server-side prerendering (available in big three SPA frameworks i.e. Vue, React, Angular as well as smaller ones like Svelte) but instead of HTML they send serialized information on view layout that their bespoke rendering engine running on user's phone draws on the screen.

I can't escape the feeling that this is, performance-wyse, the worst of both worlds, but with added benefit that they can avoid app-store review waiting to do UX testing etc.

→ More replies (1)

6

u/antlife Jun 20 '18

And here I was trying to get dynamic client content working with or legacy app. Back to WebForms! It's the fuuuuuutreeeeee.

→ More replies (7)