Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Maybe I'm weird, but I never really wrote JS that caused scoping issues, so I never found `this` to be a problem

Either you're weird, or you've been doing JS mostly in the modern era of fat arrow functions, and fat arrow functions have succeeded at reducing the confusion from nested functions each with their own `this`.



Even before arrow functions I just never had much trouble. I had a very consistent way of writing logic. Only ran into scoping issues a few times.


I gotta be honest, I agree with this - `this` was something that bit you once, and you quickly learned to `.bind()` (or use the 3 line polyfill for it...).

I find my older pure JS codebases so, so much easier to go back and remember what was going on than some of the React stuff I've had to interact with in the past 5+ years - and I say this as someone who has written, released, and taught React.

The problem for me is, I think, I'm not sure you can do better than React. You'll either wind up with some complicated beast from hell (Angular) or veer off into performance-benchmark-overvaluing (Svelte).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: