News for hackers. Stuff that matters.
Re:React Native is now open source by joslin01 on Thursday March 26, 2015 @01:55PM (#9271713)
If you're learning iOS development, stick to learning iOS development. A framework, no matter how cool and neat it is, will not replace pure iOS development for serious apps.

Also ask yourself a question, do you really think you can call yourself an iOS developer when the only way you truly know how to create apps is with React?

Re:React Native is now open source by freyr on Thursday March 26, 2015 @02:13PM (#9271887)
> do you really think you can call yourself an iOS developer when...

I don't really want to call myself an iOS developer. I just want to port a simple web app to iOS, and my options are learning just enough iOS development to do it myself, or hiring a real iOS developer. So I'm curious if this framework would tip the scale in favor of the first option.

Re:React Native is now open source by JonnieCache on Thursday March 26, 2015 @05:16PM (#9273191)
Diving straight into a framework while learning the underlying system in parallel can teach you a lot about best practices and design patterns and so forth. Personally I'd say doing both is a good idea. Just make sure you learn the whys and hows for everything the framework is doing. You can vacuum up all the accumulated knowledge of the framework team.

Saying this, I have no real idea how abstracted react native is from normal IOS dev, so maybe it wouldn't be as helpful as, say, learning python and django at the same time.

Re:React Native is now open source by thebouv on Thursday March 26, 2015 @03:41PM (#9272511)
Sounds like you've answered this yourself.

You don't even have to dive into React (which has its own unique way that I'd call barely JS anymore).

Have you tried Cordova / Phonegap?

Re:React Native is now open source by mbrock on Thursday March 26, 2015 @07:10PM (#9273771)
"You don't even have to dive into React (which has its own unique way that I'd call barely JS anymore)."

Eh, I assume you're referring to the JSX syntax. I happily don't use it at all. It's all just JavaScript functions and objects.

Re:React Native is now open source by thebouv on Friday March 27, 2015 @09:41AM (#9276155)
Yes, the JSX is "weird" to me.

But even the pure JS method. I shouldn't have said "barely JS anymore".

I'm just not a huge fan of apps built entirely in JS that spit out markup. I find it so messy personally, but also a giant brain shift too.

The commenter I was replying to wanted a way to take a web site and get it to run as an app. HTML, CSS, JS -- Cordova / Phonegap is one way to do it that requires very little rewriting of your code. At least compared to taking a HTML/CSS/JS web app and rewriting it in React.

Granted, I am no React expert and plan to give it more time soon. But at the 30k ft view, it's simpler to port your app that's already built by using Cordova. If you're going to rewrite anyway, sure, use React Native if you're already a strong JS programmer.

Re:React Native is now open source by mbrock on Friday March 27, 2015 @10:14AM (#9276364)
Sure, that's reasonable. If you already have a site and want to run it with native features quickly, Cordova is an excellent choice. That goes even if your site is already built on React.

Compared to more complex frameworks, React hems closely to JavaScript as a language. I enjoy working with it because it lets me write entirely in JavaScript without any weird template languages or typical framework "bloat." In my experience, it helps me write readable and correct frontend code.

Random tangent: sometimes I imagine that React would have another name—say, something dull like "libdomdiff." The JavaScript world for some reason seems to operate by making everything into a fancy big deal; every library needs its own conferences and consultancies. I feel like being a "React expert" is kind of overrated. It's basically just a library with like a dozen functions.

But you're right too that it is a different way of writing apps. I hope your experiences with it will be as positive as mine!

Re:React Native is now open source by emehrkay on Thursday March 26, 2015 @02:31PM (#9272040)
> do you really think you can call yourself an iOS developer when the only way you truly know how to create apps is with React?

I totally agree with you, but does it matter in the grand scheme of things? Look at web developers that only know frameworks. They may only know jQuery or only know Rails, but if they're still getting shit done, does it ultimately matter? There may come a day where that developer is required to go deeper than the lib/framework allows and they may be exposed or may be forced to learn more or they may drown because they never learned to swim.

This is interesting to me because it brings up the question of how important is mastery when there are deadlines?

Re:React Native is now open source by woah on Thursday March 26, 2015 @02:10PM (#9271858)
What is it about the "seriousness" of an app that would demand Apple's crappy interface builder?
Re:React Native is now open source by joslin01 on Friday March 27, 2015 @12:14AM (#9274727)
Haha crappy. Hard to take anything you say seriously if you really believe that.
Re:React Native is now open source by woah on Friday March 27, 2015 @10:04AM (#9276307)
It's pretty bad. It works well for very basic vanilla example apps that have certain patterns. But for even very small real-world apps, you end up having to call a bunch of stupid imperative methods on viewDidLoad. It's a joke. The patching that you have to do with imperative code is not visible in the interface builder and so you end up with a bunch of empty looking storyboards a lot of the time.

Dragging and dropping all the time is cumbersome and it is impossible to version control storyboards in any meaningful way. Dragging lines to outlets is a real pain, and the references stick around after you delete stuff, causing countless infuriating runtime crashes.

Most things that you would like to do can only be accomplished with goofy hacks.

Long thread of 50loc+ answers to something that would be accomplished with one line of CSS: http://stackoverflow.com/questions/19226965/how-to-hide-ios7...

Re:React Native is now open source by arasmussen on Thursday March 26, 2015 @02:02PM (#9271777)
> for serious apps

Like Facebook's Groups app and Ads Manager app, which both use React Native?

Re:React Native is now open source by aikah on Thursday March 26, 2015 @02:12PM (#9271885)
How much code is React Native and how much code is hand written Objective-C ? can you answer that question ? "Use" doesn't mean 100% without a single line of Objective-C written.
Re:React Native is now open source by evv on Thursday March 26, 2015 @02:22PM (#9271976)
Groups is a mix of native code and React Native, but Ads Manager is pure react native. The app is completely written in Javascript.
Re:React Native is now open source by empthought on Friday March 27, 2015 @12:48AM (#9274808)
No, like GarageBand, OmniFocus, Keynote, or hell even iBooks.
Re:React Native is now open source by picardo on Thursday March 26, 2015 @02:08PM (#9271822)
React Native is only the view layer. There is a ton more to an app than just the view layer.
Re:React Native is now open source by jaxbot on Thursday March 26, 2015 @03:23PM (#9272402)
Not just the view. React Native also gives you access to HTTP and full JavaScript logic, so the model, view and controllers can be written using React Native.
Re:React Native is now open source by picardo on Thursday March 26, 2015 @07:26PM (#9273836)
I just discovered that. They're using building polyfills to simulate the browser behavior, too. Very cool.