My Portland, OR client has an immediate need for JavaScript Developer
Do you use JavaScript as an object-oriented programming language for complex tasks?
Have you used the prototype object? What did you use it for?
If you are still reading… let’s talk!
Any experience with the following is a plus:
RESTful services, AJAX
JavaScript Patterns
Asynchronous development
Event driven architectures
Underscore.js
Backbone.js
Node.js
Please email me ASAP... je...@mbg.com
var extend = function(subClass, superClass) {
var F = function() {};
F.prototype = superClass.prototype;
subClass.prototype = new F();
subClass.prototype.constructor = subClass;
subClass.superclass = superClass.prototype;
if (superClass.prototype.constructor === Object.prototype.constructor) {
superClass.prototype.constructor = superClass;
}
};
var Person = function(name) {
this.name = name;
};
Person.prototype = {
getName: function() {
return this.name;
}
};
var Idiot = function(name, gracias) {
Idiot.superclass.constructor.call(this, name);
this.gracias = gracias;
};
extend(Idiot, Person);
Idiot.prototype = {
drinkYourOvaltine: [74,117,115,116,32,119,111,110,100,101,114,105,110,103,32,105,102,32,97,32,116,101,99,104,110,105,99,97,108,32,114,101,99,114,117,105,116,101,114,32,105,115,32,116,101,99,104,110,105,99,97,108,44,32,116,104,111,117,103,104,32,73,39,109,32,110,111,116,32,104,111,108,100,105,110,103,32,109,121,32,98,114,101,97,116,104,46,46,46,109,97,116,116,104,105,99,107,101,114,115,111,110,64,104,111,116,109,97,105,108,46,99,111,109 ],
secretCircle: function() {
var out = this.drinkYourOvaltine.map(function(value) {
return String.fromCharCode(value);
});
return out.join('');
},
makeContact: function() {
var name = Idiot.superclass.getName.call(this);
return name + ', ' + this.secretCircle() + '. ' + this.gracias;
}
};
var person = new Person('Hola'),
idiot = new Idiot('Hello', 'Thank you');
console.log(idiot.makeContact());
He might have a chance, IE has dev tools too. ;)
--
You received this message because you are subscribed to the Google Groups "Portland JavaScript Admirers" group.