Live data from Hacker News

React Native: Initial Thoughts

unredacted.redalemeden.com

61–70 of 105 posts

Re: React Native: Initial Thoughts

#61
post #34

Earlier quoted context omitted.

But JavaScript is a bad language, objectively. There's little debate on that subject. Most of us use it because we have to, even though there are much better languages available.

There's nothing objective about that statement, since it depends on what you value. If you value having a language that is supported natively by every browser, I would argue JavaScript is - subjectively - quite fantastic!

In isolation of its ubiquity, JS is not a good language.

Re: React Native: Initial Thoughts

#62
post #6

Any further thoughts on the apparently controversial PATENTS file? https://github.com/facebook/react-native/blob/master/PATENTS

I saw this [1] from one of the (ex-FB) React devs after the last bout of this on HN:

> it's "be a patent troll and suffer the consequences"

[1] https://twitter.com/floydophone/status/581486099240873985

Re: React Native: Initial Thoughts

#63

Component-based file structure is firmly in the "good" column for me. It makes small components much more feasible. If you're forced to split out your view, your template, your stylesheet, your controller, your model, your business logic, et cetera into separate files you are forced to keep components large. However, if you have a component-based structure, whenever you notice a very small piece of common functionali…

> If you're forced to split out your view, your template, your stylesheet, your controller, your model, your business logic, et cetera into separate files you are forced to keep components large. Why exactly does this force you to keep your components large?

"force" is certainly an overstatement, but it does add friction to creating small components.

Re: React Native: Initial Thoughts

#64

Earlier quoted context omitted.

> Most of us use it because we have to, even though there are much better languages available. Node's popularity is a pretty dramatic counterexample to that assertion.

I think you overestimate Node's popularity, compared to other languages on the server side.

How would you measure such a thing? NPM has more modules than any other language package manager, isn't that evidence that Node is at least somewhat popular?

Re: React Native: Initial Thoughts

#65
post #38
post #35

> Flexbox. The authors missed the opportunity of offering a saner API and favored sticking to the official spec instead. Flexbox is the saner API we've all be waiting for, in my opinion. I'm curious what the author's objections to it are. That's really my problem with the whole piece — statements like this are thrown out there without much justification or explanation.

I'd much rather be writing apps using constraint-based layout, much like AutoLayout. It took me a while to grok it, but it's much simpler once you get it.

I disagree, but I suppose this a matter of preference. For whatever it's worth, the React team did explore using a constraint-solver, but nixed the idea. They explain their reasoning here: https://www.youtube.com/watch?v=7rDsRXj9-cU&t=14m20s

Re: React Native: Initial Thoughts

#67

Earlier quoted context omitted.

See: https://twitter.com/ryanflorence/status/582016664847290368

Awesome, thanks. That should really be mentioned in the Quick Start and/or Tutorial in the docs. I think a lot of people would really appreciate that feature. :)

Looks like it got added to the Debugging page in the docs yesterday: http://facebook.github.io/react-native/docs/debugging.html#c...

Re: React Native: Initial Thoughts

#68

Earlier quoted context omitted.

> If you're forced to split out your view, your template, your stylesheet, your controller, your model, your business logic, et cetera into separate files you are forced to keep components large. Why exactly does this force you to keep your components large?

A typical component in my React app contains about 3 lines of HTML. Have you ever seen a 3 line HTML template?

I have. Not uncommon in Backbone development for instance to keep templates in separate files from the views. If the templates are short you can inline them, but sometimes its easier to just be consistent and give every template its own file. It definitely does add friction compared to React though.

Re: React Native: Initial Thoughts

#69

Earlier quoted context omitted.

But JavaScript is a bad language, objectively. There's little debate on that subject. Most of us use it because we have to, even though there are much better languages available.

> Most of us use it because we have to, even though there are much better languages available. Node's popularity is a pretty dramatic counterexample to that assertion.

By that reasoning PHP must be amazing

Re: React Native: Initial Thoughts

#70
I played around with it a bit over the weekend. You can call it native, but at the same time, it's not completely native. For example, there is no UITableView support. That's one of the most common ways to present data. Hell, one of the first things I tried to do. (There is a bug report. They tried to support it but the code was ugly and didn't really play well with react-native so it was dropped).

You can create a ListView and the performance (and feel) are great, but it's not a UITableView. You can draw a chevron and make it kind of look like a UITableView but if you have to manually re-create the native UI, it's not really native anymore, is it?

It certainly is slick to get instantaneous feedback when you edit your javascript file, though.

Post reply on HN