r/badcode • u/Nilstrieb • Aug 28 '21
c++ I think non-suspending breakpoints are the least of your concerns if your code looks like this
78
Upvotes
r/badcode • u/Nilstrieb • Aug 28 '21
16
u/crass-sandwich Aug 29 '21
Give them props for at least trying with the indentation
8
u/OkService6 Aug 29 '21
ok but to be fair dealing with time in any other way than unix time is a fucking mess
5
u/TheSuperWig Aug 29 '21
You've mistakenly marked this as C++ instead of Lisp /s
7
u/[deleted] Aug 28 '21
I can’t even read what’s happening here too well.
2
u/MurdoMaclachlan public boolean isInt(int i) { return true; } Aug 28 '21
Image Transcription: Screenshot
[A screenshot of a "Tip of the Day" popup on an IDE, displaying a tip with a code example beneath it, and some more text below that. The tip reads as follows:]
If you want to log program state during debugging, use non-suspending breakpoints. Select the expression that you want to log, hold Shift, and click the gutter at the line where the expression should be logged.
[The code beneath it reads as follows:]
[The text beneath the code reads as follows:]
In the example, 1080 * (HoursElapsed % 24) + PartsElapsed % 1080 will be logged upon reaching line 54.
I'm a human volunteer content transcriber for Reddit and you could be too! If you'd like more information on what we do and why we do it, click here!
3
u/SnoogySocks Aug 29 '21
They need to remove the unnecessary brackets it’s hurting my eyes
1
u/Voltra_Neo Aug 31 '21
What in the name of sanity is this
1
u/BarryFruitman Sep 02 '21
Even the debugger can't parse that code.
1
u/BarryFruitman Sep 02 '21
Happy
ConjunctionDayeveryone1
u/BarryFruitman Sep 02 '21
You need to go to Hebrew school to understand this code