Email or username:

Password:

Forgot your password?
Top-level
hotkey (Zoé)

@0xabad1dea to quote that awful manager I used to have: "programming is just a bunch of IFs."

They just missed a few here.

@malcircuit

6 comments
Josh

@hotkey Imagine if it *was* a bunch of IFs. It would be so gd difficult 😳

wakame

@krnlg @hotkey

The fun part with that manager is that they apparently didn't understand what they were saying.

So you have 10 ifs... that means 1024 paths through that piece of code... all which have to be considered and tested.

With 20 ifs it's 1048576 paths.

"Yes, I hold a system of several billion states in my head while coding. What do you, manager person, do all day?"

Alexander The 1st

@wakame @krnlg @hotkey "Dr. Strange's job of 'Looking ahead in Infinity War to find the specific set of battle decisions they had to take to get to the one universe where they beat Thanos' is basically what I do all day, every day, without a Time Stone.

Can I get paid at *least* a Dr. Strange's level of salary if you're correct that this is what you're saying about programming being a series of if statements?"

Alexander The 1st

@wakame @krnlg @hotkey "Pay me more than Dr. Strange, and I will leave comments in my code where 'Tony Stark has to survive so that he solves our universe's version of time travel and then proceeds to steal the Infinity Stones from Thanos after Thanos stole them from an Infinity Gauntlet, that he made to bring people back, so that Iron Man can snap Thanos out of existence.'.

For an yearly bonus, I'll add that Thor should 'Aim for the head.'"

Dan Neuman

@krnlg @hotkey And GOTOs. Or your code would be billions of lines long to handle repetitions.

Josh

@dan613 That's what we have reset buttons for - to start again 🙂

Go Up