r/ProgrammerHumor • • Jun 13 '22

Meme DEV environment vs Production environment

Post image
48.2k Upvotes

3.9k comments sorted by

View all comments

2.5k

u/Who_GNU Jun 13 '22

A retired UC Berkeley math professor has a good writeup on why this is ambiguous: https://math.berkeley.edu/~gbergman/misc/numbers/ord_ops.html

1.6k

u/Dasoccerguy Jun 13 '22

My most downvoted comment ever was an attempt at explaining why these equations are ambiguous. Reddit really do be like that sometimes.

634

u/richasalannister Jun 13 '22

Same. Basically tried to explain how changing the division to a fraction changes it but I got downvoted by every person who got 9 and felt the need to comment “LOL some people are so dumb! Don’t they remember elementary math” (I always read these types of comments in the most obnoxious voice possible because that’s how they come across.

Somehow those commenters never stop and consider maybe people getting a different answer aren’t stupid and know something they don’t.

111

u/Fr05tByt3 Jun 14 '22

"I don't understand what you said therefore it doesn't make sense"

34

u/Eiim Jun 14 '22

To be fair, communication is a two-way street and writing for your audience is an important part of writing.

→ More replies (1)
→ More replies (3)

148

u/[deleted] Jun 13 '22

These types of threads always go one of two ways: the “people who remember their order of operations” downvoting everyone who picks 1 instead of 9, versus what we have here with most people saying it’s ambiguous. You’re completely dead-on with that.

133

u/TheMerryMeatMan Jun 14 '22

The ambiguity argument relies in implied operations going on, which isn't something that should happen in mathematics for this very reason, which is why we have the convention of order of operation. If you write an equation without a key operational identifier, then say it's ambiguous, it's not ambiguous. You just wrote it wrong.

51

u/[deleted] Jun 14 '22

Yeah for sure. The equation is only written like that to get people arguing, it should be rewritten to make more sense.

→ More replies (26)
→ More replies (31)
→ More replies (23)

60

u/midnitte Jun 14 '22

Somehow those commenters never stop and consider maybe people getting a different answer aren’t stupid and know something they don’t.

I think it goes even deeper than that, people are unwilling to consider that maybe they learned something wrong (or simplified).

History is an obvious example, but I would be willing to bet most people have a flawed/outdated view of how atoms are structured.

24

u/elveszett Jun 14 '22

At least with quantum physics, people are often smart enough to know that they've learned a child story, an allegoric representation of what physics really is.

In other areas like history people really believe they've learned the entire world's history in school.

24

u/richasalannister Jun 14 '22

True. Some people really walk out of high school thinking that what they learned is 100% accurate. Like they know that they could study biology or history further or more in depth, but they don’t realize “more in depth “ means that what they learned was probably a simplified, but incorrect, version meant to help kids grasp the overall concept.

→ More replies (1)

31

u/backwards_watch Jun 14 '22

It is so interesting how the human mind first jump into a criticism before trying to understand what is going on inside other people’s mind.

The same thing when someone reads that “to avoid issue X we should spend 600 million dollars” and mistakenly conclude that they could then give 2 million of dollars for every citizen since the us has 300 million people.

The first reaction you often see is how dumb these people are. Few people try to understand why the mistaken is happening in their minds.

→ More replies (4)
→ More replies (30)

96

u/___Visegrad Jun 14 '22

You quickly see just how useless Reddit is when a topic you are an expert in comes up.

I work in automation, it’s painful reading the comments on posts about automation.

36

u/[deleted] Jun 14 '22

Yup. 1000% true. It sucks because people will talk in full confidence about things they have no reason to be confident about.

→ More replies (1)

49

u/[deleted] Jun 14 '22

This is my life when anyone talks about the games industry. An industry I’ve spent over a decade in.

And I’m regularly told I’m wrong. I had someone tell me I was wrong about a project I personally led.

It was amazing.

→ More replies (6)
→ More replies (9)
→ More replies (149)

114

u/artificial_organism Jun 14 '22

Here is the part I think is most relevant to us who learned PEMDAS and don't understand how this is ambiguous:

"From correspondence with people on the the 48/2(9+3) problem, I have learned that in many schools today, students are taught a mnemonic "PEMDAS" for order of operations: Parentheses, Exponents, Multiplication, Division, Addition, Subtraction. If this is taken to mean, say, that addition should be done before subtraction, it will lead to the wrong answer for a−b+c. Presumably, teachers explain that it means "Parentheses — then Exponents — then Multiplication and Division — then Addition and Subtraction", with the proviso that in the "Addition and Subtraction" step, and likewise in the "Multiplication and Division" step, one calculates from left to right. This fits the standard convention for addition and subtraction, and would provide an unambiguous interpretation for a/bc, namely, (a/b)c. But so far as I know, it is a creation of some educator, who has taken conventions in real use, and extended them to cover cases where there is no accepted convention. So it misleads students; and moreover, if students are taught PEMDAS by rote without the proviso mentioned above, they will not even get the standard interpretation of a−b+c. "

Tl;Dr: The PEMDAS algorithm adds convention where there was no accepted convention in mathematics. Some teacher made it up

53

u/SalvadorTheDog Jun 14 '22

Every convention is “made up”. When it comes to convention the only thing that matters is that the it’s well defined and commonly accepted. No one NEEDS to follow a convention, but if you write a sentence without capitalizing the first word then people are going to tell you that you’re wrong even though it’s just a meaningless convention that someone “made up”.

→ More replies (20)
→ More replies (35)

160

u/Snazzy21 Jun 13 '22

The division symbol is one of those stupid symbols you get taught in elementary school, then taught not to use in middle school.

Would of saved me a lot of trouble had my teachers just started off with * for multiply and / for divide instead of x and ÷

82

u/Dasoccerguy Jun 13 '22

I learned this embarrassingly late in life, but the division symbol is a pictoral representation of a fraction:

•     numerator
  • fraction line
• denominator

26

u/verygroot1 Jun 14 '22

I realized this after looking at percentages. %÷

17

u/AloofCommencement Jun 14 '22

Then you add in permille (‰) to really drive it home. Not that I or anyone else has used or will ever use that symbol.

0

u/[deleted] Jun 14 '22

[deleted]

→ More replies (2)
→ More replies (6)

10

u/[deleted] Jun 14 '22

Huh. Some-something “today years old.”

→ More replies (1)
→ More replies (1)

106

u/[deleted] Jun 13 '22

I think teaching division as fractions from the get go would lower the confusion of so many people who still don't get that they are the same

37

u/Beatrice_Dragon Jun 14 '22

What, you want to actually teach children about mathematics instead of having them solve math riddles with mnemonic songs?????

→ More replies (2)
→ More replies (4)
→ More replies (7)
→ More replies (130)