javascript multiple binds

In javascript, if we bind multiple times, only the first bind takes in the provided this value. That is because the bind function returns a new function which doesn’t have this anymore. Subsequent binds won’t have any effect on the original this.

// NOT the real bind; just an example
Function.prototype.bind = function(ctxt) {
    var fn = this;
    return function bound_fn() {
        return fn.apply(ctxt, arguments);
// no more 'this' in my_bound_fn
my_bound_fn = original_fn.bind(obj);


How https works

Here is a nice cartoon to demonstrate how https works.

The Secret to Learning

That is the way to learn the most, that when you are doing something with such enjoyment that you don’t notice that the time passes.


Cheat Sheet of Machine Learning and Python (and Math) Cheat Sheets

Get them at this link:

Photo realistic surrealism

Check out these photos from Erik Johansson, I am speechless.

Erik Johansson Photo

Javascript function call/apply

function Person(name) { = name; 
Person.prototype.getName = function() {
name = 'global';
let peter = new Person('peter');
let john = new Person('john');
// what are the outputs?

You should get:


Implicit structure

Every company has a structure. If you don’t explicitly define your structure, then you are left with an implicit one, and that can stifle productivity. We had hoped that being flat would let us move faster and be more creative, but as we grew, we ended up with an unspoken hierarchy that actually slowed down our ability to execute.