From e708b845a49e7b157ea4eebe785ffd928fdbd783 Mon Sep 17 00:00:00 2001 From: Ken Date: Tue, 26 Feb 2019 21:35:59 -0800 Subject: [PATCH] it's okay. don't be cry. --- step2-08/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/step2-08/README.md b/step2-08/README.md index d629d02..e0e8e22 100644 --- a/step2-08/README.md +++ b/step2-08/README.md @@ -2,11 +2,18 @@ [Lessons](../) | [Exercise](./exercise/) | [Demo](./demo/) -The Boilerplate!! +At this point, you might asking why am I adding so much boilerplate code?!?! -At this point, you might asking why am I adding so much boilerplate code. A lot of code seems to be repeated with Redux. Redux is very much function based and has a lot of opportunites for some refactoring to make it less boilerplate'ish. +
+It's okay. Don't be cry. + +
-I argue that part of the boilerplate is just turning what would otherwise by implicit to be explicit. This is GOOD in a large applications so that there is no magic. I argue for two things: +A lot of code seems to be repeated with Redux. Redux is very much function based and has a lot of opportunites for some refactoring to make it less boilerplate'ish. + +I argue that part of the boilerplate is just turning what would otherwise by implicit to be explicit. This is GOOD in a large applications so that there is no magic. + +However, I argue for two things to make things much better: 1. writing against immutable data structures is hard 2. the switch statements is cumbersome and error prone (e.g. with default case missing)