Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
flwralex
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
flwralex
8y ago
"By now, you’re convinced: This idea deserves to be heard." This week my first public project got 7 git stars. The feeling is fantastic. I don't have homepage or story, but I have a nice diagram :) The question for me is why
2.
▲
by
flwralex
8y ago
Thank you so much for checking it out. I'm so happy that diagram makes sense to you. One of my favorite talks is from Robert Martin, the first link on the bottom of the about.md - when he explains the history of MVC, I realised that th
3.
▲
by
flwralex
8y ago
Really sorry to call you noob. You may have more experience dealing with Redux codebases from me, but in any case I was arrogant and I'm sorry.
4.
▲
by
flwralex
8y ago
Hi, if you mean how to get rid of switch statements, you can check my comment bellow - about "action-reducer". I've seen https://github.com/erikras/ducks-modular-redux and it's close to what I do. A
5.
▲
by
flwralex
8y ago
Example of "action-reducer" - combine action and reducer as one IIFE. Use object-path-immutable to update the state. In any action.ts file you can have as many actions as you wish. Every action has type, dispatch and reduce method
6.
▲
by
flwralex
8y ago
When Redux stops to buffles you, might be the good time to give advice about it. You might implement it 20 times, but if you don't understand it, every time will be pain. Redux can be life saver even for single developer, so team size
7.
▲
by
flwralex
8y ago
I would be happy to show you how to use redux, without switch statements and even without reducers. It's not that hard, and if you don't like it, just use other state management libs. But don't call it poor design - it has 2