5 ms·
> Verify All Assumptions When you have to worry about the environment unexpectedly reusing internal variables, when is it considered foolish to use a framework
by jack9 9y ago
> Verify All Assumptions
When you have to worry about the environment unexpectedly reusing internal variables, when is it considered foolish to use a framework where you have to question every relationship between every concept? Just stop using it.
- thesmallestcat 9y agoOr one could learn how `this` works, which is that example is really talking about. I was unimpressed by these lessons. There are no dark corners of Node, or JS in general, here. It's more of a narration of the author's growth as an engineer. The "call the callback last" recommendation is particularly odd.
- ninkendo 9y agoThe counterintuitive behavior of "this" in JavaScript doesn't need any defending. I've never heard a justification for this or any other of JavaScript's quirks that wasn't just a thinly veiled lecture on how it works.
- savanaly 9y agoYeah...I think we have to use some context clues in interpreting this particular piece of advice. Clearly, he's not suggesting you verify all assumptions as it would take millenia to verify literally all the assumptions that one makes when writing a complicated program. Personally, I interpret it as meaning he believes that the average developer's baseline calibration for how much is to be assumed is too trusting and people should verify more assumptions than they do-- starting with the most dubious ones of course.
- wgjordan 9y ago'If you wish to make an apple pie from scratch, you must first invent the universe.' - Carl Sagan
- bradmwalker 9y agohttps://www.youtube.com/watch?v=D5xh0ZIEUOE https://www.youtube.com/watch?v=D5xh0ZIEUOE