site banner

Friday Fun Thread for November 22, 2024

Be advised: this thread is not for serious in-depth discussion of weighty topics (we have a link for that), this thread is not for anything Culture War related. This thread is for Fun. You got jokes? Share 'em. You got silly questions? Ask 'em.

2
Jump in the discussion.

No email address required.

Which indentation style do you prefer?

IMO, Ratliff makes the most sense, because it's the only style that reduces the number of tabs after typing the closing brace, rather than before.

if(this){
	that();
	if(nothing){
		something();
		}
	}else{
	other();
	}

Indentation style is a problem for the IDE. The user should never think about it.

I find it disconcerting and nonsensical for the IDE to automatically delete a tab before the cursor when the user types a closing brace in non-Ratliff styles. Also, I'm not much of a programmer, but I imagine that writing a program to pretty-print code in non-Ratliff styles must be a major hassle, because it would force you to move the cursor backward and then forward again after finding every closing brace.

I don’t understand why more people don’t recognize that Allman is clearly superior.

Certainly I prefer Allman, because it delineates blocks better.