Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Comment Re:One word.. (Score 1) 683

I personally find this EXTREMELY hard to read.

Frankly speaking, nesting code that deep makes it extremely hard to read and follow. Much more so than the very clear "filter weird cases then move down the line" paradigm that the previous example uses.

Additionally, you're moving the end of the blocks so far from their start that it's nearly impossible to remember what conditions you're in by the time you're 3 deep, and even more difficult to refactor-as-you-go which I'm constantly doing to make better code.

Almost all of my code, with very few exceptions, is 2 indents or less.

Slashdot Top Deals

Logic is a systematic method of coming to the wrong conclusion with confidence.

Working...