this post was submitted on 03 May 2025
40 points (84.5% liked)

Programmer Humor

23098 readers
3235 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Description, because "alt text" can't show it well:

			{
				emit differentFiles (ckFile.absoluteFilePath(),
					otherFile.absoluteFilePath(),
					FileCompareWorker::FileComparisonParams{FileComparisonParams::FileNameMatch,
						(ckFile.size() > otherFile.size()) ? FileComparisonParams::File1IsLarger
							: FileComparisonParams::File2IsLarger});
			}

After Alignment

			{
				emit differentFiles (ckFile.absoluteFilePath(),
					otherFile.absoluteFilePath(),
					FileCompareWorker::FileComparisonParams{FileComparisonParams::FileNameMatch,
						(ckFile.size() > otherFile.size()) ? FileComparisonParams::File1IsLarger
														   : FileComparisonParams::File2IsLarger});
			}
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 7 points 4 days ago (4 children)

You shouldn't use tabs for alignment. It breaks for everyone with a different tab size.

[–] ulterno 4 points 4 days ago* (last edited 4 days ago) (2 children)
  1. I am using tabs for INDENTATION. I don't want alignment.
  • I have tried my best to remove all alignment operations of clang-format
  1. What do you use tabs for?
[–] [email protected] 6 points 4 days ago (1 children)

if you don't want alignment don't be surprised when your code doesn't align 🤷

[–] ulterno 0 points 3 days ago

If that's supposed to be a pun, I didn't get it.

load more comments (1 replies)