Re:Modern JavaScript tooling is too complicated?
by mosdl on Thursday August 22, 2019 @08:47PM
(#20773716)
Redux forces you to write lots of ugly boilerplate, its the same way in all code bases that use it.
Re:Modern JavaScript tooling is too complicated?
by davidjnelson on Thursday August 22, 2019 @11:28PM
(#20774309)
// reuse this
export const createAction<T>(type: string, payload: T) => { return { type, payload }; };
// some component
onClick={event => dispatch(createAction<SomeInterface>(TYPE_CONSTANT, event.target.value))}
Where’s the boilerplate?
We decided about a year ago. So I spend a year writing side projects in React and Redux. In the meantime, a new dev was hired to begin writing the React/Redux code. I just jumped into his code today and tried to add my own stuff, and I feel like I'm learning programming all over again, because it looks like absolute gibberish compared to the code I had been writing on the side.
So even if you are using React and Redux, you can write code that has virtually no resemblance to another repo.
It's insane.