|
|
|
|
|
by kondro
4935 days ago
|
|
Both these are fixed by method extraction though. function setTemperatureToCookPerfectly() {
oven.setTemp(350);
}
function ensureReturnFromTimeTravelPossible() {
fluxCapacitor.setOption(THRESHOLD, 1.21E9)
}
Now wherever you see these lines in your code, you know exactly what they are for.To quote one of the Ruby Rogues, "A comment is a lie waiting to happen." |
|
Granted I would personally do:
but still comment it as to why i picked 350. Comments are for the why, and the why is the most thing to understand.