[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]
4chanarchives logo

more like this


Thread replies: 51
Thread images: 13

File: RGLFim0.png (131KB, 890x670px) Image search: [Google] [Yandex] [Bing]
RGLFim0.png
131KB, 890x670px
more like this
>>
>tfw
102 == "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')
>>
File: lebron james.png (433KB, 800x900px) Image search: [Google] [Yandex] [Bing]
lebron james.png
433KB, 800x900px
>>53908400
holy shit nigger. calm the fuck down
>>
>>53908373
Yeah... that's the joke... ????
>>
>>53908411
stay mad pajeet
>>
File: 1452097863267.jpg (39KB, 268x265px) Image search: [Google] [Yandex] [Bing]
1452097863267.jpg
39KB, 268x265px
>>53908373
>>53908405
ugh, when did the redditors start going to /g/?
>>
>>53908405

CONGRATULATIONS ANON YOU GET THE JOB!
>>
File: gigasmon.png (58KB, 253x303px) Image search: [Google] [Yandex] [Bing]
gigasmon.png
58KB, 253x303px
>>53908466
woah. how did you know?

You hacking me bro?????
>>
File: 1459387858325.png (82KB, 461x660px) Image search: [Google] [Yandex] [Bing]
1459387858325.png
82KB, 461x660px
>>
>>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
>>
File: 1436844419764.gif (2MB, 500x280px) Image search: [Google] [Yandex] [Bing]
1436844419764.gif
2MB, 500x280px
>>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;
}
}
>>
File: 1427224521810.jpg (41KB, 550x512px) Image search: [Google] [Yandex] [Bing]
1427224521810.jpg
41KB, 550x512px
>>53908695
>>
File: 1458915376002.png (134KB, 1100x693px) Image search: [Google] [Yandex] [Bing]
1458915376002.png
134KB, 1100x693px
>>
File: 1459084469453.png (199KB, 1079x753px) Image search: [Google] [Yandex] [Bing]
1459084469453.png
199KB, 1079x753px
>>
File: goldenlel.jpg (104KB, 343x343px) Image search: [Google] [Yandex] [Bing]
goldenlel.jpg
104KB, 343x343px
>>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?
>>
File: 1437680939295.jpg (132KB, 1325x1323px) Image search: [Google] [Yandex] [Bing]
1437680939295.jpg
132KB, 1325x1323px
>>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.
>>
File: left.png (17KB, 589x285px) Image search: [Google] [Yandex] [Bing]
left.png
17KB, 589x285px
>>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 :^)
Thread replies: 51
Thread images: 13
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y / ] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
If a post contains illegal content, please click on its [Report] button and follow the instructions.
This is a 4chan archive - all of the content originated from them. If you need information for a Poster - you need to contact them.
This website shows only archived content and is not affiliated with 4chan in any way.
If you like this website please support us by donating with Bitcoin at 1XVgDnu36zCj97gLdeSwHMdiJaBkqhtMK