Author: Tom Alexander
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 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
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
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”) 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:
$('.sectionHeader a').prop("href") // Returns: http://www.domain.org/linkToContent.jsp
$('.sectionHeader a').attr("href") // Returns:/linkToContent.jsp
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]
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
xkcd.com via Tags.
Get Smarter by Realizing Youre Not That Great via How I Learned to Rely on My Own Memory and Stop Depending on Technology.