plutochill 发表于 2012-9-4 10:30:58

抓狂的代码

在外刊上看到的,趕腳好像冷笑話哦@76#


1.确保这个值等于tureif (someBoolean == true) {
    doSomething();
}

2.只有等于ture时我才return tureif (result == true)
    return true;
else return result;

3.我就是不信任ifif (result <= 10) {
    handling();
} else if (result > 10) {
    otherHandling();
} else {
    handling(); // to be sure
}
4.要写出一看就懂的代码function DocumentDotWrite(s){
    document.write(s);
}

plutochill 发表于 2012-9-4 10:39:10

ZW@125#

cztianshi 发表于 2012-9-4 11:15:28

是我才疏学浅了么。。。第一个的dosomething函数我没见过来着

plutochill 发表于 2012-9-4 11:19:38

cztianshi 发表于 2012-9-4 11:15 static/image/common/back.gif
是我才疏学浅了么。。。第一个的dosomething函数我没见过来着

那個那個,只是隨便一個自定義函數的啦,可A可B可攻可受的哦@jgzhx#

cztianshi 发表于 2012-9-4 11:28:07

plutochill 发表于 2012-9-4 11:19 static/image/common/back.gif
那個那個,只是隨便一個自定義函數的啦,可A可B可攻可受的哦

噗。。。我认真了,我输了。。。#7018!

轻舟过 发表于 2012-9-4 14:03:20

各种蛋疼

plutochill 发表于 2012-9-4 14:25:05

cztianshi 发表于 2012-9-4 11:28 static/image/common/back.gif
噗。。。我认真了,我输了。。。

摸摸腦袋,吾喜歡認真滴孩紙#5t

plutochill 发表于 2012-9-4 14:25:32

轻舟过 发表于 2012-9-4 14:03 static/image/common/back.gif
各种蛋疼

是吧是吧,很冷笑話吧#20t

轻舟过 发表于 2012-9-4 14:51:17

plutochill 发表于 2012-9-4 14:25 static/image/common/back.gif
是吧是吧,很冷笑話吧

是啊

轻舟过 发表于 2012-9-4 15:46:38

plutochill 发表于 2012-9-4 14:25 static/image/common/back.gif
是吧是吧,很冷笑話吧

是啊

nongeek 发表于 2012-9-4 17:47:38

plutochill 发表于 2012-9-4 17:49:13

nongeek 发表于 2012-9-4 17:47 static/image/common/back.gif
怎么办...第一个真会这样写>///

@jgzhx# 虎摸,窩也曾經幹過類似滴事情呢

暮零天晨 发表于 2012-9-4 18:15:20

干过第三个,也不知道当时脑子怎么抽抽了一下!

蟲吇-Aquarius 发表于 2012-9-4 19:19:55

= =如果计算机变身 一定会宰掉程序员的。

a949916388 发表于 2012-9-4 19:53:59

没懂~
页: [1] 2 3 4
查看完整版本: 抓狂的代码