Tech
[程序员] 工作 8 年,这样 while 循环调别人接口是什么水平?
同事写的代码,循环调了别人接口 50+次
var callRpc(var id) {
此处省略(P99 = 2S)
}
var getId() {
var id = 0;
while(true) {
tmp = callRpc(id);
if (tmp <=0) {
break;
}
id = tmp;
}
return id;
}
Read the full discussion on V2EX
This article was aggregated from V2EX. Click to join the conversation.
View on V2EX