Thomas R Alexander

Manager, Developer, and professional problem solver

Using Frisby.js to test your API

Why test your API? Testing an API is important because it allows you to assert that you are conforming to the interface in which you promise to deliver. Testing a the API layer explicitly allows you to catch code changes that change data types, number of return values, etc… and can be an important trigger for

ES6 Features: Classes

Up until ES6, JavaScript lacked the ability to create classes in the way that other languages offer. Sure you could create “classes,” but it always left a sour taste in our mouths. Talk about UGLY code. Although ES6 adds the keyword, “class”, they really are syntactic sugar around the old way of doing it in ES5. You’ll

ES6 Features: Arrow Functions

ES6 introduces a concept borrowed from other programming languages, like C#, Java, and CoffeeScript, called arrow functions. An arrow function is a way to write shorthand syntax for anonymous functions, all the while keeping the same binding of “this” as the current object . Let’s start with an example. Say you have an array that

Tucker Stilley custom KeyStrokes Layout For Logic Pro

In 1998, Lee Abramson a musician with ALS, released the Album “Toxic Charm” under the nom de plume “Ace Noface” and sent out a press release with the words “ALS” and “musician” in the header. Tucker Stilley  another musician with Lou Gehrig’s disease, had a news aggregator sniffing for these words contacted Abramson via e-mail

How sweet it is…

I am on a mission to lose 25lbs by November 8th for my wedding in Cancun, MX. Aside from the usual, and often forgotten, pledge to eat better and exercise, I sat down to think about what seems to always impede my progress of weight loss. While eating a donut and drinking chocolate milk, it

jQuery .prop(“href”) vs .attr(“href”)

jQuery .prop(“href”) is not equal to jQuery .attr(“href”) The difference between prop and attr is that attr grabs the HTML attribute where as prop grabs the DOM property. Example:

Be careful in your decision to use attr for referencing an href. 99% of the time, you probably want to use prop.

jQuery Plugin: Find text within selector element(s) that matches specified language and wrap it in a span[lang=langauge]

Sometimes character encoding detection in the back-end of software can be difficult. Here is a quick solution to do it in JavaScript! I’ve implemented a jQuery plugin that accepts selectors and a language, iterates through the .text() of the selectors, and wraps the text in a <span lang=””> where the lang attribute matches the language

Things I’d like to see improve in CSS4 … Part 1

CSS3 has introduced a lot of neat and useful features, but issues still linger that make every-day development pretty difficult. Variables/Functions If you’ve used tools such as Sass, you might already be familiar with being able to use variables in CSS. In my mind, you can’t be considered a programming language unless you allow developers

Tags

xkcd.com via Tags.

How I Learned to Rely on My Own Memory and Stop Depending on Technology

Get Smarter by Realizing Youre Not That Great via How I Learned to Rely on My Own Memory and Stop Depending on Technology.