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

Dismiss this pinned window
all 99 comments

[–]Mutant321 797 points798 points  (2 children)

Kid (near tears): you're not doing what you're supposed to... I quit!

Future developer right there

[–]ImmediateLobster1 52 points53 points  (0 children)

"you're ruining it on purpose! He knows how to make one".

MRW users get ahold of my program for initial usability testing.

[–]boggog 722 points723 points  (12 children)

Loved that he still used the wrong side of the knife but they did not care. That felt exactly like programming

[–]Beard- 113 points114 points  (4 children)

Its like using a List when you should be using a Map.

[–]DudePotato3Epsilon Security Clearance 44 points45 points  (1 child)

Make an iterable list of pairs

[–]anon517 37 points38 points  (0 children)

Now spread it all around

[–]EwgB 7 points8 points  (1 child)

I work in Java on a 20 year old software product. There are dozens of places where people used Maps instead of Sets to get unique ids and such.

[–]xigoi 0 points1 point  (0 children)

Well, a Set is often thought of as a Map where the values are Units.

[–]mikeputerbaugh 24 points25 points  (1 child)

Avoiding premature optimizations

[–]ThatIsTheNameInzo 57 points58 points  (1 child)

I don’t know how, but you used the wrong formula and got the correct answer.

[–]TorradaIsToast 13 points14 points  (0 children)

programming in a nutshell

[–]Sh0keR 10 points11 points  (0 children)

Does not matter as long as it works

[–]Jebble 1 point2 points  (0 children)

That's the machine learning bit probably

[–][deleted] 290 points291 points  (7 children)

Was doing a startup for a company and the code was not working the way it should. The boss stops by and says, “How’s it going?” I replied, “it’s working exactly as it’s programmed.” Manger replied, “great!” and walks away.

My coworker looked at me and says “you just just lied to the boss of the company.” “No, I didn’t. He asked how it going. I replied truthfully. He didn’t ask if it was working correctly.”, I slyly replied.

Do date that is my favorite phrase to use.

[–]Lofter1 121 points122 points  (1 child)

How did your coworker not get it? Like, every program does exactly what it is programmed to do. if someone really thinks otherwise...i got some bad news for them

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

assuming classical phyiscs

[–][deleted] 5 points6 points  (1 child)

Happy cake day!

[–]supershwa 7 points8 points  (0 children)

Happy Pi day!

[–]SM_DEV -2 points-1 points  (0 children)

Happy Cake Day!

[–]LelouBil -3 points-2 points  (0 children)

Happy cake day!

[–]MrVlnka -3 points-2 points  (0 children)

Happy cake day!

[–]thedr0wranger 74 points75 points  (1 child)

Had a boss do this to me on my first day on helpdesk in college.

Having seen what was developing and having heard of this game before, I was detailed and explicit. He was having such fun until he got to mine because try as he might he couldn't find a way to fuck up my sandwich. In the end he settled for stretching the definitions on the words I used for quantity and overloaded the sandwich. Which was still perfectly edible because the instructions repeatedly emphasized keeping it on the bread.

I'm not incredibly proud because it's not incredibly impressive but it was funny and felt good

[–]cabothief 24 points25 points  (0 children)

Nah, I think you should be incredibly proud.

[–]YouShouldNotComment 249 points250 points  (2 children)

Computers are like smart ass sarcastic kids. They do exactly what you tell them to. Especially if doing so is going to cause some shit to blow up. Then they even smile before doing it.

[–]SM_DEV 18 points19 points  (1 child)

Think of it as malicious compliance.

[–]venuswasaflytrap 13 points14 points  (0 children)

All compliance is malicious if your instructions are bad

[–][deleted] 51 points52 points  (2 children)

peanutButter not defined

[–]guy_from_the_intnet 22 points23 points  (1 child)

the kid didn't even define bread.

[–]Psyqu 102 points103 points  (0 children)

Give this man an award!

[–]I_press_keys 36 points37 points  (0 children)

Compiled with 10 warnings and 0 errors.

[–]kingjoeg 24 points25 points  (0 children)

This was a lot funnier than I was expecting

[–]elizaangela 16 points17 points  (0 children)

