Posts

Showing posts from 2013

I am Iron Man

Image
At the labs I live at Society 6. After being carefully crafted and designed by tony I am put up for protection of apple's ex cogitation. I was purchased in January. I was excited to fly all the way to India to complete my  mission. The day neared for my departure. I was carefully wrapped catering to my ecological niche. The GPS was locked to Pune and my porter hit the road. I crossed the international borders, wooshed through fathomless seas. And finally reached the so called land of snake charmers. Though this seems a little boring but my predecessor was assigned this mission and unfortunately it got lost or is being held captive by customs department.  At Pune Proud owner Abhishek Anyways here I am in this mesmerising city, and when I reached at my owners doorstep I found it locked. My porter took me back to the post office. And left a notice for pickup. I eagerly waited for someone to pick me up, and the next day I got a body to encapsul...

Elementary OO Javascript and prototyping I

Considering the apparent fact that everything in Javascript is an object to be another day's story we will learn what is object oriented javascript. a) Object declaration. var foo={}; function Foo(){}; The first is a literal object and the second is a constructor object. The literal object is used when the same object is used throughout and any changes to the object will be carried forward. The constructor object is used when multiple instances of the object are required with some initial work is already done during object declaration. b) Method and Property declaration. var foo={     bar : "foobar",     getName : function(){         return this.bar;     } }; alert(foo.getName()); // will display -  foobar function Foo(){     this.bar = "foobar";     this.getName = function(){         return this.bar;     } } va...

Elementary OO Javascript and prototyping II

Image
Prev Post We will learn some basic prototyping today Every object has a prototype property function Foo(){}; alert(Foo.prototype); // displays object Every object has a prototype function Foo(){}; alert(Foo.__proto__); // displays Function function Foo(){}; alert(Foo.__proto__ === Foo.prototype); // displays false function Foo(){}; alert(Foo.__proto__ === Function.prototype); //displays true I'll reiterate every function has prototype property and prototype N.B.: We'll be using prototype property and not prototype(i.e. __proto__) a) Let's take a constructor object function Foo() { function Foo() { this.name = "foobar"; this.name = "foobar"; this.getName = function() { }; alert(this.name); Foo.prototype.getName = function() { } ...

Can I borrow a feeling

  Can I borrow a feeling? A feeling of belonging, to my country. Can I borrow a feeling? A felling of rage, towards the perpetrators. Can I borrow a feeling? A feeling of disgust and gross out for the histrionics. Can I borrow a feeling? A feeling of trust and faith on the unfearing peer. Can I borrow a feeling? A feeling of chasing rainbows for the wish to subsist is still present. Can I borrow a feeling? A feeling of endurance towards the dysfunctional system. Can I borrow a feeling? A feeling of hope for judgement of dismissal. Can I borrow a feeling? A feeling of contentedness for justice being served. Can I borrow a feeling? A feeling of assurance for an honest allegiance. Can I borrow a feeling? A feeling of vigor to live in a safe and  virtuous environment. Can I borrow a feeling? Can I borrow a feeling? A feeling of belonging, to my country.