There are many common pitfalls when it comes to writing memory-efficient and fast code, and in this article we’re going to explore some test-proven approaches for writing code that performs better. Extensive article by Addy Osmani Writing Fast, Memory-Efficient JavaScript →
Author Archives: Bramus!
DSLR Clueless
Object.observe()
var beingWatched = {}; function whatHappened(change) { console.log(change.name + ” was ” + change.type + ” and is now ” + change.object[change.name]); } function somethingChanged(changes) { changes.forEach(whatHappened); } Object.observe(beingWatched, somethingChanged); beingWatched.a = “foo”; // new beingWatched.a = “bar”; // updated beingWatched.a = “bar”; // no change beingWatched.b = “amazing”; // new Object.observe() lets you add …
How to do presentations that don’t induce suicide
Pinokio
Pinokio is an exploration into the expressive and behavioural potentials of robotic computing. Customized computer code and electronic circuit design imbues Lamp with the ability to be aware of its environment, especially people, and to expresses a dynamic range of behaviour. As it negotiates its world, we the human audience can see that Lamp shares …
What if money didn’t matter
Or why I — two times already when compared to the job before — took a financial step down when switching jobs. If you love doing what you do, the loss of money is overly compensated by joyfulness. Also: if you don’t like doing what you’re doing anymore, then switch jobs (or go on a …
Play Dune 2 in your browser
Fun with face detection, canvas and webcam video
With the getUserMedia API, a video element, a canvas element and LiuLiu’s excellent face detection algorithm, we can easily play around with webcam video data in the browser, plug-in free. Mask overlay experiment: Scaling content experiment: Cool! Fun with face detection, canvas and webcam video → Related: getUserMedia Moustache (via Webappers.com)
jQuery.faceDetection()
Tincr — Edit and save files from Chrome Developer tools + Live reload for Chrome
Tincr is a tool that arose from my own frustration with switching back and forth between Chrome Developer Tools (or devtools for short) to do debugging and my text editor to do coding. The idea behind Tincr is that you can save changes to your original source file from within Chrome Developer Tools. In addition, …
Continue reading “Tincr — Edit and save files from Chrome Developer tools + Live reload for Chrome”