Category: Uncategorized
IoT – Concerns
Management,
Security
Mobility
Longevity
Application Design
Hard day at work!
Boracay diving
JS Performance: 10 Commandments
- Don’t touch the DOM
- Cache DOM reference in local vars
- Use selectors API
- Cahce the length when looping collections
- Update the DOM offline
- Batch style changes
- Don’t ask for layout info excessively
- Minimize reflow areas
- Use event delegation
- Don’t touch the DOM
Things like this can’t be planned
My bed for the night
The Best Fundraising Campaign hands down!!
Those sneaky bast**** Forget cold calling… Get the donors to call you :D. This is pure brilliance from FCB.
Self Invoking Function (Tutorial – JS)
Self invoking functions are used to stop global scope pollution and ensure the code doesn’t conflict with other code in the page.
(function (a, b) { //Temporary name space for all
// the variables within the function
//code goes here
}() //Invoke the function
); //Without this enclosing parenthesis JS
//will identify this as a function declartion statement only
Working example – JSFiddle
var p = 8;
var q = 7;
(function (a, b) {
var x = a * a ;
var y = b * b;
var z = Math.sqrt(x + y);
var r = p + q; // Effects of global scope pollution
console.log(r);
console.log(z);
}(3, 4));
console.log(p); // declaration of variables outside polluted the global scope
console.log(z); // “ReferenceError: z is not defined” = Global scope is not polluted
That moment in picture
Harold Whittles hears for the first time ever after a doctor places an earpiece in his left ear.
This photo was taken by photographer Jack Bradley, and depicts the exact moment when this boy,hears for the very first time ever.
courtesy of “Photos that shook the world”
A ‘Creature’ in Paris by Renzo Piano
Organic ‘creature’ designed by Renzo Piano for The Fondation Jérôme Seydoux-Pathé, Paris within restricted urban site.
All image credits Renzo Piano Building Workshop, architects