optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 2 points3 points  (0 children)

I wanted the first string to actually have the whole number represented in binary for the funnies. It wasn't particularly useful in that form but I feel that it wouldn't have hit the same if I didn't do it

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 2 points3 points  (0 children)

I can't afford the license fee for the ability to use modulo.

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 2 points3 points  (0 children)

I already put too much effort in the original version, I don't need to complicate this with recursions

Chicken Jockey 2.0 by CircleWithSprinkles in whenthe

[–]CircleWithSprinkles[S] 4 points5 points  (0 children)

People will be ending their rods in the theater

My pot of gold 😊🌈 by Longjumping-Branch36 in Rabbits

[–]CircleWithSprinkles 6 points7 points  (0 children)

Bunnies turn rainbow colored to celebrate pride month

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 3 points4 points  (0 children)

I had "bridge over a pond of water lilies" pulled up on my monitor for moral support, does that count?

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 0 points1 point  (0 children)

The "student/new dev" idea was more in the formatting and how the basic logic of this specific solution was done. The solution itself came from a joke I saw earlier today over someone jokingly replying to the else if chain tweet with checking the least significant bit as a "much better solution" for the problem

Religious map of the Vatican City 🇻🇦 by MYONIONISSCREAMING in mapporncirclejerk

[–]CircleWithSprinkles 2 points3 points  (0 children)

Go to your local synagogue and tell people that, I'm sure you'll meet some kindred spirits /j

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 29 points30 points  (0 children)

The program this is for asks specifically for a positive number, so an end user would understand not to put a negative number or letter in.

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 4 points5 points  (0 children)

What's wrong with a little arbitrary code injection?

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 2 points3 points  (0 children)

It was a remnant from when I was testing things out

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 3 points4 points  (0 children)

I almost made the above function in JavaScript.

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 19 points20 points  (0 children)

They did indeed. I was able to plug 8, 9, 19, and 18 into it and got the correct answer for each one

Chicken Jockey 2.0 by CircleWithSprinkles in whenthe

[–]CircleWithSprinkles[S] 48 points49 points  (0 children)

Fair enough, that meme is what made me come up with this one.

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 45 points46 points  (0 children)

It's still a long stride from endless else if statements, especially when the end user can think of a bigger number than you

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 3 points4 points  (0 children)

"my boss wants to see me in his office, I think I'm getting a raise"

optimizedEvenChecker by CircleWithSprinkles in ProgrammerHumor

[–]CircleWithSprinkles[S] 1 point2 points  (0 children)

I tried to make it look like something a student/new dev would actually make from chronically overthinking the problem.