more like this
>tfw102 == "Your number is odd!"
getTomorrowsDate() {
sleep(86400)
getCurrentDate()
}
>>53908373
Woah nice job dude master programmer you figured out the one test case in which this program fails nice job dude you must be in your SECOND semester at community college at LEAST woah
>>53908359
Why not just set it to multiples of 2 then rest odd?
>>53908359
Us
If n(the number)/2 mod 1 !=0
Print('odd numbr')
>>53908400
holy shit nigger. calm the fuck down
>>53908373
Yeah... that's the joke... ????
>>53908411
stay mad pajeet
>>53908373
>>53908405
ugh, when did the redditors start going to /g/?
>>53908405
CONGRATULATIONS ANON YOU GET THE JOB!
>>53908466
woah. how did you know?
You hacking me bro?????
>>53908359
>tfw I'm actually in that level. I was better, but not anymore.
>>53908695
nice
>>53908695
I've heard of this one. Wow
>>53908695
How easily can this kind of malicious code be ran on Linux? Can anything stop a program before that kind of shit executes?
>>53909156
As easily as it could be ran on windows, it can do whatever it wants if you give it root/administrator permission
>>53908392
more like this
>>53908695
This one gets me everytime
>>53908359
MODS
>>53908405
That university degree must have done you something boy!
if(boolVar == true || boolVar == false) {
switch(boolVar) {
case true:
return true;
break;
case false:
return false;
break;
default:
return boolVar;
}
}
>>53908695
>>53909381
>cd: no such file or directory: code
>>53909381
shit nigger... I know ppl like this
>>53908405
You can't just make it
if( n % 2 !=0 )
print("odd number");
?? or did I just take some bait? Both our codes do the same thing, right?
>>53909390
>mfw he uses the version of the web that is program-free, because software has of late been written exclusively for it.
Does doing shit like hacker rank help avoid this kind of meme code
>>53909390
This guy tried to fight quads.
>>53909476
Just learning your operators helps avoid this kind of meme code.
>>53908359
Little thing I did at work after our bosses got pissed at the retards they hire
>get asked to create a test
>I have no degree and program as a hobby
>we hire new programmers out of college
>make fizzbuzz a requirement
>test every programmer currently hired.
>two people pass out of 30+ programmers
It was fucking pseudo code, you spent four fucking years learning this shit how can you not know about mod.
>>53909350
????.... :0
...???
I would have to be high. There might be a legit concern about conversations because we can't see the type of boolVar here. But it's mostly madness.
>>53909549
Answer in psuedocode? ; ( That hurts my economyjimmies.
>>53909549
i hope every software company does this, I don't want to work with retards in the future
>>53909555
It's javascript, vars are loosely typed. The code does the same as:return boolVar;o.O
>>53908695
Wasn't there something like this in the Steam Linux client?
>>53909549
>>53908695
rogue whitespace is hard to spot
>>53909156
>How easily can this kind of malicious code be ran on Linux? Can anything stop a program before that kind of shit executes?
Yeah, it's called access control: in particular, you want to look up mandatory access controls (like SELinux).
>>53909156
ubuntu pretty much stops rm -rf / with a explicit warning
>>53909733
The most painful part is that the person used npm.
>>53910053
that's the point
node programmers just import a load of shit and call them instead of writing basic code
http://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
If (a < b && b > a)
>>53908405
>>53909440
this series of posts makes my head hurt
>>53909733
this is kind of beautiful, in its own special, retarded way
>>53909629
No it doesn't. If boolVar is neither true or false, then it doesn't return anything.
>>53908400
>rage for no reason.
>rags on people for being in community colleges.
looks like someone didn't get into uni because they were too stupid
def decode(self:object, string: str, min_confidence: float=0.5) -> str:
if not isinstance(string, str):
return string
try:
string = string.encode('utf-8').decode('utf-8')
except UnicodeEncodeError:
string = string.encode('utf-8', 'surrogateescape')
encoding = chardet.detect(string)
if encoding['confidence'] > 0.5:
return string.decode(encoding['encoding']).encode('utf-8').decode('utf-8')
return string
Python function I wrote to decode Usenet headers :^)