object-oriented masturbation
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){
doc-ment.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);
Read Also:
- obofoni
a huge -ss nigerian male who would do anything (yes anything) for kobe bryant. allen let the security guard give him a bismarck so that he could get kobe’s autograph, he is such an obofoni.
- DIATA
the word to say when you are mad at someone or something and you say it his word instead of a cussing or swearing…you can also say this for the fun of it “diata!!” “oh man…diata” anacronym for die in a terrorst attack. person a: you’re an idiot, you know that? person b: diata
- Dick Burster
when you are going down on a chick and your p-n-s breaks through the back of her v-g-n- or head. dude, my dad gave my sister a d-ck burster now shes in the hospital.
- obsessive come-post-it disorder
when any little thing happens in a worthless persons life that they have to run and post in facesp-ce or any other social media b.s. female or male douchebag: (drops a deuce) 2 mins later…. (on facebook….) hey everyone, i just dropped a m-ssive log! female or male douchebag:(10 mins later from the deuce) watching […]
- occultists
people who study the occult. they engage in various intimate practices and beliefs collected from many points throughout history that stress individual -ssessment and interaction with the divine/universe/existance/etc. the occult discourages blind acceptance and usually involves magickal practice. i have never heard of an occultist that shoves their beliefs down the throats of others. some […]