Functions are objects in JavaScript, functions have methods, including the powerful Apply, Call, and Bind methods. Apply and Call are nearly identical and are frequently used in JavaScript for borrowing methods and for setting the this value explicitly. Apply and Call are ECMAScript3 but Bind is available in ECMAScript5 Bind() and borrow methods We use bind when we use the this keyword in a method and we call that … Continue reading When to Apply, Call and Bind
Mastering “this”
The Preface The this keyword has always been confusing to me when I first started to write Javascript. When it comes to Javascript, this in different scope can mean something else. So lets try to understand it once and for all and hopefully you can walk away feeling completely satisfied that you have mastered this … Continue reading Mastering “this”
Grace Hopper Cisco Kinetic Demo
For those of you who don't already know, Grace Hopper was a pioneer computer programmer who started the idea of machine-independent programming languages, which led to the development of COBOL. She was one of the first programmers of the Harvard Mark I computer. During her lifetime, Hopper was awarded 40 honorary degrees from universities across the world. A college at Yale University is named … Continue reading Grace Hopper Cisco Kinetic Demo
Auto Layout or Manual Layout?
I get asked this question a lot, when should you use Auto Layout? If it was a job interview at Google, the answer is no Auto Layout :). If it's a job interview at startups, Auto Layout is the way to go. So when should we use Auto Layout and when should we use Manual … Continue reading Auto Layout or Manual Layout?
Retained Cycles, Yikes
How does memory management work in iOS? ARC is a compile time feature that Apple uses to automate memory management, well it takes care of most of the BASICS. ARC is short for Automatic Reference Count. The idea of ARC is simple. That means it will only frees up memory for objects when there are … Continue reading Retained Cycles, Yikes