I Started A New "Tech" Blog
Posted in Tech
on November 6th, 2009 by
Stephen DeGrace
I started a new blog on my site to talk about technical issues. The idea is that not everything I want to talk about that is technical in nature really belongs in the Django blog, and I don't really want to weigh down my personal blog with these discussions, either. I'm planning to make my first foray my releasing a little jQuery plugin I wrote for creating confirm dialogs with the jQuery UI dialog.
By "Tech," I mean programming and computers, of course... I may add an Analytical Chemistry/Chromatography blog at some future date if I decide to blog about that, but it will definitely have its own space.
By the way - I found this somewhat long-winded discussion of "what the dollar sign means" in Javascript or words to that effect, mentioning in particular jQuery. I don't know why it's linked on the jQuery site for, as it goes on and on for paragraphs just to explain the simple concept that the $ is a valid character in an identifier in Javascript and an identifier may begin with a $. There, I said it, and it took one sentence.
What is slightly interesting is that since the $ stands out as kinda unique among possible variable names in Javascript, plus it is extremely succinct, it is often pressed into service as a name for some very common function, for example, it is often used as an alias for document.getElementById. jQuery uses it as an alias for the jQuery function itself. Some don't like this, I do, but I write plugins as self-calling anonymous functions which alias $ to jQuery internally in order to play nice.
What I find cringeworthy and loathesome is code you sometimes see where the coder tried to make it look like PHP by using $ as an entirely unnecessary sigil in front of all variable names. Gives me the creeps.
Comments:
There are 0 comments on this item. Be the first to comment.
Post a Comment
* Required field, your email will not be posted.