Live data from Hacker News

With React Native it’s not all sugar and spice

blog.addjam.com

11–20 of 45 posts

Re: With React Native it’s not all sugar and spice

#11
post #8
post #6

For me C++ is all I need for portable native code, no need to add extra layers that kind of work, that only increase code entropy and debugging efforts. Directly available in iOS, Android, WP, Tizen, Ubuntu SDKs. The only major problem is the way Google disregards their NDK stack, while Microsoft and NVidia engineers are able to do what Google PhDs are not.

How do you build the ui? Just push pixels? Or vertices? Some library maybe?

Since I care mostly about game related stuff, Cocos2D-x, SDL, openFrameworks.

When doing more app like coding, following MVVM patterns with the view written in the platform language.

On iOS you can use Objective-C++, on WP and UWP C++/CX.

Android is the worst because Google keeps the NDK at an arm's length, but projects like Djinni and SafeJNI help.

If you don't bother to provide a native experience, but still enjoy the portability of C++'s code, there is always Qt and QML.

Re: With React Native it’s not all sugar and spice

#12
The criticism on the tooling seems excessive for the benefits it provides. On one hand you don't spend the time equally on the terminal, the text editor, dev tools and the platform's IDE. You'll normally spend most of your time in the text editor and the emulator. You'll have to use the other tools here and there, but in exchange most of your code will be shared across platforms.

Regarding code organization, I found redux to be a well established tool with clear patterns.

Re: With React Native it’s not all sugar and spice

#13
post #5
post #2

I find irrelevant gifs embedded in a blog post like this make the entire article unreadable. It's distracting and annoying.

It's supposed to be distracting, but moodlifting, seeing the post exposes essentially negative oppoinions. Of course they are devoid of content.

I agree. A lot of times I'm just perusing HN for a few minutes as a break; I'm not looking for heavy reading. Setting up the content like this gives me a quick little chuckle in-between paragraphs and I move to the next. Rather than oh god this is too long - next link.

Re: With React Native it’s not all sugar and spice

#14
> With each framework or platform we develop with we need to adapt to the conventions. From back end work using frameworks like Rails and Elixir to native mobile projects each has it’s own way to hang together a project.

Some have their own way to hang together a project. Much of the React ecosystem is not so opinionated. A lot of JavaScript out there exists in codebases in a variety of languages and frameworks—Rails, PHP, Node... you name it. Modern JavaScript build tools reflect the need for script sources and build targets to reside anywhere based on what the site JavaScript is being used in. I'd say this historical influence is showing in React Native.

However, I also think this makes sense for React Native. It's possible it's getting introduced into apps which already have conventions based on the platform the app is for and the team writing it. It might not make sense for React Native to come up with a new set of conventions when you're working with multiple platforms and existing codebases.

> But the real value is in sharing code, maintaining projects and on boarding new members to a project team. [...] We’ve spent a long time viewing projects on GitHub and picking and choosing what we feel is the best way a project should be structured.

Conventions—whether they're forced on you by the framework authors or developed by the community—are still part of learning a framework and working with it for the first time. I'd say what author came away with here is even more important than just having some convention—they landed with something they really think is best for their projects! The real cost here is that onboarding developers will also include time for them to get familiar with this project structure, but is that really so much to ask?

Re: With React Native it’s not all sugar and spice

#17
post #5

Earlier quoted context omitted.

It's supposed to be distracting, but moodlifting, seeing the post exposes essentially negative oppoinions. Of course they are devoid of content.

I agree. A lot of times I'm just perusing HN for a few minutes as a break; I'm not looking for heavy reading. Setting up the content like this gives me a quick little chuckle in-between paragraphs and I move to the next. Rather than oh god this is too long - next link .

I've spent an hour reading a 20,000 word article. Don't go down the same path I did!

Re: With React Native it’s not all sugar and spice

#19
post #9

You should do your due diligence before using a framework/library/technology for production code. Don't just follow the hype. http://www.sheshbabu.com/posts/guidelines-to-choose-a-javasc...

The case for React is strong in this respect, because Facebook has many lines of React committed to important production code. Your problems are also their problems... unlike Angular, which Google isn't relying on in production code nearly as much.

Re: With React Native it’s not all sugar and spice

#20
post #9

You should do your due diligence before using a framework/library/technology for production code. Don't just follow the hype. http://www.sheshbabu.com/posts/guidelines-to-choose-a-javasc...

The case for React is strong in this respect, because Facebook has many lines of React committed to important production code. Your problems are also their problems... unlike Angular, which Google isn't relying on in production code nearly as much.

Yep, React is a good choice because FB is using it in production in their consumer facing apps. But React Native is not used that way by FB (yet?)
Post reply on HN