Then a student asks him about a function that he has shown on the screen (the `remove` function called on each Backbone view before clearing the array of views).
And then a srange thing happens. The guy is clueless about what this function does. "We could probably just get away with that," he says. The thing is though, those `remove` functions are crucially important for the topic of memory leaks that he is talking about. If not called, they will not disassociate Backbone views (no longer needed for the UI) from the DOM nodes that they hold on to, and so those views will not be garbage-collected. This is a classical example of memory leaks when using jQuery (or Backbone, which is jQuery based and is notorious for leaking memory). The fact that the teacher just glosses over this issue is embarrassing.
And things like that (instructors’ mistakes, I mean) happen all the time. What the actual fuck?