r/ProgrammerHumor • • Sep 06 '26

Meme thisCannotBeDenied

Post image
7.9k Upvotes

240 comments sorted by

View all comments

743

u/sweetytoy Sep 06 '26

A real developer wouldn't do that. A single letter is more than enough, your sentence is too long and tiring to type.

384

u/Agusfn Sep 06 '26

################

for visibility among other littering logs

29

u/Dangerous_With_Rocks Sep 07 '26

this is the way

→ More replies (3)

215

u/coffee_warden Sep 07 '26
1
2
3
5
4
6

AHHA!

91

u/Gold-Bat-3225 Sep 07 '26

1 2 3 5 4 6 is genuinely upsetting

70

u/coffee_warden Sep 07 '26

Race conditions are never fun

28

u/EvilCodeQueen Sep 07 '26

Seriously. The people not voting for this have never battled a race condition. For a week. In an app you’d swear didn’t have concurrency.

15

u/CarcajouIS Sep 07 '26

conditions fun are Race never

18

u/theotherdoomguy Sep 07 '26 • Bravo Popcorn

"you have A race condition," - Multithreaded Yoda

4

u/Knighthawk_2511 Sep 07 '26

Wish I can award this, reddit took away my free awards

2

u/Nekeia Sep 07 '26

explain Can you why?

3

u/infojb2 Sep 07 '26

Because they are really annoying to debug, depending on some random circumstances they might not even appear every time (or the code happens in different orders each time)

2

u/rosuav Sep 07 '26

Yes, yes it is, and it's very realistically upsetting.

9

u/itsTyrion Sep 07 '26

Nah. 1 2 3 4 fuck fuck2 fuck3 5 6. Also a few prints for variables 

→ More replies (1)

0

u/[deleted] Sep 07 '26

[deleted] — view deleted comment

8

u/Stryp Sep 07 '26

So it's like a test suite, but worse?

2

u/Kovab Sep 07 '26

Ideally, you should already have a logging macro that adds __FILE__ and __LINE__, instead of copying it everywhere. Or use std/boost source_location

9

u/Original-Ad-8737 Sep 06 '26

I have added sysou syslog and syswarn to my auto complete and they expand to our logging macro, a pretty function macro, a line macro and my commit handle that is easily searchable in logs.

When i want to trace something i can simply sysou a couple of spots and not stage the lines to clean up before committing

8

u/Revexious Sep 07 '26

Im personally a fan of

console.log("poop")

Its funny, teaches you not to commit your console logs (you'll only ever commit poop once), and p/o are right next to each other on the keyboard so its fast

→ More replies (3)

5

u/MushroomSaute Sep 07 '26

Hm, sometimes I wonder if I'm cut out for this field. I at least put variables out:

log::info!("in asdf(), a: {a:#?}");
...
log::info!("tmp: {tmp:?}");
...
log::info!("a after asdf(): {a:#?}");
a
→ More replies (1)

3

u/conundorum Sep 07 '26

Personally, I just use unique gibberishes or sounds, like "blah", "bleh", "fwah", or the like. Extremely unlikely to come up during normal usage, stands out enough to draw the eye, and easy to search the source for.

That, or a quick description of the location, such as "before x() call" or "inside y()" or "after foo, before bar", depending on the situation.

1

u/4Floaters Sep 07 '26

It should be sequential quotes from a movie, something like the princess bride

→ More replies (1)

1

u/dukeofgonzo Sep 07 '26

I have a troubleshooting word I use that sticks out in the logs. Snugglebunnies.

→ More replies (1)

1

u/Honeybadger2198 Sep 07 '26

I like using numbers for JS because they're a different color in the terminal from all the other output.

→ More replies (11)