Top definition
the stimulation or manipulation of one’s own ego by way of using object-oriented code in places where it has no advantage instead resulting in unnecessary complication and bloat.
Objective: Sum two numbers and print the result in the format β€œThe answer is: X” where X is the sum of the two numbers:

Object-oriented masturbation solution:

function MathLib(){

this.answer = null;
}

MathLib.prototype.sum = function (x,y){

this.answer = x + y;
}

MathLib.prototype.getAnswer = function(){

return this.answer;
}

function Printer(){

this.preText = ”;
}

Printer.prototype.setPreText = function(str){

this.preText = str;
}

Printer.prototype.out = function (str){

document.write(this.preText + str);
}

// To run
var math = new MathLib();
var print = new Printer();
math.sum(1,1);
print.setPreText(β€˜The answer is: β€˜);
print.out(math.answer);
by a304681 March 07, 2010
Get the mug
Get a object-oriented masturbation mug for your dog Manley.
Apr 14 Word of the Day
That moment when you think a bug is crawling on you, and it turns out to be true. LMD

A FML moment. LMD

Pretty much you go, JUST LET ME DIE!

Wish this never happened. LMD
by misspinkyperfectionnnll July 09, 2011
Get the mug
Get a LMD mug for your friend Jovana.

Activity