I Just Had A JavaScript Zen Moment

The Big Breakthrough!

Well guys, I've been working on one of my projects for the past couple of days trying to make improvements and I just had one of those Ahhhh-Ha moments. Seriously, this thing has been eating away at the back of my brain for days. I was having dreams about it at night and right now, I'm all giddy with excitement.

Unfortunately, your going to wait a day or two until I post it. It needs to be cleaned up and comments need to be added. Also, I think I can add a couple of new functions.... it's pretty frick'n cool. You guys are going to love it.

I'll have it online as soon as I can!

read full article

Use Idioms To Make Your Intentions More Concise

To "===" or not to "=="

About 6 months ago, I came across an online tool called JSLint. It's a JavaScript program that looks for problems in JavaScript code. I began using it to check most of my scripts to see if I had any errors in them (I know, I know... you thought I was perfect). Well as it turns out, I had a lot of little mistakes, like using a function or object before it was defined or little formating issues. But one error I kept receiving made no sense to me and I honestly didn't understand why I was getting it.

Expected '===' and instead saw '=='.

Expected '!==' and instead saw '!='.

Granted, it wasn't like I didn't understand how to fix the issue, but JSLint wasn't very forthcoming on why I needed to make these changes. So, without fully understanding what was going on, I began using "===" and "!==" whenever I needed to make a logical comparision. And I've been doing this for the past 6 months, without a clue as to "why".

read full article
Page: 1 2 3 4 5