How to effectively attach eventListeners to DOM elements

Anonymous functions are great way to quickly get the job done, but can be a huge problem when used carelessly. It is especially when attaching eventListeners to DOM elements. Take the code below for example. Here we are attaching an eventListner to the element for the "click" event. Now, later lets say for some reason … Continue reading How to effectively attach eventListeners to DOM elements

Advertisements

My Favorite Programming Jokes

This time these jokes are specifically for programmers including Web Developers to System Programmers, Java guy or Python people. So here it is: I thought I would start this list with a serious note, but I didn't know how everyone would React. Q. Why do Java guys wear specs? A. Because they can't C#. Google doesn't like straight lines, … Continue reading My Favorite Programming Jokes