r/badcode • u/OkPreference6 Coding The Declaration of Independance • Jan 07 '23
c Pointless while loop, no indentation and a missing closing curly bracket.
775
Upvotes
r/badcode • u/OkPreference6 Coding The Declaration of Independance • Jan 07 '23
297
u/[deleted] Jan 07 '23
I fucking hate these code ads, they are so childish and dumb.
132
u/ApprehensiveStar8948 Jan 07 '23
funny you didn't notice the function signature
40
u/[deleted] Jan 07 '23
Oh god, the closer I look, the worse it gets!
19
u/GianniPapetti Jan 07 '23
lmao
79
u/PositiveUse Jan 07 '23 edited Jan 07 '23
I mean, it’s a hackathon for crypto devs. 90% of crypto devs can only copy paste existing code and act like engineers.
11
u/Killfile Jan 07 '23
Literally could have done a date comparison in the while condition to tell me when registration ends.
18
u/[deleted] Jan 07 '23
Well, I'd say their diversion worked!
6
u/[deleted] Jan 08 '23
chatgpt could write this literally 8x better
8
u/maubg Jan 07 '23
+ using printf without actually using any format specifier, might as well just call puts instead
4
u/forcewill Jan 07 '23
:🤦♂️ at least use ChatGPT or watheaver to write the code for those dumbs ads
1
u/cool_Trumpet Jan 08 '23
They put div in curly brackets.
3
u/hawk_sq206 Jan 08 '23
// do not remove
5
u/sefms123 Jan 07 '23
bruh it looks like glsl for the "void main()"
2
u/TTachyon Jan 07 '23
void main
2
u/SuitableDragonfly Jan 08 '23
Also the main function is missing the mandatory
()and the argument list.1
u/daddyfatknuckles Jan 07 '23
i get it, its a double entendre with the word “hack”
1
u/einsJannis Jan 08 '23
Wtf
1
u/[deleted] Feb 08 '23
That's why they need the hackathon - to fix this broken code.
1
u/tangerinelion Jan 07 '23
Hackathons suck anyways.
0
u/[deleted] Jan 08 '23
[deleted] — view deleted comment