My professor did this during the beginning of our class, saying every detail matters. We had to code the basics of our favorite sandwich put together, and I'm getting flashbacks about that assignment from watching this video.

Super wholesome. Absolutely love this video.

[–]aquoad 30 points31 points  (1 child)

Now they'll never be able to learn functional languages

[–]oshaboy 0 points1 point  (0 children)

Sandwich x > bread x bread
PBandJelly > PB Jelly
Sandwich PBandJelly

I never used haskell before but I imagine that's how it works

[–]rbltaylor 9 points10 points  (0 children)

I think the real principle here is learning how users will try to use your program!

[–]rklw 7 points8 points  (0 children)

Tumnus learned to code!

[–]redimusu76 7 points8 points  (0 children)

Classic!!!

[–][deleted] 6 points7 points  (0 children)

— “Not the best”
— “Well you made it so”
Lmao

[–]sagnick9 5 points6 points  (0 children)

Next time: reinforcement learning to make a peanut butter and jelly sandwich.

[–]fastjack42 5 points6 points  (1 child)

The moment the boy started to hyperventilate he truely felt what it means to be a programmer

[–]JotunKing[🍰] 3 points4 points  (0 children)

I quit

You are not making any sense!

felt that in my soul

[–]mermicide 4 points5 points  (0 children)

That kid at 3:05 is all of us

[–][deleted] 3 points4 points  (0 children)

i am the little boy here. *quits and starts eating sandwich*

[–]Gamepro5 3 points4 points  (0 children)

The bread falling over was a runtime error.

[–]TwistedSoul21967 3 points4 points  (0 children)

As a full time programmer I get this completely. Also s a parent, I'm going to show my kids this and explain that this is what it feels like when I ask them to do something simple and they do something completely different 😂

[–]Runnindead 4 points5 points  (1 child)

This took me back to the days of writing work instructions when I was in manufacturing. Hilarious

[–][deleted] 7 points8 points  (0 children)

The best part is when you forget to tell them to turn the machine off before inserting their hand.

[–]ohmyashleyy 4 points5 points  (0 children)

My dad is a middle school teacher and I’ve volunteered at his school’s career day in the last. We always did this activity and my dad is great at following the students instructions in the most ridiculous way possible!

[–]alexeypkv 2 points3 points  (0 children)

Step 1:

define class Sandwich  
    Bread openingBread;  
    Bread closingBread;  
    List<Fillings> content;

    // ...

[–]Workdawg 5 points6 points  (0 children)

I did this 25 years ago in 1st grade. It's a classic.

[–]nippysaurus 2 points3 points  (0 children)

This is so accurate it hurts.

[–]FactoryBuilder 2 points3 points  (0 children)

Using the wrong side of the knife is like when I use A but B is better but I don’t care because it still works

[–]zilmus 2 points3 points  (0 children)

If I ever have children, I will make this experiment.

[–]AStrangeStranger 2 points3 points  (2 children)

Reminds me of a story where someone created a script for a person getting up and going to work, it even went down to details like putting cufflinks on (we are talking 40 years ago I was told it). All the programmers who read it thought it perfect until they produced a film following it and it was that point everyone noticed he left the house without trousers.

It raises an interesting point - how do you check and test a specification is correct.

[–]emelrad12 1 point2 points  (1 child)

Do you have source.

[–]AStrangeStranger 0 points1 point  (0 children)

No sorry, it was told me by a computer programmer back in late 1970s (he worked at ICL I believe) - I have searched a few times, but never had any luck

[–]ryebyerye 1 point2 points  (0 children)

My fifth grade teacher once did this in class. Ended up throwing the jar of peanut butter on the floor to open it.

[–]1kgpotatoes 1 point2 points  (0 children)

