|
|
|
|
|
by magicalhippo
2339 days ago
|
|
While it might be annoying to use local variables, I usually find it's superior when debugging. It allows you to easily inspect the value and modify it before going forwards. It also usually helps to make the code more self-documenting |
|
Re: self-documenting, certainly sometimes (I mean, you shouldn't play code golf...), but in this case the code in question was:
It's not obvious to me what you would name the intermediate booleans that would be more self-documenting than the function names used there.