Live data from Hacker News

One month with React Native

whitesmith.co

31–40 of 55 posts

Re: One month with React Native

#31
post #28

Earlier quoted context omitted.

We are using SQLite. The performance bottleneck is not the database itself but conversion between the Java and JavaScript environments.

Obviously almost every react native app out there is accessing a SQL db over the network, and they work fine. Are you seriously saying that it's slower to get data over the react native bridge than over the internet?

No, such a claim would be complete nonsense.

We are using a local database as a mirror for offline use, which is a key requirement. Profiling (a forgotten art nowadays) shows that most time spent during queries is in this bridge and not in the actual queries.

Re: One month with React Native

#32
post #4
post #3

Can someone point me towards some more in-depth explorations or books on this topic?

I just gave a talk on this at uikonf. Is their anything in particular you would like to know?

Not in particular. I appreciate the suggestion of the official documentation. I do need to rtfm, however after that I will be looking for further examples and explanation. Oh, but if there is any useful tooling I should be aware of that would be quite helpful.

Re: One month with React Native

#33
>But all of this doesn’t come without a price for someone that, like me, is a heavy user of the ctrl+space code completion features of both Xcode and Android Studio.

What about using Visual Studio Code with the compiler set on 'checkJs'? I've just started using TypeScript and I don't think I can ever go back to raw JS.

Re: One month with React Native

#34
post #33

>But all of this doesn’t come without a price for someone that, like me, is a heavy user of the ctrl+space code completion features of both Xcode and Android Studio. What about using Visual Studio Code with the compiler set on 'checkJs'? I've just started using TypeScript and I don't think I can ever go back to raw JS.

Just wait for the next job where they will put you to maintain old angulajs1 app..

Re: One month with React Native

#35
post #33

>But all of this doesn’t come without a price for someone that, like me, is a heavy user of the ctrl+space code completion features of both Xcode and Android Studio. What about using Visual Studio Code with the compiler set on 'checkJs'? I've just started using TypeScript and I don't think I can ever go back to raw JS.

Same. I evangelize TypeScript whenever I can. I don't think I'll ever be as efficient in JavaScript as I am in TypeScript, now that I've tried it. Granted, it has its quirks, but (especially when writing React) it's invaluable to me.

Re: One month with React Native

#36

> Next, plan your Redux store ahead. I feel like I made the mistake of overusing it. Almost every property of my app is managed by Redux and this results in large reducers and many many actions to control all that. It’s very important to figure if some prop will be needed outside a certain component or not and, if not, keep that inside that component. How can you possibly know _in advance_ if a prop will be needed ou…

Just draw what you're building on a piece of paper. That's going to force you to think through a lot of it. Amazing how few FE engineers will do this.

Tutorial link for executing this type of 'drawing'?

Re: One month with React Native

#37
Still happy with Jquery-mobile , is Easy ,OOP and Better. React.js is a lost of time as many other framework that try to copy the javaBean concept. When browser support completly ES6 all this framework will be forgotten

Re: One month with React Native

#38

> Next, plan your Redux store ahead. I feel like I made the mistake of overusing it. Almost every property of my app is managed by Redux and this results in large reducers and many many actions to control all that. It’s very important to figure if some prop will be needed outside a certain component or not and, if not, keep that inside that component. How can you possibly know _in advance_ if a prop will be needed ou…

>>> How can you possibly know _in advance_ if a prop will be needed outside a certain component (you haven't written yet) or not? This seems to imply a suggestion to completely architect the entire app (what components exist, how they relate) before you write much code. And then somehow being correct, even as you develop the app and add new features etc. In engineering, that's what we call the design phase.

That's cool, is there a "user story" for that?

Re: One month with React Native

#39
post #3

Can someone point me towards some more in-depth explorations or books on this topic?

I just started reading the section on animation from the React Native Cookbook and plan to read the rest. So far so good.

Judging from the table of contents, it seems the book gets into more depth than what else is out there.

Re: One month with React Native

#40
post #36

Earlier quoted context omitted.

Just draw what you're building on a piece of paper. That's going to force you to think through a lot of it. Amazing how few FE engineers will do this.

Tutorial link for executing this type of 'drawing'?

I can't even find the API docs for drawing to "paper." They need to work on the usability and make it a proper open standard, like HTML Canvas!
Post reply on HN