I first heard of Ember.js when I was exploring SproutCore, which was on version 1.6 (released in June 2011). SproutCore 2.0 was announced in May 2011, but was later renamed Ember.js (which is currently on version 0.9.7.1), while SproutCore recently came out with version 1.8 in March 2012.
SproutCore 1.6 featured excellent documentation that showed how to create a To-Do list quickly. I couldn’t find a comparable tutorial for Ember.js, so I figured I’d write my own.
In my post comparing slice versus splice, I mentioned that
slice creates a shallow copy of an array. So what exactly is a shallow copy, and what makes a copy “deep”?
My day to day responsibilities are somewhat far-removed from the concepts I learned in my Introductory Computer Science classes. I’m under the impression that engineers don’t need to know how to write their own BSTs, much less web developers. However, I firmly believe that the value in a college degree stems from learning how to think, not necessarily what you learn.
Source Code: https://github.com/tuanderful/js-101/tree/master/01_LinkedList
Although the two array methods
splice sound similar, they do different things, take different arguments, treat the original array differently, and return different objects. If that weren’t enough,
slice also works on strings, but
splice doesn’t! Here’s a quick comparison between the two.
- Function Overloading
- Passing arguments as an object
It is a technique used in optimizing recursive functions, such as calculating factorial or Fibonacci numbers.
I recently implemented functionality that would dynamically generate image files. As images are generated, they are cached on the server. As the cache grows, the user would have the option to view the files in the cache, and delete them all.
This tutorial will explain the interaction between the client and the server, how files within a directory can be read and deleted, and how to handle packaging and interpreting JSON responses with PHP and jQuery.