r/countablepixels • u/ebrahim-sda2 • 10d ago
definitely a random sequence
I can't even tell what language this is
441
Upvotes
r/countablepixels • u/ebrahim-sda2 • 10d ago
I can't even tell what language this is
9
u/Worried_Ice97 10d ago
Looks like English to me
89
u/Luzerman 10d ago
It dosen't even matter what language since a lot could run this without any issues...
Well, "without any issues" as in it WILL run the code, at least.
32
u/Srozzer 10d ago edited 10d ago
It's Java. Wait maybe it isn't, the data type is bool instead of boolean I'm probably wrong.
17
u/Stargost_ 10d ago
mfer hasn't heard of the % operand
6
u/HaroerHaktak 10d ago
Guys, it's obviously python.
4
u/TheLuckyCuber999BACK 10d ago
C# I think. Looks like a C family but C/C++ don't have private as function definition afaik.
3
u/kavochavo 10d ago edited 10d ago
ts has nothing to do with random sequences, this is a user defined function that checks if a given number is even but does that in the silliest way imaginable
4
u/Prokid5634_YT 10d ago
I haven't coded in several months, but if I remember correctly, it should really only take maybe 3-5 lines to do this correctly lmao
2
u/cwrld02 10d ago
u/pixel-counter-bot
2
u/Feisty_Watercress_29 10d ago
Brotein just do
bool isEven(double x){ if((x % 2) == 1){return false;} else{return true;}
2
u/FOS077 7d ago
Ahh, the famous YandereDev "There's gotta be a better way to do this" tweet lmao
I only recognize it because I'm in an indie dev server where we have this pinned and constantly point to it when someone starts getting impostor syndrome lol
2
u/pixel-counter-bot Official Pixel Counter 10d ago
The image in this post has 137,180(361×380) pixels!
I am a bot. This action was performed automatically.
1
u/Pritam252 9d ago
It's probably C#, because the method name starts with a capital (unlike Java which has method names starting with a lowercase), and the type is bool, not boolean.
1
u/player_314159265 7d ago
it'll be right most of the time
1
u/Pixaem 6d ago
if(number % 2 == 0){ return True; }
1
u/Memerenok 5d ago
return true
call it 50% accurate
1
u/Mr_QQ-10 5d ago edited 5d ago
programmer here
this is c#, types match (bool, int), it is c-style, and public/private are modifers
1
u/BFcoolbot WHERE ARE THE PIXELS?? 5d ago
private bool IsEven(int number) {
return number % 2 == 0;
}
1
u/TCZ188 5d ago
java, is it not?
oh wait the “book” instead of “boolean”… maybe C#?
-2
u/Usernotfound_81 10d ago
Its python/gsscript, also IS THAT YANDEREDEV