this post was submitted on 03 May 2025
27 points (81.4% liked)

Programmer Humor

22981 readers
917 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
[–] Flipper@feddit.org 7 points 21 hours ago (2 children)

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

[–] mmddmm@lemm.ee 9 points 18 hours ago

You shouldn't align code anyway.

If it's important to have stuff on the same column, make it an indentation level and add a line break where it starts.

[–] ulterno@programming.dev 4 points 19 hours ago* (last edited 19 hours ago) (1 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?
[–] Quill7513@slrpnk.net 5 points 18 hours ago (1 children)

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

[–] ulterno@programming.dev 0 points 4 hours ago

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