4 ms·
Hmmm, I note in his closing para: "Facebook wrote a good article when they have decided to switch from a web app to a native one." A three year old blog post fr
by bigiain 11y ago
Hmmm, I note in his closing para: "Facebook wrote a good article when they have decided to switch from a web app to a native one." A three year old blog post from Facebook.
Now the circle has turned with React and React Native…
- matwood 11y agoTo be fair, react native compiles to native according to their keynote were it was introduced. FB gave up on the web app/hybrid app and in the same keynote strongly said the experience will never be the same or good enough as native.
- ksherlock 11y agoreact native doesn't compile to native. It's javascript with native GUI controls instead of the DOM for the presentation layer. (You can still have parts that are objective C or swift and are thus compiled, of course).
- matthewmacleod 11y agoI'm not sure it has though – React Native apps are demonstrably not web apps. It's a very different approach.
- bigiain 11y agoI guess my thought was that in contrast to the thrust of the blog post - FB is going back to the "build as much of it as you can with one codebase (React) and native-app-ify it as late as possible (with React Native)" approach. React came before React Native. In one sense, React Native is just a tool to turn React HTML5/Javascript webapps into native ones - in a similar way to maybe an AngularJS webapp turned "native" with Cordova.
- aikah 11y agoReact native uses UI widgets from plateform SDKs, so Facebook point still stands. Their hybrid app sucked and they lost real money as the result of this.
- pjmlp 11y agoSo full circle that Facebook went C++ with their latest app. http://www.computerworld.com/article/2935408/app-development/facebook-turns-to-wizened-old-c-to-power-new-photo-sharing-app.html http://www.computerworld.com/article/2935408/app-development...
- fathom108 11y agoInteresting; looks like a hybrid approach: "Counting by lines of code, roughly one-third of the codebase on each platform is shared C++ code." Source: https://code.facebook.com/posts/498597036962415/under-the-hood-building-moments/ https://code.facebook.com/posts/498597036962415/under-the-ho... They are using a custom version of Djinni for cross-platform support. Looks like Microsoft is going down a similar path with Visual Studio: https://www.visualstudio.com/en-us/features/cplusplus-mdd-vs.aspx https://www.visualstudio.com/en-us/features/cplusplus-mdd-vs...
- luckydata 11y agoThe team at facebook wasn't exactly the best at squeezing performance out of the browser to be fair. Their article was a little misinformed. I think they have learned a lot since then.