Live data from Hacker News

React Native at Airbnb

medium.com

161–170 of 259 posts

Re: React Native at Airbnb

#161

Great article. I started iOS programming in late 2009 and had solid experience of native mobile programming (iOS/Android) and web frontend/backend (RoR/Node.js/React/Go) before I started to use React Native in late 2016. I totally agree with the auther on what work well and what don't work well about React Native. Sad to see Airbnb sunsetting React Native. In my opinion, 2 of the reasons Airbnb had more and more issu…

Typo. It should be "you don't need to do the same thing twice"

Re: React Native at Airbnb

#162
post #153
post #45

Earlier quoted context omitted.

Me too. Last time I played with Ionic it was still mostly wrapped webviews though. And Vue-native is actually the worst. It transpiles Vue code into React Native code that then gets sent across the bridge to native apis.

Sorry, have you got any source for the vue-native part? I haven't heard of that and I'm interested.

Check out the landing page at https://vue-native.io/ at the bottom, "Compiles to React Native". It's important to note that "Vue Native" isn't officially endorsed by Vue.js.

Re: React Native at Airbnb

#163
post #10

Yet another company discovers what many of us did ages ago with multi-platform frameworks. Additional layers not supported by platform owners, mean extra debugging efforts tracking down which layer is responsible, catching up with native SDK features, need to be an expert at both layers, lack of integration with native debugging tools... But business always wants the Ferrari solution at the cost of a Fiat panda.

I'm getting a pretty good React Native app working without understanding any Objective C or Swift underlying stuff. Sometimes you just want a Honda.

The real fun starts when you need to do advanced debugging, the toolkit doesn't cover your use case properly or you hit performance problems you can't solve in the non-native language :)

Re: React Native at Airbnb

#164
post #115
post #110

Tangential to this, he says Airbnb has 100 mobile devs writing about 80k LoC of app code, 40K LoC of infra, and 220 "screens". We've got an app with about the same "dimensions", developed in a similar timeframe, with some very complex financial business logic and 2 developers working on it... what on Earth do their devs spend their time on? Is their engineering organization really _that_ inefficient?

"For reference, we have about 10x the amount of code and 4x the number of screens on each native platform". So the amount of code and the complexity is substantially more difficult than you describe. You probably also don't have as rigorous AB testing, logging, internationalization, contributions to open source, etc.

[deleted]

Re: React Native at Airbnb

#165

Earlier quoted context omitted.

You are getting your users a pretty bad experience because you are lazy and only think about yourself. Users want Porsches, and they deserve them.

Users may want Porsches, but only a few are actually ready to pay for them.

Just like many devs for their tools it seems.

Re: React Native at Airbnb

#166
post #115
post #110

Tangential to this, he says Airbnb has 100 mobile devs writing about 80k LoC of app code, 40K LoC of infra, and 220 "screens". We've got an app with about the same "dimensions", developed in a similar timeframe, with some very complex financial business logic and 2 developers working on it... what on Earth do their devs spend their time on? Is their engineering organization really _that_ inefficient?

"For reference, we have about 10x the amount of code and 4x the number of screens on each native platform". So the amount of code and the complexity is substantially more difficult than you describe. You probably also don't have as rigorous AB testing, logging, internationalization, contributions to open source, etc.

I used to be a CKEditor core dev. The codebase was 150k LOC of (mighty complex at times)JS and there were four of us working on the LTS(4.x) - we were somewhat understaffed, but not "we need a hundred devs for this" understaffed.

On the other hand last year I spent two weeks working on a project for which I was borrowed from another one - they had a total of 120k LOC(Java, TypeScript), twenty people and at least the front-end was a dumpster fire.

I guess people don't scale well.

Re: React Native at Airbnb

#167
post #10

Yet another company discovers what many of us did ages ago with multi-platform frameworks. Additional layers not supported by platform owners, mean extra debugging efforts tracking down which layer is responsible, catching up with native SDK features, need to be an expert at both layers, lack of integration with native debugging tools... But business always wants the Ferrari solution at the cost of a Fiat panda.

I'm not an expert in iOS or Android, but I shipped few React Native apps. Most of my debugging efforts were in webapp. In fact I don't even remember anything about debugging native layer. And I actually built few native components including integration with compass and yandex maps. Sure, it's not Ferrari, nobody outside of US has money for that kind of apps, it was just few hundred bucks for few weeks of my time, but app works on both platforms and customer was satisfied. I think that React Native is great for many apps. If you're world-level corporation with dozens of developers and want absolutely best experience, go native, I guess, you don't really care about few million bucks thrown here and there.

Also don't underestimate a possibility to update app without those pesky moderators. It's awesome, push button and all users are updated.

Re: React Native at Airbnb

#168
post #147

I’ve never seen anyone do a battery impact analysis of React Native. I wonder why? Person sally, I don’t want to use products where the developer prioritizes their problems over my experiencs but YMMV. Some will argue that an Electron dumpster fire is superior to nothing. I consider that debatable.

I am still waiting for tide to turn and for times when users mattered to come back. Not sure if it ever will.

I don't buy this sentiment one bit. In my opinion this nostalgia is almost entirely unjustified unless your primary metric of "when users mattered" is "software used less RAM and CPU". Which may not even be factually correct from a percentage of available resources perspective.

Modern day software applications are far more accessible and usable on average than those of the 90s and 00s. And that's the metric that actually matters. More people are able to do more things with software.

Re: React Native at Airbnb

#169
post #110

Tangential to this, he says Airbnb has 100 mobile devs writing about 80k LoC of app code, 40K LoC of infra, and 220 "screens". We've got an app with about the same "dimensions", developed in a similar timeframe, with some very complex financial business logic and 2 developers working on it... what on Earth do their devs spend their time on? Is their engineering organization really _that_ inefficient?

That's just the React Native.

It sounds like in total they have nearly 1m lines and 800 "screens". Between 100 devs that sounds about right.

For comparison, Uber have 400 devs working on 3m lines across iOS and Android.

Re: React Native at Airbnb

#170
post #4

"Redux is notorious for its boilerplate and has a relatively difficult learning curve. We provided generators for some common templates but it was still one of the most challenging pieces and source of confusion while working with React Native." Interesting to see even Airbnb struggles with Redux

It's really amazing to see Redux, and then go and use the Elm architecture.

The Elm architecture is so simple you could write the API on a business card, and it fundamentally does the same thing, and solves the same problem. There's almost no accidental complexity, only essential complexity.

Redux on the other hand feels like there's so much accidental complexity, but it's not even obvious, it's masquerading as essential complexity.

Post reply on HN