22 posts tagged with "javascript"

    February 28, 2018

    Javascript decorators are a form of metaprogramming: they add functionality to classes and properties. Unlike the GoF pattern, where…

    October 15, 2016

    A service worker is a script that sits between a web page and the network, acting as a proxy for network requests: if the network is…

    October 12, 2016

    When I started writing javascript in earnest a couple of years ago, I was stuck in a very procedural way of thinking — all of my functions…

    September 06, 2014

    If you have more than one javascript running on a page, you have likely experienced the hell of trying to debug a problem caused by naming…

    August 09, 2014

    Getters and setters make sense in java, and I just learned that there is an equivalent pattern in javascript: The and key words are…

    August 07, 2014

    Object-oriented programming (OOP) can be thought of as describing the properties and behaviour of a noun in a blueprint, which is used to…

    August 05, 2014

    I have encountered more than my share of javascript errors because I have made assumptions about the object I am working with, such as…

    March 01, 2014

    Javascript Date objects have zero indexed months but not dates. Wat? Resources Javascript strftime

    February 27, 2014

    Almost every day, javascript blows my mind. Today I discovered that you can convert a string to a number simply by prepending a +: Awesome.

    February 11, 2014

    The statement can function as a quick and semantic iterator for looping over object properties. In your console, try Awesome Resources…

    February 09, 2014

    Because it bears repeating: javascript and ruby have many features in common, including the ability to add functionality to existing objects…

    February 08, 2014

    Javascript and Ruby have many features in common, including the ability to add functionality to existing objects. Ruby monkeypatching Ruby…

    February 07, 2014

    or, What the heck is global abatement? tldr: Global variables are code smells. Declaring variables inside an application-level function…

    February 03, 2014

    JavaScript has a single number type — a 64-bit floating point number. Since there is no separate integer type, 1 and 1.0 are the same value…

    October 21, 2013

    Meteor is a framework that allows you to write web applications using only javascript. All the work is done on the client-side. Meteor…

    June 26, 2013

    I am really enjoying Test-Driven Development by Christian Johansen I picked up this little gem this morning as I was learning about…

    June 25, 2013

    Spies vs Mocks vs Stubs? We are covering testing frameworks at PCS this week, particularly Jasmine and Sinon. Jasmine has a similar…

    June 19, 2013

    Object blocker!! My pair was stuck for the longest time on the following code snip: We expected out output to include three elements — the…

© Katie Leonard 2025