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

The Urban Dictionary Mug

Lotsa space for your liquids.

Buy the mug

The Urban Dictionary Mug

Lotsa space for your liquids.

Buy the mug

The Urban Dictionary Mug

Your favorite word on a white mug.

Create a mug

The Urban Dictionary Mug

One side has the word, one side has the definition. Microwave and dishwasher safe. Lotsa space for your liquids.

Buy the mug

The Urban Dictionary T-Shirt

Soft and offensive. Just like you.

Buy the t-shirt

The Urban Dictionary T-Shirt

Smooth, soft, slim fit American Apparel shirt. Custom printed. 100% fine jersey cotton, except for heather grey (90% cotton).

Buy the t-shirt