News for hackers. Stuff that matters.
Re:Crank.js – Write JSX-driven components with functions, pr... by ponyous on Saturday April 18, 2020 @10:28AM (#22907988)
I prefer to avoid them. Debugging can be way harder. Remember good old days when you could understand minified JS relatively easily? Look at webpack bundle + babel with generators. Horror to work with.

Yeah, I know sourcemaps and all that, but even sourcemaps workflow is impacted; setting breakpoints can be weird, debuggers are still not perfect.

Re:Crank.js – Write JSX-driven components with functions, pr... by tchaffee on Saturday April 18, 2020 @12:18PM (#22908715)
I think you are mixing up concerns. Webpack + babel does make debugging harder in general. Because you are looking at the output of a compiler.

But what does that have to do with generators? Do you have a specific concern about how Babel "compiles" generator functions using switch? Again, I tend not to look at compiled code, but I think the babel output for a generator function is easy to read.