Idioms (no comment)

// idiom 1
cop[0].goodInPercent = 100;
cop[1].goodInPercent = 0;

// idiom 2
isCrowd = personCounter >= 3;

// idiom 3
injury += insult;

// idiom 4
1: board.draw();
goto 1;

// idiom 5
if (bird[1].feather == bird[2].feather) {
bird[1].flock(bird[2]);
}

// idiom 6
a = getThickness(’blood’);
b = getThickness(’water’);
assert(a > b);

// idiom 7
a_spade_a_spade();

// idiom 8
die(1000);
function die(max) {
for (i = 1; i <= max; i++) {
cut();
}
}

// idiom 9
prey = ‘worm’;
time = getCurrentTime();
if (time >= 4 && time <= 8) {
bird.catch(prey);
}

// idiom 10
while ( rome.fire() ) {
doFiddle();
}

// idiom 11
function getValue(garbage) {
return garbage;
}

// idiom 12
take(salt * .01);

// idiom 13
var here = false;
var there = false;

// idiom 14
if (i == 2) {
tango();
}

// idiom 15
days = 365;
for (day = 1; day <= days; day++) {
if ( random(0,100) <= 50 ) apple++;
}
if (apple <= days) doctor();

// idiom 16
if ( !dogs.sleep() ) {
disturb(dogs);
}

// idiom 17
function tunnel() {
var dark;
for (i = 0; i < 10; i++) {
dark = true;
}
dark = !dark;
return dark;
}

// idiom 18
if ( ape.inLineOfSight(it.x, it.y) ) ape.do(it);

// idiom 19
return way.my || way.high;

// idiom 20
hay[ random(0, hay.length - 1) ] = ‘needle’;

// idiom 21
a = 0;
b = 1;
hand[a].wash(hand[b]);
hand[b].wash(hand[a]);

// idiom 22
function getGain(pain) {
return pain >= 1;
}

// idiom 23
if (cooks >= 3) {
broth = null;
}

// idiom 24
if (a != ‘cake’) a.eat();

// idiom 25
doesStand = you == me;

// idiom 26
var location = getLocation();
if (location == ‘rome’) {
do( location.getCitizen() );
}

Digg this story | Bookmark this post on del.icio.us

1 Comment so far
Leave a comment

Pure Genious!



Leave a comment
Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

(required)

(required)