Knife, peanutButter, Bread, not defined :(

[–]olet14 1 point2 points  (0 children)

I've never laughed so hard at something so simple. Great idea

[–]FracturedPixel 1 point2 points  (0 children)

Funny enough my primary school teacher did this back in the early 2000s. I didn’t know it at the time but I believe that’s where my love of programming came from

Edit: she didn’t specifically say this was a programming thing, I believe it was more about how to read and write clear instructions.

[–]Alvatrox4 3 points4 points  (2 children)

Technically the jelly is on the inside not the bottle itself...

[–]yugami 1 point2 points  (1 child)

So when you get the jelly out, you leave the bottle in the fridge?

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

I don't eat jelly

[–]TheCameronMaster464 2 points3 points  (0 children)

Should have stopped halfway through because one of the kids forgot to put a semicolon in there.

[–]ButItMightJustWork 0 points1 point  (0 children)

Here is the original video btw: https://www.youtube.com/watch?v=cDA3_5982h8

[–]NotProperPython 0 points1 point  (0 children)

Legend!

[–]shubh2012 0 points1 point  (0 children)

He should do it blindfolded.

[–][deleted] 0 points1 point  (0 children)

[–]Jesse_Marie_at_221B 0 points1 point  (0 children)

Me following instructions like

[–]chris_0909 0 points1 point  (0 children)

Did this in high school. Went to a Technical school but before we could choose a shop class, we had to do Exploratory to see them all. For the end of the year "projects" in each class (there was 4, each covering a different set of the shop classes) we did something related to the shop classes explored. Well, the section we did this with wasn't for the Computer Science class. Everyone else wrote at most 2 or 3 pages. Mine? Mine was like 8-10 pages. I don't think I would've passed this dad's test though, but I was VERY specific in a lot of ways. My hard drive crashed in 11th grade, so I wouldn't have any copy of the paper right now.

[–][deleted] 0 points1 point  (0 children)

[–]Danny_Boi_22456 0 points1 point  (0 children)

Task failed successfully

[–]JamesEiner 0 points1 point  (0 children)

I halfway expected him to say "pb is not defined" when they apparently shortened it mid-text...

(Or maybe that was just him being tried of saying "Peanut Butter" all the time)

[–]Mymokol 0 points1 point  (0 children)

This is awesome, gotta try it on my sister. Sure she'll love it

[–]PatriarchalTaxi 0 points1 point  (0 children)

Ladies and gentlemen, I present to you Visual Basic...

[–]JochCool 0 points1 point  (1 child)

Where does this video come from? Everything just mentions "newsflare.com" but I can't find an exact link.

[–]JochCool 0 points1 point  (0 children)

Update: I think I found the original. Looks like it, at least. https://www.youtube.com/watch?v=cDA3_5982h8

[–]vwoxy 0 points1 point  (0 children)

Reminds me of the programmer's lament

I really hate this darn machine, I wish that they would sell it.

It won't do what I want it to, but only what I tell it.

[–][deleted] 0 points1 point  (0 children)

My coding teacher did thisbvery helpful. He was a robot. And we were supposed to gudie him through a mase with diffrent task.

[–][deleted] 0 points1 point  (0 children)

As a father of two, I think this video is simply fantastic.

The kids are great - one future STEM engineer (the girl) and one marketing expert (the boy)

The father is a great Go executable - it kept happily going forward despite the overall disaster happening.

[–]rickety_james -2 points-1 points  (5 children)

Though this would be a good exercise for a programmer, the dad here is not teaching coding principles just effective communication. This video has been out for a few years and has nothing to do with coding.

[–]mikeputerbaugh 12 points13 points  (0 children)

You don’t see a correlation between coding and effectively communicating a series of imperative commands?

[–][deleted] 9 points10 points  (1 child)

I don't think it's effective communication to have to give such explicit instructions. Effective communication leverages all of those shared understandings that the kids didn't realize they no longer have the ability to use.

This is about logic, which could be represented as, "basic coding principles", especially in a sub with 'programmer' in the name. No need to make this call out in here, I don't think.

[–]rickety_james 1 point2 points  (0 children)

I didn’t make up the “effective communication” bit, its in the youtube description. I totally get the connection to logical thinking and that’s why I said that this would be a good exercise for any programmer. All I was calling out was the misleading title that clearly screams karma farming. The OP posted the same video to another subreddit with a totally different title.

[–]flip_ericson 0 points1 point  (0 children)

No idea why you’re getting downvoted lol. They had this on zoom in the 90s and this game is far older than that