Older blog entries for sness (starting at number 5385)

Elegant Code » Basic JavaScript: Prototypical Inheritance vs. Functional Inheritance

Elegant Code » Basic JavaScript: Prototypical Inheritance vs. Functional Inheritance: "In ‘classical’ programming languages, one class can directly inherit from another class. JavaScript doesn’t have this notion of classes (yet). Instead, JavaScript has prototypes which you can augment to fit your own needs. This means that having a single augmented object as the prototype for other objects, which ‘inherit’ all members of the augmented prototype object, kind of simulates a pseudo-classical inheritance pattern. Let’s talk code in order to demystify this concept."

'via Blog this'

Syndicated 2013-03-25 16:51:00 from sness

The 5 laws of API dates and times | API UX

The 5 laws of API dates and times | API UX: "Law #1: Use ISO-8601 for your dates

There’s really no debate here. From the W3C to the IETF, and even XKCD, the Internet has come to operate on this standard. Don’t try to be smart and do it differently. ISO-8601 provides a host of varieties on how to display dates/times/timezones."

'via Blog this'

Syndicated 2013-03-25 16:49:00 from sness

Too Perfect A Mirror - Me, my blog, and my Johnson

Too Perfect A Mirror - Me, my blog, and my Johnson: "Git is pretty safe. Usually. But it turns out that you can do some things that will cause it to be relatively quiet about problems, which can make it appear to you, the casual user or sysadmin, as if all is well. I just completed a bunch of testing in an attempt to understand how the repositories that did get re-cloned onto the anongits could have been corrupt, and here’s what I found:"

'via Blog this'

Syndicated 2013-03-25 16:42:00 from sness

If You Haven't Seen Maru, It's Time You Did! - YouTube

If You Haven't Seen Maru, It's Time You Did! - YouTube: "