A friend of mine was teaching herself React and got confused by how the
self in Python. It’s not. So I typed up a longish Gist on how this works and how it applies to React. It’s not the only explanation of
this out there, but I couldn’t find one that tied into React, so … there it is.
Hopefully, that’s accurate.
this works and got really frustrated when she started running into weird behavior related to how React does (or used to do) auto-binding.
Basically, folks read the tutorial for the new thing, and learn just enough of the old thing to get going with the new thing, but not enough of the old thing to really understand what’s happening behind the scenes of the new thing and get frustrated or bogged down when things stop working.
Which is all to say — it’s tempting to think of programming as this exercise in mathematics where we start with axioms and build up super fancy theories from there. But in practice, it’s more like archaeology. You start from the top and work your way down. You’ll probably never reach bottom. All you can do is just o reconstruct things and create theories of how everything works as you go along.