Readit News logoReadit News

Deleted Comment

cnp commented on Parcel – A fast, zero configuration web application bundler   parceljs.org/... · Posted by u/KeitIG
Klonoar · 8 years ago
Mmmm, so... sub 100MB for a bundler + compiler + etc?

  - Xcode, for iOS/Mac Development, is usually around 5GB (and 
  no, even if you remove every single simulator, it's still over 100-200MB).

  - Android Studio is roughly the same deal as Xcode.  

  - I've not used Windows so I can't say for sure, but I'd be surprised if the various tech there doesn't follow this pattern.
77MB is nothing, and if you care about this, you're caring about the wrong things.

cnp · 8 years ago
Exactly

Deleted Comment

cnp commented on Ask HN: Is Meteor.js still a thing?    · Posted by u/tiri
littlecranky67 · 8 years ago
Totally agreed, after I jumped through the hoops of learning RxJS I realized it can replace all the libraries you mentioned just because of the way RxJS worked. If you are interested, I created a small little Redux-clone based on Observables/RxJS as a fun project, but am using it in my side projects in production now: https://github.com/Dynalon/reactive-state
cnp · 8 years ago
This is nice! Thanks for sharing
cnp commented on Redux-zero: A lightweight state container based on Redux   github.com/concretesoluti... · Posted by u/uptown
allover · 8 years ago
> extremely minimal and easy-to-use library.

'Extremely minimal' is hyperbole and 'easy-to-use' is subjective. I disagree with this as an absolute statement. I think there's a trade off, and it potentially harms onboarding for some teams, see my sibling-ish comment.

cnp · 8 years ago
I agree with your comment, but disagree that all of the concepts you listed need be understood completely when just getting started. Once the flow is recognized (which in my experience teaching others rarely takes more than a single pairing session) there's basically nothing left but a few functions that pass data in a circle. Everything else that you described comes later, and that later doesn't take long.
cnp commented on Redux-zero: A lightweight state container based on Redux   github.com/concretesoluti... · Posted by u/uptown
gedy · 8 years ago
I think you are missing out on the point that Redux can be very difficult to learn and build a real app around for many people.

> it's all of a few hundred lines of code

I hear this a lot, but it reminds me of folks praising Lisp for its simplicity - it may be 'simple' but many people have a hard time understanding it.

Maybe it's not for every app, but goes into this here: https://medium.com/@matheusml/great-question-bryan-waddingto...

cnp · 8 years ago
It's very important that people understand _how_ and _why_ the flux pattern is valuable before they start using Redux, especially if coming from an MVC background. Once you understand that, the learning curve drops away revealing an extremely minimal and easy-to-use library.
cnp commented on How MDMA Went from Club Drug to ‘Breakthrough Therapy’   wsj.com/articles/how-mdma... · Posted by u/anythingnonidin
justinpombrio · 8 years ago
Thank you for the link. I donated, and probably wouldn't have if you hadn't.
cnp · 8 years ago
Thank you :)
cnp commented on How MDMA Went from Club Drug to ‘Breakthrough Therapy’   wsj.com/articles/how-mdma... · Posted by u/anythingnonidin
cnp · 8 years ago
Please Donate to MAPS (the organization coordinating this research) if you can -- they need funding now more than ever: https://store.maps.org/np/clients/maps/donation.jsp?campaign...
cnp commented on Understanding redux-saga: From action creators to sagas   blog.logrocket.com/unders... · Posted by u/efunction
stefantheard · 8 years ago
Strongly agree having worked on projects that use redux-saga. More difficult to debug, more magic, no real benefits. I would love to be proven wrong however.
cnp · 8 years ago
How large were the projects? Was there a high level of concurrency? redux-saga is definitely an example of over-engineering unless you fully understand its benefits (which are many, depending on context).
cnp commented on Understanding redux-saga: From action creators to sagas   blog.logrocket.com/unders... · Posted by u/efunction
mikewhy · 8 years ago
Agreed, not sure what this gives over redux-promise-middleware, which lets you write things like:

    function myAction () {
      return {
        type: 'MY_ACTION',
        payload: someApiCall(),
      }
    }
And that will dispatch `MY_ACTION_PENDING`, then `MY_ACTION_FULFILLED` or `MY_ACTION_REJECTED`. Soon you'll be able to write your payload as an `async function`:

    function myAction () {
      return {
        type: 'MY_ACTION',
        async payload (dispatch) {
          const apiResult = await someApiCall()

          dispatch(anotherActionCauseWhyNot(apiResult))

          return apiResult
        }
      }
    }
I'm sure there's more to redux-saga, but this article doesn't do a great job of presenting that.

cnp · 8 years ago
The library helps manage complex, concurrent in-flight workflows. Games are a great example of this, or something like a flight booking app that communicates with many different processes and servers and you need to ensure that fine-grained control is maintained at all times.

u/cnp

KarmaCake day1196May 21, 2012View Original