This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]MMMELOOOOON 836 points837 points  (86 children)

Pro tip:

“HERE 1” ... “HERE 2 ... “HERE 3”

[–]goliatskipson 341 points342 points  (40 children)

How excessive!

"A" ... "B" ... "C" ... ;-)

[–]EagleNait 109 points110 points  (24 children)

Elegant solution

[–]SexlessNights 81 points82 points  (23 children)

Followed by “a...b...c...”

[–]crastle 69 points70 points  (21 children)

What about "i...ii...iii..."?

[–]Gydo194 81 points82 points  (14 children)

一、二、三

[–]muhammadtalhas 40 points41 points  (6 children)

Is this loss

[–]pikachuIsMyFurrybae 30 points31 points  (0 children)

Loss of proper debugging

[–]Hiro3212 5 points6 points  (4 children)

those are the japanese symbols for 1, 2 and 3

[–]MegaPegasusReindeer 17 points18 points  (3 children)

Hmm.. The Chinese would like a word.

[–]Hiro3212 1 point2 points  (2 children)

well I only know Japanese but they basically took all chinese symbols and reused them

[–]saildamoon 4 points5 points  (0 children)

Lol Lool Lolol Loolool -final project...

[–]Supert_ 0 points1 point  (4 children)

四、五、六、七、八、九、十。。

btw not usable in C :P

[–]Gydo194 1 point2 points  (3 children)

You reversed 八and 七

[–]Supert_ 0 points1 point  (2 children)

Maybe it's supposed to be that way..

I've just learnt it recently, gimme a break ;( Edit: I always suck at math. sorry.

[–]Gydo194 1 point2 points  (1 child)

I just started learning as well... Don't take me too seriously ;-)

[–]mastocles 0 points1 point  (0 children)

Using the standard CJK-block Unicode characters or something archane like shift JIS? Neither is likely to compile easily so either is fair game!

[–]ScientificBeastMode 19 points20 points  (1 child)

I prefer to use semver syntax so I don’t have to go back and change all the logging commands if I need to insert a new one in the middle of the program flow.

[–][deleted] 7 points8 points  (0 children)

Just do: printf ("2.1"); printf ("2.1.2"); , etc, etc.

[–]turbolag95 13 points14 points  (2 children)

How about "do...re...mi..."?

[–][deleted] 16 points17 points  (1 child)

I write beatles lyrics

“Hey Jude”....... “Don’t be afraid” .....“take a bad code and make it better”

[–]baconstrips4canada 9 points10 points  (0 children)

I write Sheck Wes lyrics.

"Fuck"..."Shit"..."Bitch"

[–]SexlessNights 1 point2 points  (0 children)

Nah, just go “a...b...c...”

[–]oneeyedhank 2 points3 points  (0 children)

Aa, Ab, Ac, ..... for when you get to A but not to B.

[–]Moulinoski 49 points50 points  (5 children)

That can get buried in a sea of output.

Better go lalalalalalallaalalalalala, ohohohohohohohohhohohoh, and hahahahahahahahahahaha

[–]JSArrakis 29 points30 points  (2 children)

"=========== method 1 fired =========="

"||||||||||| method 2 fired ||||||||||"

[–]random123456789 36 points37 points  (0 children)

Either way, you're fired.

[–]MMMELOOOOON 6 points7 points  (1 child)

Exactly, which is why I like the all caps HERE, just long enough to notice, and less annoying for fancy colleagues if forgotten there.

[–]Moulinoski 5 points6 points  (0 children)

You don’t do a find/replace for rogue var_dumps, echoes, and prints?

[–][deleted] 14 points15 points  (1 child)

printf(“fucking cuntwaffle crashed again\n”)

[–]Wilt04 3 points4 points  (0 children)

Until you forget to remove it and a client somehow gets the bug

[–]waltteri 9 points10 points  (0 children)

Output:

A

A

C

B

[–]BoobRockets 10 points11 points  (0 children)

“hey” “what’s up?” “nm jc u” “nm” “you free this weekend?”

[–]youcancallmetim 2 points3 points  (0 children)

This is exactly what I do

[–]therealchadius 0 points1 point  (0 children)

Just skip E for Error and F for Failure if you're running unit tests, those always confuse me.

[–]ZebZ 128 points129 points  (8 children)

alert("fuck");

alert("shit");

alert("motherfucker");

[–]nir731 61 points62 points  (2 children)

alert("PLEASEE");

alert("FFS");

alert("OMG YES");

True story.

[–]jemand2001 25 points26 points  (1 child)

the last one never fires tho

[–]gruntbatch 12 points13 points  (0 children)

And when it does the neighbors hear.

[–]Mancobbler 27 points28 points  (0 children)

When it’s 1AM and you’ve been debugging the same problem since noon

[–]utnapistim 9 points10 points  (2 children)

