News for hackers. Stuff that matters.
Re:Modern JavaScript tooling is too complicated? by tyingq on Wednesday August 21, 2019 @08:15PM (#20763368)
Hard to make that as a blanket statement. I don't know that I've seen two different teams assemble the same pieces for a React stack.
Re:Modern JavaScript tooling is too complicated? by tenaciousDaniel on Wednesday August 21, 2019 @09:29PM (#20763798)
So we just switched from Angular 1 to React.

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.

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?