Tip 1 : Planed 1 full day of training for each member 1:54 Tip 2 : Tooled our environment 3:26 Tip 3 : Used action creators 4:22 Tip 4 : Redux Ducks 6:26 Tip 5 : Write Unit tests 8:15 Tip 6 : Use payload-based actions 10:33 Tip 7 : Frontend development is all about side-effects 12:02 Tip 8 : Normalized the state like a db 14:08 Tip 9 : Selectors are helpful 16:26 Tip 10 : Flow and typescript helped 17:38
@bernardleech50076 жыл бұрын
Awesome talk! Also, props to the video editor for cutting out pauses. Maintaining flow helps me maintain concentration.
@comp20B5 жыл бұрын
I love the editing!
@djheru6 жыл бұрын
Great talk. Encouraging to see my thoughts on redux-sagas vs. redux-thunk validated by a heavy hitter.
@Oswee4 жыл бұрын
Super great talk! Recognized the problem i have with module responsibility. What i decided recently is to try think in Features and not in domains or entities. For now it seems valid idea to me. Will see how it goes.
@kamranayub6 жыл бұрын
Great talk. Using redux-thunk now but definitely can see moving to sagas soon! Thankfully doing that with much more maintainable structure shouldn't be a scary proposition!
@jgraves45326 жыл бұрын
over my head, but I kept up. love that thank you.
@CoreyWofford6 жыл бұрын
Great talk - interesting note on payload-based actions. Agree with it in principle, but in practice seems like it would make your reducers much less expressive. I.e. for someone not familiar with the codebase, a switch-type (on action type) reducer single-handedly explains its slice of state (what we do and don't do with it), but if everything's just a payload object merge, now you have to look elsewhere.
@kaizun6 жыл бұрын
true, but he addresses this issue by suggesting the use of typescript or flow to explicitly show the payload structure.
@Danielo5156 жыл бұрын
Sorry, I don't understand your point. Could you please expand?
@Danielo5156 жыл бұрын
Grouping thins by feature instead of by color (yes, having things organized by reducers, containers etc is the same as using jut colors) is the best advise by far
@tommychan727385 жыл бұрын
very useful information, these practices are also good for useReducer react hooks, I think
@sagaruv6 жыл бұрын
You have not included the time to identify and fix bugs in your TDD comparison chart. That will dramatically change your view towards TDD. One more thing, that maintenance is the core of TDD. That's where you actullay catch bugs and fix them. Nice talk BTW.
@thomasviaud6 жыл бұрын
Interesting video, thanks!
@mohamedyoussef88352 жыл бұрын
Awesome +++++++++++++++++++++
@santosharakere5 жыл бұрын
Excellent thanks
@justfly19846 жыл бұрын
Keeping action-types in single separate file, has great advantage: eslint highlights if somebody repeat same action.type twice in different reducers
@osquigene6 жыл бұрын
I really don't understand what Redux is actually doing. What I mean by that is, what is the difference between Redux and a shared (immutable) state that you would normally use? I just feel like Redux is a design pattern, I'd like to see a use case in which Redux is compared to something in plain ecmascript. Is the Redux version shorter, simpler to code or does it just forces you to code properly (enforcing the design pattern). Or maybe it's a standard that will help sharing pieces of code or creating debugging tools.
@osquigene6 жыл бұрын
For example, immutable-js is just enforcing immutability, it doesn't offer any performance improvement, nor it reduce the amount of code you'll have to write. I'm not saying that this makes immutable-js useless, I'm just saying we need to take it for what it is, a tool that help you not having to remember not to mutate objects. I was wondering if Redux was similar to immutable-js in that sense. Cheers
@batmansmk5 жыл бұрын
Redux is a few design patterns bundled together, yes. Total lib is less than 1k lines. It helped settling a common vocabulary and sharing tools and best practices.
@kesais6 жыл бұрын
Nice !
@batmansmk6 жыл бұрын
For those who cannot play the video at work, there is also a medium article: blog.matters.tech/10-redux-tips-from-the-trenches-55e06ed1c0a8
@vincentdesmares6 жыл бұрын
Here is the related medium article: blog.matters.tech/10-redux-tips-from-the-trenches-55e06ed1c0a8
@ionutcirja71216 жыл бұрын
Unfortunately, I don't believe in your statement about unit testing. Otherwise, great talk!
@batmansmk6 жыл бұрын
Hey thanks for the feedback! It is definitely controversial. You disagree that tests are worth it with React, or disagree that ROI on the frontend of 100% coverage is debatable. Dan tweeted about the feeling way better than my long explanation : twitter.com/dan_abramov/status/807621725772881920
@ionutcirja71216 жыл бұрын
Hi, definitely about the ROI I'm talking about. Dan is talking mainly about testing public api vs library internals and I completely agree the public api is the one which should be tested in the case of a library. But in the case of a project, I would test 100% of the code, because as a dev I have to make sure that my code is 100% correct before running the end to end tests. End to end tests execution usually takes time and I need feedback instantly. As a dev I want to insure my ass, so to say. :D
@GrantMcLean6 жыл бұрын
Really great talk, thanks for the insights. In responding to the question at the end about testing (about 26:45), you mentioned a tool that you use for testing, but I didn't catch the name of it.