Redux is awesome and is used in countless projects. However, using Redux does mean that there is a lot of boilerplate. Enter Redux Cornell. Named after the legendary singer Chris Cornell, Redux Cornell aims to remove most of the boilerplate which comes with using Redux, yet allows you to completely customize it. The library brings the concept of 'convention over configuration' into the JS world to help reduce boiler plate.
11. Ruby On Rails
relies on the
convention over configuration and DRY concepts
I used to develop with...
12. Software design paradigm used by
frameworks that attempt to decrease the
number of decisions that a developer using
the framework is required to make, without
necessarily losing flexibility
Convention Over
Configuration
14. A model called ‘User’
◇ Will be in app/models/user.rb
◇ UsersController in users_controller.rb
◇ The table in the DB will be called ‘users’
◇ Getters & setters according to the model’s properties
◇ users_helper.rb
◇ app/views/users/index.html
◇ Url will be /users/:id
◇ Customize if needed (but not recommended)
15. Pros
◇ Reduces boilerplate
◇ Easy to follow once you know it
◇ All apps are alike
◇ Customizable
Cons
◇ Seems like voodoo
◇ You have to know the convention
◇ Difficult for noobs
◇ Customizable
18. Chris Cornell
1964 - 2017
◇ Chief architect of the 1990s
grunge movement
◇ 33 year long career
◇ Struggled with depression
One of the best singers of all time
23. ✔ Tiny, with zero dependencies
✔ Brings ‘Convention Over Configuration’ into Javascript
✔ Allows building complete apps without things like
reducers, selectors, and consts
✔ Easy to customize
Makes Redux great again!
24. The initialState
object is
analyzed by
each key’s
initial value
How does it work?
◇ Selectors, action creators,
constants are generated
◇ A ‘Super Reducer’ handles
all relevant actions
◇ Does not bloat your app!
Provide the
main function
with an
initialState
object
➠ ➠