r/countablepixels • u/ebrahim-sda2 • Oct 26 '26
definitely a random sequence
I can't even tell what language this is
442
Upvotes
r/countablepixels • u/ebrahim-sda2 • Oct 26 '26
I can't even tell what language this is
9
u/Worried_Ice97 Oct 27 '26
Looks like English to me
89
u/Luzerman Oct 27 '26
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 Oct 27 '26 edited Oct 27 '26
It's Java. Wait maybe it isn't, the data type is bool instead of boolean I'm probably wrong.
17
u/Stargost_ Oct 27 '26
mfer hasn't heard of the % operand
6
u/HaroerHaktak Oct 27 '26
Guys, it's obviously python.
4
u/TheLuckyCuber999BACK Oct 27 '26
C# I think. Looks like a C family but C/C++ don't have private as function definition afaik.
3
u/kavochavo Oct 27 '26 edited Oct 27 '26
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 Oct 27 '26
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 Oct 27 '26
u/pixel-counter-bot
2
u/Feisty_Watercress_29 Oct 27 '26
Brotein just do
bool isEven(double x){ if((x % 2) == 1){return false;} else{return true;}
2
u/FOS077 Oct 29 '26
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 Oct 26 '26
The image in this post has 137,180(361×380) pixels!
I am a bot. This action was performed automatically.
1
u/Pritam252 Oct 28 '26
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 Oct 30 '26
it'll be right most of the time
1
u/Pixaem Oct 30 '26
if(number % 2 == 0){ return True; }
1
u/Memerenok Oct 31 '26
return true
call it 50% accurate
1
u/Mr_QQ-10 Nov 01 '26 edited Nov 01 '26
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?? Nov 01 '26
private bool IsEven(int number) {
return number % 2 == 0;
}
1
u/TCZ188 Nov 01 '26
java, is it not?
oh wait the “book” instead of “boolean”… maybe C#?
-2
u/Usernotfound_81 Oct 27 '26
Its python/gsscript, also IS THAT YANDEREDEV