CharlesStover / reactn-vs-redux

The same application, implemented and measured in both ReactN and redux.
MIT License
11 stars 2 forks source link

The comparison is "too smart" #1

Open juanlanus opened 5 years ago

juanlanus commented 5 years ago

Since a long time now, hardware resources are much less important than human resources.
Yes, is it good that the reactn bundle is 15% smaller.
But the real thing is that thousands of developer hours will be saved by an easy to understand state management feature. Entire lifespans, I'd say.

On the other hand, the performance-oriented discussions are remains of the old time when CPU time was expensive, like during the early mainframe years.
We developers are very fond of performance discussions and premature optimizations.

IMO selling reduxn should be (almost) totally focused in the ease to understand the API (the devs UI), mentioning the better performance as a non-central byproduct.

quisido commented 5 years ago

I agree. That has always been the driving inspiration behind the development of ReactN. This repository as made because there wasn't enough adoption yet to have any data on development time saved -- just myself as a single anecdotal data point. A hurdle of adoption for some users was performance, which mattered on their app, so I created this to showcase the only real data I could collect at the time.

Since this, ReactN has exploded, and the commentary from developers as far as 'hours saved' can speak for itself.

While the developer experience is and always will be the primary drive behind ReactN's future, a baseline to say that adopting ReactN won't crash your app or quadruple your memory consumption at the very least needs to exist, and this repo aims to provide that proof.

Unfortunately, I don't own an organization large enough to assign ReactN to A/B projects for numerical data on hours and money saved. That would be a greater repo, but beyond the scope of my abilities right now.

If you have feedback or ideas on future steps, I am interested in hearing them.

juanlanus commented 5 years ago

My testimony:
I'm learning React & Redux, through an extensive online course in Eduonix.
I struggle, because I'm not as good at JS, and as an old dog (74) I don't learn new tricks with ease.
The course got overly complicated when it reached the Redux + Thunk part.
Although the instructor showed how to do it, to me it was very difficult to grok at a leven in which I can be productive and not blindly cut&paste code I won't fully understand for quite a while. It was taking me a really long time, weeks.
I was suspecting that all that boilerplate code production should be automated, until I stumped upon Reactn.
Now I'm confident I will be able to develop the site I envision.

quisido commented 5 years ago

I'm elated to hear it! I hope it makes your development experience easier. If you run into any issues, the GitHub repo for ReactN itself is welcoming!

juanlanus commented 5 years ago

Hi Charles, I'm a ReactN user with a question: Is it safe to run ReactN with the newer React versions? I checked the README and it doesn't say I can't but also it doesn't say I can. My React hardcore tech skills are not enough to find it out by myself I'm more of an usability guy). Thanks!

Juan

On Fri, Feb 1, 2019 at 6:49 PM Charles Stover notifications@github.com wrote:

I'm elated to hear it! I hope it makes your development experience easier. If you run into any issues, the GitHub repo for ReactN itself https://github.com/CharlesStover/reactn/issues is welcoming!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/CharlesStover/reactn-vs-redux/issues/1#issuecomment-459879611, or mute the thread https://github.com/notifications/unsubscribe-auth/AA6A4QMn8GlWBWJ0to0Gb2h19grRs8ywks5vJLZwgaJpZM4aeUC3 .

quisido commented 5 years ago

It is safe! In fact, I'd say it's preferred!

As long as ReactN is being maintained, it will support the latest and greatest version of React.

If React publishes breaking changes that ReactN cannot support, ReactN will publish a new major version and similarly stop supporting that dropped functionality going forward.

That is to say, the latest version of React should always be compatible with the latest version of ReactN.