- call(), apply() and bind() are three methods every function has access too
- bind() creates a copy of the function object in question
- call(), apply() and bind() methods are methods that allow an object to point to a different ‘this’ variable when invoked.
- Common patterns used in conjunction with call(), apply() and bind() are function borrowing and function currying.
This is definitely worth a post. Just when I want to disregard this utility as trivial – every now and then I get a consulting gig where I need to run a full backup – yes of everything, files, database, the works. You see, sometimes I get a task that isn’t as black and white as it may seem at first glance – something is a bit unconventional, but you know – there is nothing wrong with that. Sites come in all shapes and sizes, in all sorts of architectures. It’s good to get exposed to a variety even really weird ones. Look I’d rather poke around a dev site over production no matter how tempting it is – I’ve seen way too many sites go down in my life time, it’s not worth the gamble. I tell every junior developer – the first thing you should do is create a back up. First thing you should do. Then you can show off your programming skills later and you know – be that “rockstar” developer you were meant to be.
Continue reading “Importing sql database using the command line”
Continue reading “Fixing a network 404 error using typeof”