What does code monkey mean?

Also got anymore of this, pic related?

Attached: job_interview_failure.png (2752x4342, 742K)

Can you post the link to the original one, op? would like to have a go at it.

Don't have the link, just found this pic in one of Jow Forums threads

Anyone who does programming (coding) for a living

Attached: 1504136979008.png (1515x663, 116K)

>programming (coding)
programming =/= (((coding)))

LOL
can Jow Forums find all the odd numbers in 1 - 100?

this
however
how else would you solve this? by regexp?

for(i=0;i

>regexp
Sure, or anything not involving a billion if's

You could at the very least use arrays...

>How else would you solve this
That cap doesn’t even solve it. Not even close. It’s complete nonsense.
And yes regex is by far the most elegant solution.
But it’s also possibly to manually test by scanning from left to right and checking what each symbol is, keeping track of state if you wanna match exponential notation as well, without the result being a total code massacre, but it won’t be nearly as elegant as a regex solution.

>i%2 == 1

My fucking sides

>i%2 == 1

Attached: 1528771936548.jpg (581x603, 64K)

>I've never used shitty javascript

Don't embarrass yourself any further kiddo.

more like you've never done math

I don't think JS is the problem here
also noone said you should solve it in JS
>anything besides ifs
why would it be okay to use switch statements? or the array solution the other user posted? I get that it's a bit more advanced than if/else but it's inherently the same logic right? having to write up a bunch of letters and numbers and checking those against a string still seems like a meme to me.

Shit, a stupid way of doing it even if you don’t know any of the operators and want to brute force it with math is to do a for loop that starts at minus one and adds two on every iteration until i > 100

I bet most of those candidates are pajeets

modulu isn't part of math class :^)

nobody said it should be solved in JS, but that's what I chose to do a 1 liner in so I didn't have to define shit. and in order to do a 1 liner you have to make sure their modulu isn't going to fuck up like it does, randomly.

no argument against that. increasing in increments of 2 is smart. that's what I'd do for the 13 one.

>divisions are not part of math class

Not him but what's the problem with the math?

modulo is remainder, division si different
:^)

why is that wrong?

nothing. the javascript posted works 100% and will not fail in any way.
though it can be done faster by incrementing in 2s

it isn't. he's unfamiliar with the horrors of javascript

I'm pretty sure they taught modulo in high school.

wow works for me, you guys are retarded

Attached: Screenshot_20180618_034310.png (569x272, 14K)

Nobody said that it is wrong, just that adding 2 up from -1 is more efficient

user, are you, by any chance, retarded?

This one is shorter:
for(i = 1; i

very nice but wrong!
>tfw you do something to make it more efficient and get the answer wrong

am not the user but they taught us remainder in elementary but never modulo. not even highschool, I learned it about it through programming.
I'm also not trying to justify the user here, since modulo is one of the first things you learn to do in any programming online course

>how else would you solve this?
Loop through input, convert each character to int and compare it to the ASCII table

I think pic related is from that job interviewer guy that posts here from time to time using a trip.

I would sure love to see more of these

I'm not sure but I think his trip was something like "the.falcon1". He's from Eastern Europe or Asia iirc.

I've had interviews like this many times. Usually with Pajeets. I can see clearly on their CV they have CCNP certification, which is pretty impressive. Just to check I ask a simple question like "can you explain to me how traceroute works" and I've had more than 10 indian candidates be unable to answet that question while they had CCNP in CV. WTF...

If you are going to lie about your networking knowledge at least say you have just CCNA, at least then I can kinda believe you might have forgotten this part, but not someone with CCNP, that's an obvious lie. Best part is my manager and HR always underline and stress that "CANDIDATES NEVER LIE"... except they do, all the time...

not at all it was (i%2 == 1)
(i%2) //would have been enough

Some Yandere simulator code from the thread yesterday coming through.

Matter of taste.

Attached: 1529241294850.png (641x883, 37K)

Attached: 1529241385237.png (650x191, 16K)

Attached: 1529241057231.png (828x801, 135K)

Attached: 1529240993337.jpg (828x801, 102K)

that faggot is not credible at all
these questions are way too easy to be in an actual job interview
they were probably in the interview you have before the actual interview

Is this how the pro's do it?

Attached: Untitled.png (595x429, 17K)

Pros do:
import java.lib.numbers.factories.OddNumberFactory;
import java.lib.numbers.factories.OddNumberFactoryConfig;

OddNumberFactoryConfig oddConf = OddNumberFactoryConfig();
OddNumberFactory oddFact = OddNumberFactory(oddConf);
for (int i = 0; i < 100; i++) {
System.out.println(oddFact.nextNumber());
}

>Best part is my manager and HR always underline and stress that "CANDIDATES NEVER LIE"
80% of my application to my current job was filled with lies. I just made sure the important 20% was totally true.

Can someone explain the last code on the left for me?

I can do one liners in bash too
>for i in {0..100}; do if [ $(($i % 2)) -eq 1 ]; then echo $i; fi; done
Bash is the best programming language

Well if that's all it takes to filter out the shit then why not

it's a dumb assumption that your modulo condition always returns with rest 1, leaves room for error.
it would shit itself if i=2

I'm rather new to C, how would I do?
/* print all multiples of step between x and y */
void printodds (int x, int y, int step)
{
if (x > y) {
x = x + y;
y = x - y;
x = x - y;
}
if (x % step)
x = x + step - (x % step);
for ( ; x

>printodds
fuck, I kept the old function name

How the hell would x%2 return 2 though?

Somebody tell this poor bastard about switches

why would I ever need it to return 2?
the if condition triggers whenever x isn't itself a desired multiple and then rounds it up to the next valid multiple

Oh yeah I forgot how retardedly weak javascript's type is

>Made a boardgame
>Its all else ifs and thans, 2k lines or more
>Go to 4chans
>See yanderedevs code and people responses
A-ahah

>javascript
that's C tho

this was posted by a trip on this board called falcon something
these are their stories

clong clong

>this.Student.Wet
LMAO

The first step is to recognize there's room for improvement, user.

Attached: pepe as an anime girl.png (640x640, 36K)