Imagine you’re on the phone with your mom and she keeps on talking. And talking. And talking. And you keep on listening and listening. And listening. Every now and then your mom will throw in a “you still there?” to which you will murmur “uh huh”.
And while your mom keeps talking, you feel the increasing urge to answer to something she said, but being well raised, you don’t want to interrupt her, but wait until she is finished.
Now imagine being a Javascript (Come on, It’s not that hard, is it?).
mom.addEventListener("talk", sayUhHuh, false); mom.addEventListener("talk", reply, false);
Depending on your mom, the
talk
event will fire frequently, and murmuring “uh huh” every tenth of a second might irritate her sooner or later. Worse, replying every tenth of a second will make the whole conversation incomprehensible.
Continue reading