Hopefully "no" stand for number. And noSuccess is a counter starting from a predefined number of success at birth and down to 0 as your last non success.
TryAgain is something like
Sucess = (rand() > probForThisChallenge )
And improve is something like a lever up animation
Just pull the call to success out of the loop unless it has side-effects on the noSucess value. The loop has to check an extra uneccasary conditional. Improve() will only ever be called once in the loop at the last iteration.
noSuccess is never changed, you can tryAgain() and improve() all you want but noSuccess will be in it's initial value no matter what you do.
Of course Success is an illusion that's never defined anyway, so even hoping to improve() is just a lie people tell themselves to sleep better at night.
At the end of the day, either noSuccess is set to true and you are forced to tryAgain() until you are unexpectedly terminated, living with all the errors that are thrown at you without any hope to change it since the code has been written and compiled already, and you're just stuck in runtime until.. it just stops.
or noSuccess is set to false and you just glide to the runtime without a care in the world.
I tried to adjust it to make it at least have some semblance of legitimate code, but it just gets stupider the more I think about it. Was the call to Improve() supposed to happen after success? If so, should that have been inside or outside of the while loop?
This actually gets so many things wrong that I'm starting to think it's intentionally stupid.
96
u/[deleted] Dec 18 '18
Also, the #include makes me think C/C++, but the while statement isn't part of a function.
445
u/PUSH_AX Dec 18 '18
The indentation on the
improve();line 🤮🤮🤮300
u/apola Dec 18 '18
How are you supposed to succeed if you don't improve until you succeed?
65
u/Myrx Dec 18 '18
This tattoo needs to call
tryAgain().44
u/[deleted] Dec 18 '18
As a C programmer, I hate this
Also the indentation is hot shit
31
u/GYN-k4H-Q3z-75B Dec 18 '18
With include:
prog.c:1:18: fatal error: life.h: No such file or directory #include <life.h>Without include:
prog.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]While(noSuccess)^~~~~prog.c: In function ‘While’:prog.c:1:1: warning: type of ‘noSuccess’ defaults to ‘int’ [-Wimplicit-int]prog.c:3:2: warning: implicit declaration of function ‘tryAgain’ [-Wimplicit-function-declaration]tryAgain();^~~~~~~~prog.c:4:6: error: ‘Success’ undeclared (first use in this function)if (Success)^~~~~~~prog.c:4:6: note: each undeclared identifier is reported only once for each function it appears inprog.c:5:3: warning: implicit declaration of function ‘improve’ [-Wimplicit-function-declaration]improve();^~~~~~~prog.c:6:1: warning: control reaches end of non-void function [-Wreturn-type]}^19
u/here-to-jerk-off Dec 18 '18
is
Successglobal?Also, why is it title case, when
noSuccessis camel case?12
u/Deimos888 Dec 18 '18
I'm pretty sure he is web designer or just finished his first lecture on udemy ...
7
u/republitard Dec 19 '18 edited Dec 19 '18
What
life.hshould contain to make this a valid C program:6
u/blankman0230 Dec 18 '18
Ooof
6
u/oppai_suika Dec 18 '18
Real programmers use Skin theme
5
u/Nanexxo Dec 18 '18
// Algorithin of Suecess
5
u/kristoffernolgren Dec 18 '18
Only recruiters think this is a fun joke-form.
5
u/iusehttps Dec 18 '18
Clearly shows why it’s important to use spaces instead of tabs.
5
u/[deleted] Dec 18 '18
When life fails to compile and throws you 463 errors and 53489 error warnings
5
u/subject_usrname_here Dec 18 '18
I'm stuck in the infinite loop help
5
u/woundedkarma Dec 22 '18
4
u/sudojess Dec 18 '18
I agonised for ages on how to have a tattoo that represents "programming" without being something kinda crappy like this.
I just ended up with { } on my wrist.
Most languages use curly braces, so it seemed fitting, and it's reasonably clear what it represents.
I don't get why someone would want something this specific.
4
u/Smooth_McDouglette Dec 19 '18 edited Dec 19 '18
I tried to adjust it to make it at least have some semblance of legitimate code, but it just gets stupider the more I think about it. Was the call to
Improve()supposed to happen after success? If so, should that have been inside or outside of the while loop?This actually gets so many things wrong that I'm starting to think it's intentionally stupid.
3
u/Tom_Ov_Bedlam Dec 18 '18
Yikes!
3
u/MythDestructor Dec 18 '18
Where is this code supposed to go? There's no function.
3
u/shmuja95 Dec 18 '18
Where can I download the life library.
3
u/SkatingOnThinIce Dec 18 '18
If(failedTatoo) TatooOtherArm(); If(outOfArms) TatooButtCheek() Continue;
3
u/404meemr Dec 18 '18
improve(); is not a function
Null Pointer Wxception
3
u/ohawker Dec 18 '18
Build failed: 22 issues.
2
u/AustinMclEctro Dec 19 '18
How to spot not a software dev
2
u/the_dinks Dec 20 '18
nobody going to comment on the documentation?
//Algorithm of Successwow, really helpful.2
u/Not_A_Throwaway999 Dec 18 '18
/r/badtattoos
Those letters Jesus Christ
1
u/SingleSink Dec 18 '18
The shitty colors
1
u/[deleted] Dec 18 '18
I think it's cute!
1
u/ciaran036 Dec 18 '18
there's absolutely nothing redeeming about this stupid tattoo
0
u/[deleted] Dec 18 '18
[deleted] — view deleted comment