The Ultimate JavaScript Closures Resource

So you’re writing the most interesting piece of JavaScript of all time, or you’re preparing for a job interview, or you want to impress your significant other, or something, whatever.

You realize that you’re not even sure you can explain what a JavaScript closure is. I’m sure of this because for about 10 years I’ve seen scattered information about JavaScript closures all over the place. This wouldn’t happen if people grasped it easily.

Well, hang on to your brain, here’s a huge list of resources about closures:

Now bookmark that stuff, read one article per day and finally you’ll be able to impress your significant other.

HIGH FIVE!

WebDev – Sublime Text Plugins

You’ve read it, heard it, and seen it a hundred times before, but I’ll say it again:

Tools are great. – by anonymous

… or something like that. This leads me to the next point:

IDEs are tools. – by common logic

And good tools, well used, make for good results. I also have another saying:

Cut the crap. – I’m not good with famous quotes

So here’s the list of my favorite Sublime Text plugins.

In the “Can’t Live Without” category:

  1. Terminal: Quick access to the command line
  2. SideBarEnhancements: Expand the possibilities when right-clicking on your files
  3. ColorHighlighter: Actually see the colors you write

In the “Organisation” category:

  1. JSFormat: Quick and easy formatting of JS code
  2. JSON Reindent: The title says it all
  3. BracketHighlighter: Keep track of where your brackets start and finish
  4. Alignment: Align these constants with the power of Aligment!

In the “Documentation” category:

  1. DocBlockr: JavaDoc-y docs for everything

Noteworthy compilations

WebDev – Pretty AngularJS directives

Terrible.

Terrible terrible.

The first thing I thought when I saw AngularJS directives was “holy HOLY!”, then I promptly screamed in agony. Nothing too dramatic, you know.

So directives are like WebComponents. I get that. They are damn useful. I get that. They are even friggin’ composable. I get that mucho bueno senorita Angularita. What I don’t get, though, is the terrible readability of this mess.

The Necronomicon

You might need a R’lyehian to English dictionary.

I can’t help but see how useful and unfriendly this is. This is practically shouting “Beginners! Flee now, or face several hours of therapy where you’ll revisit all your inadequacies!“. Seriously, just look at this.

Continue reading “WebDev – Pretty AngularJS directives”