News for hackers. Stuff that matters.
Re:Angular 2 Release Candidate by mateuszf on Tuesday May 03, 2016 @02:00AM (#11618279)
React with redux allows to write most of the code in a purely functional / no side effects manner, which makes testing code almost a joy.
Re:Angular 2 Release Candidate by crucialfelix on Tuesday May 03, 2016 @03:15AM (#11618560)
I've used flux and redux in angular for years. You can write purely functional directives. Angular is much more than just a view library. I've built quite a bit in both react and angular.
Re:Angular 2 Release Candidate by jbergens on Tuesday May 03, 2016 @04:11AM (#11618793)
That's nice but then you don't have the "angular is the standard and I don't have to choose anything" advantage anymore.
Re:Angular 2 Release Candidate by crucialfelix on Tuesday May 03, 2016 @07:38AM (#11619644)
But my code is more flexible, less dependent on the framework it's deployed in. So I can more easily survive things like "migrate to ng2"
Re:Angular 2 Release Candidate by qaq on Tuesday May 03, 2016 @02:23AM (#11618359)
You can use Redux with almost anything including Angular 2. The purely functional manner is only an option if you Ok with providing subpar user experience (need to provide quality cross component animated transition that no side effects functional thing goes out of the window really fast). Given modern tooling the testing point is also a bit overstated.
Re:Angular 2 Release Candidate by mateuszf on Tuesday May 03, 2016 @02:52AM (#11618482)
What exactly do you mean? What is better then having a reliable, easy to write unit tests which cover most of the logic and run very fast?