Date: 12/12/07 (Code WTF) Keywords: no keywords Альтернатива индусской проверке на длину стрчного представления. while (true) { if (refreshStuff(clientType, toDoList)) { continue; } if (refreshRequester(clientType, toDoList)) { continue; } if (refreshPriority(clientType, toDoList)) { continue; } if (refreshLocation(toDoList)) { continue; } if (refreshUseHomeAddress()) { continue; } if (refreshBlahBlahStartDate(clientType,toDoList)) { continue; } if (refreshBlahBlahStartTime(clientType,toDoList)) { continue; } if (refreshRound(clientType, toDoList)) { continue; } if (refreshProcessingBlahBlah(clientType, toDoList)) { continue; } if (refreshRoundType(clientType, toDoList)) { continue; } if (refreshBlahBlahPrintCriteria(clientType)) { continue; } if (refreshTakenAtBlahBlahStay()) { continue; } if (refreshReplyToBlahBlahStay(clientType)) { continue; } break; } Некоторые названия методов заменены во избежание претензий :) Source: http://community.livejournal.com/code_wtf/117517.html
|