Name: Anonymous 2011-08-07 11:38
An example (using chrome console)
This fails because console.log needs a "this" that is console
No big deal, but this comes up a lot if you do any javascript programming. Something will fail weirdly and it's because the dumb function wants a different "this". As a result, you're constantly binding functions because of uneccessary hidden coupling between things.
> console.log("anus")anus> importantInfo = console.log> importantInfo("anus")TypeErrorThis fails because console.log needs a "this" that is console
> importantInfo = console.log.bind(console)> importantInfo("anus")anusNo big deal, but this comes up a lot if you do any javascript programming. Something will fail weirdly and it's because the dumb function wants a different "this". As a result, you're constantly binding functions because of uneccessary hidden coupling between things.