Giter Site home page Giter Site logo

polymorphic-redux's Introduction

No more switch statements!

This is a wrapper around reducers and action_types, which helps you work with redux in a OOP way, specifying Events and writing only the required logic, with minimal boilerplate.

This still doesn't solving the fundamental problems of working with redux

Redux is not a plugin to the application. Redux forces you to work in a certain way under a certain architecture (which is good IMO) but doesn't allow you to easily do TDD. Which means by definition any code you write right away becomes legacy. You cannot refactor easily and you have tight coupling between things which should be separated.

By writing the tests first, you quickly define what you need and can disregard all other as unnecessary clutter. This isn't possible using redux, as you must create your store, actions and reducer before even writing a simple use-case test.

So, where do we go from here?

We're working on a series of blog posts describing this problem in detail and the solution we think we have. The true benefit of redux in react apps is the automatic UI reactions you get when updating the state. This is can be perfectly accomplished using any other library (for example mobx) while the logic and app state can be constructed and structured in a clean way, without any boilerplate, using tests as our guide.

see https://github.com/wix/remx

polymorphic-redux's People

Contributors

danielzlotin avatar etgarsh avatar

Stargazers

Nikos Gereoudakis avatar  avatar Tal Kol avatar dror biran avatar  avatar  avatar

Watchers

Pavlo avatar Imran Nazar avatar Shmulik Flint avatar Slava Pozdniakov avatar Luis Godinez avatar Ivan Kamenev avatar Hed avatar James Cloos avatar Jonathan Bensaid avatar yaniv even haim avatar  avatar Eyal Yaniv avatar Adam Matan avatar Yoav Abrahami avatar Boris Litvinsky avatar Dor Raba avatar Danny Steinhoff avatar Constantin Farber avatar Yoav Amit avatar Avi Haimov avatar Mykyta Shyrin avatar Shai Ben-Yehuda avatar Taras Danylov avatar  avatar Omar Shibli avatar Algimantas Krasauskas avatar  avatar Mariya Feldman avatar Andrey Moiseev avatar Denys avatar Gilad Artzi avatar Mantas Indrašius avatar Guy Sopher avatar Ofer LaOr avatar  avatar Kristina avatar avgar marciano avatar otw avatar Ariel avatar Noam Katzir avatar Rob Rush avatar Ziv Levy avatar Yaniv Cohen avatar Vytautas Jakutis avatar  avatar Ihor Krysenko avatar JJ Major avatar  avatar Roman Shevchuk avatar Guy Ben Moshe avatar Sagy Rozman avatar itay shmool avatar  avatar  gal sharir avatar Dovile avatar Nikita Bunchuk avatar Valera avatar Jony Vesterman Cohen avatar Andrey Makarov avatar Dan Bar-Shalom avatar Vytenis Butkevicius avatar Matan Lieberman avatar Uri Tagger avatar Oleksii Makodzeba avatar Lev Vidrak avatar Yuval Aviyam avatar Daniel Bond avatar Ohad Raz avatar Olesia Zaichenko avatar Andrii Ziabriev avatar Albert Elrom avatar  avatar Maor Hamami avatar Noam Moravtchik avatar Gregory Bondar avatar Gil Meir avatar Dmitriy Kovalenko avatar Alan Brian Dardic avatar Yossi Ankri avatar nadav abrahami avatar Dror avatar Evaldas avatar Ward Abbass avatar Vadym Mateushev avatar Jurij Mikelionis avatar Sasha Kurapin avatar uri bechar avatar Vladimir Sorkin avatar dafna tamir avatar Artur Rieznik avatar Ariel Wine avatar Audrius Petreikis avatar Regimantas Merkys avatar Ilya Lytvynov avatar Ohad Laufer avatar Leonid Zhuk avatar Michaelda avatar mrokas avatar Nissan Nimni avatar Oren Zakay avatar

Forkers

etgarsh

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.