// 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 < dark =" true;" dark =" !dark;" a =" 0;" b =" 1;">= 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() );
} [By Philipp Lenssen | Origin: Idioms in Code (Take a Guess)
No comments:
Post a Comment