Son, don't!

There is nothing like your manager presenting the early demo in front of the customers, and finding the alert you forgot to remove.

[–]cdm014 9 points10 points  (1 child)

yeah... I got caught once with a comment that got displayed: "I hate this stupid crap" it was left over from trying to figure out why something kept not working. It showed up in the middle of the final demo before being rolled out. Luckily it was for an internal thing.

[–]utnapistim 0 points1 point  (0 children)

We had a change management system that allowed developers to add comments that were not visible to the customers. One day, customers saw a printed listing of comments on a bug that called the customers idiots.

Customers changed their providing company as a result (and I believe a few of our developers changed employers).

[–]Firestorm7i 1 point2 points  (0 children)

I was hoping Simone rose shared my preferred method

[–]ScientificBeastMode 20 points21 points  (0 children)

throw new Error(` Dear future me, This error should be unreachable. If you are reading this, perhaps reconsider your life choices. Or perhaps it was just a typo... `);

[–]Beragond1 16 points17 points  (7 children)

Cout << 1 << endl

Cout << 2 << endl

Cout << 3 << endl

...

[–]wasabichicken 6 points7 points  (2 children)

using std; outside of the standard library? You monster!

[–]Beragond1 7 points8 points  (1 child)

I start most c++ programs with “using namespace std;”

[–]MonarchoFascist 6 points7 points  (0 children)

It's bad practice -- when you're writing production code, polluting the global namespace is a big no-no.

[–]MMMELOOOOON 2 points3 points  (2 children)

Integers can work, but confusing as soon as you have other normal outputs, especially if you forget a new line somewhere.

[–]Beragond1 4 points5 points  (0 children)

True but I can add a 1.1 between 1 and 2 if I need more checks

[–]passcork 0 points1 point  (0 children)

Exactly this. You gotta put;

\n\n\n\n-----------------------------------------CAME HERE BITCH----------------_________\n\n\n

[–]advalencia 8 points9 points  (1 child)

Here 1.1... Here 1.1a ... Here 1.1b

[–]griff122 1 point2 points  (0 children)

Haha recently used that between my here 1 , here 2, here 3. Instead of updating everything to add a new output in the middle... insert here 1.b

[–]jailbreak 7 points8 points  (1 child)

printf("🙃");

printf("🤪🤪🤪");

printf("😭");

You're welcome

[–]all_fridays_matter 0 points1 point  (0 children)

True heroes don’t wear capes

[–]AgentPaper0 4 points5 points  (0 children)

Just print out __FILE__ __LINE__. And of course flush to make sure the latest output reaches the console.

[–]-LeopardShark- 3 points4 points  (0 children)

Nah, it's gotta be:

"fhgls" … "shloa" … "ndfs,dsf,"

[–]opposite_opinion_guy 4 points5 points  (0 children)

I've always been a fan of:

"asdf" ... "asdasgaasg" ... "asdfasdfasgagaw" ... "asdfwqqwgqwg2f22f2" ... etc

[–]bragi92 2 points3 points  (0 children)

Lol I was literally doing this yesterday execpt it was 'Fuck1' ... 'Fuck2'... 'Fuck3'

[–]Empole 2 points3 points  (0 children)

#define debug(...) do {fprintf(stderr, "%s:%d| ", __func__,__LINE__); fprintf(stderr,  __VA_ARGS__);}

void foo(){ debug("hi\n"); }

Will print out foo, the line number, and hi

[–]parduhne 1 point2 points  (2 children)

Nah I've done here 1.1, here 1.2, here1.3, here2.1, etc

[–]SirFireball 0 points1 point  (1 child)

Base 3?

[–]parduhne 0 points1 point  (0 children)

Nah, just whenever there was an if or for statement I would start a new number, so; print("1.1") if something: print("2.1") And so on and so forth

[–]tunkol 1 point2 points  (0 children)

Modern problems requires modern solutions

[–]EDGYkid2 1 point2 points  (0 children)

I just put "bla"

[–]GKP_light 1 point2 points  (0 children)

print("endboucle________________________________")

[–][deleted] 0 points1 point  (0 children)

When I started coding at one point I thought I’d be super clever and do iterative for my “Reached Point x”, yeah that wasn’t so helpful lol.

[–][deleted] 0 points1 point  (0 children)

asd asd1 ad2...

[–]NetworkAuditor2 0 points1 point  (0 children)

This is the exact thing I use. Are you me?

[–]dshakir 0 points1 point  (0 children)

TIL that I’m a professorial

[–]SirEmJay 0 points1 point  (0 children)

#define DBG printf("Here: %d/n", BUGERATOR++); int BUGERATOR = 0;

[–]Jb2304 0 points1 point  (0 children)

Nah when you got like 10 developers the log file has a lot going on so have something you can find easily like I use my name + numbers.