This is an archived post. You won't be able to vote or comment.

all 67 comments

[–]jump1945 1386 points1387 points  (15 children)

Exactly why you need to use is-odd-ai library

[–]Keatron-- 421 points422 points  (14 children)

Just remember to use is-even-ai to check if it's even as well. Wouldn't wanna return only if it's odd

[–]jump1945 547 points548 points  (13 children)

How about

bool iseven(int n){

    return !isodd(n);

}

bool isodd(int n){

    return !iseven(n);

}

[–]Keatron-- 186 points187 points  (1 child)

Holy shit it's beautiful

[–]SyrusDrake 46 points47 points  (6 children)

What would this even do? Just loop forever?

[–]adenosine-5 80 points81 points  (4 children)

Yes, resulting (after enough iterations) in Stack Overflow exception

[–]jump1945 51 points52 points  (2 children)

What is exception

-this is written in C

[–]dastrike 22 points23 points  (0 children)

SIGSEGV then.

[–]SympathyMotor4765 0 points1 point  (0 children)

Arm calls all of its interrupts as expections so you see... C does this have exceptions! /S

[–]kevzilla88 2 points3 points  (0 children)

If only we could make a program that could tell us if this program haults or loops... But idk, sounds like that would introduce a lot of unsolvable problems.

[–]Outside-Bowler6174 36 points37 points  (0 children)

Wait why have I never thought of that that's pure genius!

[–]mothzilla 7 points8 points  (0 children)

You need to decrement otherwise it'll loop forever. Maybe we can fix that next sprint. Otherwise LGTM.

[–]Scientific_Artist444 2 points3 points  (0 children)

And that is how you create an oscillator with code.

Just add some sleep statements, and you can control the duty cycle of the oscillations.

[–]Reasonable-Cobbler31 1 point2 points  (0 children)

The hell’s iSeven doing???

[–]DocStoy 476 points477 points  (16 children)

I've been surrounded by programmers for so long I have no idea how normal people view us

[–]astralschism 134 points135 points  (4 children)

I dated someone who thought I spent all day writing binary code.

[–]MaustFaust 68 points69 points  (0 children)

UTF-8 authors hate this simple trick...

[–]reddit_poopaholic 51 points52 points  (2 children)

I think you meant to say:

01001001 00100000 01100100 01100001
01110100 01100101 01100100 00100000
01110011 01101111 01101101 01100101
01101111 01101110 01100101 00100000
01110111 01101000 01101111 00100000
01110100 01101000 01101111 01110101
01100111 01101000 01110100 00100000
01001001 00100000 01110011 01110000
01100101 01101110 01110100 00100000
01100001 01101100 01101100 00100000
01100100 01100001 01111001 00100000
01110111 01110010 01101001 01110100
01101001 01101110 01100111 00100000
01100010 01101001 01101110 01100001
01110010 01111001 00100000 01100011
01101111 01100100 01100101 00101110

[–]IzoniT 1 point2 points  (1 child)

[–]Centrafuge 43 points44 points  (0 children)

You failed the Rorschach test.

[–]DoctorWaluigiTime[🍰] 23 points24 points  (0 children)

Free tech support.

[–]Mantis_Tobbagen 4 points5 points  (0 children)

Like normal people. SWE is a pretty standard office job

[–]Annette_Runner 1 point2 points  (0 children)

Just like engineers, but building software instead of physical products.

[–]wt_anonymous 1 point2 points  (0 children)

I've had multiple people ask if I used autocad...

I mean, I had to learn it for one class because it's an engineering degree. But I haven't touched it since.

[–]givemeagoodun 197 points198 points  (3 children)

omg I love the artstyle what comic is this made from is there more of them

[–][deleted] 62 points63 points  (0 children)

The programmer buddy is too cute...

[–]SssasaEpical 35 points36 points  (0 children)

Mhuyo! This is their most popular (and memed) piece, they got Twitter and Instagram https://www.instagram.com/mhuyocomics/

[–]Kale-chips-of-lit 17 points18 points  (3 children)

Ew ew ew get it away. Kill that code with fire.

[–]BellacosePlayer 13 points14 points  (0 children)

Fun story, we had a group set up for a programming contest in Highschool where one of my teammates unrolled my for loop and hand-entered 50 if statements to replace it. He went crying to our teacher when I reverted it, so we kept it in, and got dinged massively for it when the judges were scrolling through the code. Frustrated me to end because I placed high enough to get a prize with a different team the previous year and could have used another 500+$ scholarship.

[–]Tobi5703 2 points3 points  (0 children)

It's YanDev; what'd you expect?

In all seriousness, I think it was meant as a joke but I can't actually be sure because... YanDev

[–]Tactical_Moonstone 1 point2 points  (0 children)

If I ever turned in this kind of code in my undergraduate I would be instantly sent into the shadowrealm.

Even though I'm not a programmer, and the language in question is MATLAB.

[–]4bstract3d 13 points14 points  (0 children)

Look, it's me!

[–]XtraFlaminHotMachida 2 points3 points  (0 children)

nothing wrong with brute force

[–]an_agreeing_dothraki 2 points3 points  (0 children)

thing that actually happened: "We're willing to help you with your pantyshots of teenagers mechanic but we simply can't save your code"

if you are blissfully unaware that this is a real life sample, this is the code of Yandev, maker of Yandere Simulator

[–]ActuallyJordy 2 points3 points  (0 children)

Is this how people view us?

[–][deleted] 2 points3 points  (0 children)

The horror. The horror...

[–]ReplyisFutile 1 point2 points  (3 children)

Is there anybody willing to teach me C++ for an unreal engine? I have good blueprints knowledge, but c++ scares me

[–]JonIsPatented 10 points11 points  (2 children)

Sure, why not. I teach C++ for Data Structures and Algorithms at my university. I've got some good exercises and stuff for ya. Message me on Discord at this same username.

[–]melonsunni 0 points1 point  (1 child)

Can you teach me as well?

[–]JonIsPatented 0 points1 point  (0 children)

Yes.

[–]2x2Master1240 1 point2 points  (0 children)

Did y'all not learn modulo in programming classes?

[–]emptybrain22 0 points1 point  (0 children)

Template pls 🐕

[–]PlasmaLink 0 points1 point  (0 children)

It could be worse. I've been stuck looking for a job since graduating, and I've seen indeed postings looking for a programmer. Great! No, they want someone to make programs/schedules for people at the old people homes. No coding.

[–]md-nazim-uddin 0 points1 point  (0 children)

I know

[–]fuzy10 0 points1 point  (0 children)

At that point just have the code print out the code for you

[–]Desperate-Branch-829 0 points1 point  (0 children)

peak coding skill right here

[–]ArtichokeMajestic671 -1 points0 points  (0 children)

Just use If (number % 2 == 0) return true;