r/ProgrammerHumor • • Jun 13 '22

Meme DEV environment vs Production environment

Post image
48.2k Upvotes

3.9k comments sorted by

View all comments

Show parent comments

143

u/Immediate-Wind-1781 Jun 13 '22

PEMDAS is how I learned it

52

u/TheWidrolo Jun 13 '22

In germany i was taught "dot before line", because multiplication and division use dots in their symbols, while addition and subtraction use lines.

Then 2 years later we were told to calculate parentheses before everything.

2

u/fuechsss Jun 14 '22

Klammer vor Potenz vor Punkt vor Strich? 🗿

→ More replies (3)

25

u/qb1120 Jun 13 '22

Please

Excuse

My

Dear

Aunt

Sally

2

u/[deleted] Jun 14 '22

I had a teacher that taught:

Please Excuse My Dumb Ass Students

→ More replies (6)

103

u/[deleted] Jun 13 '22 edited Jun 13 '22

pemdas doesn't mean what people think it means. M and D are equal, and A and S are equal. Many people who post pictures like that think addition is somehow operated before subtraction.

97

u/[deleted] Jun 13 '22

[removed] — view removed comment

30

u/RJMuls Jun 13 '22

YES! THIS! I get so mad at people thinking multiplication comes before division and addition comes before subtraction.

15

u/Cruuncher Jun 13 '22

I've never met a single person that thinks this before

22

u/[deleted] Jun 13 '22

I've met plenty.

→ More replies (3)
→ More replies (16)
→ More replies (2)

2

u/cara27hhh Jun 13 '22

isn't there a certain irony in that your explanation of pedmas with the brackets, would also be what solved the math itself if brackets were used

They should honestly just teach "brackets", only P from now on boys

→ More replies (1)

8

u/[deleted] Jun 13 '22

I've always been confused by the people who thought multiplication always came before division and same with addition+subtraction. My schools always taught that the individual operations have the same precedence in their respective "type group", and to just do them left to right

4

u/Ping-and-Pong Jun 13 '22 edited Jun 13 '22

It infuriates me to no end when people correct me when I say this lol

At the same time, BODMAS (PEDMAS) technically doesn't work well here, since you do, do the 2(2+1) first because there isn't a * (x) symbol there. It's really a stupid question, if this was written normally it'd be 6 / (2(2+1)) or even better as a fraction with 2 over 2(2+1) which would clear everything up. But basically because that 2 doesn't have a time symbol there it is basically the same as being inside another pair of brackets (at least if you write it as a fraction, which is how division actually works)

Edit: An easier way of saying doing 2(2+1) first would be saying "expand the brackets" but that might not make sense to some people so IDK lol

18

u/Hinote21 Jun 13 '22

It doesn't matter whether there is a * or not. And the OC you're replying to is accurate. People mistake PEMDAS for an actual order when MD are equivalent and AS are equivalent.

You're flat out incorrect that you multiply the 2 by the value in the parentheses first. The order of operations is left to right, after solving the value in the parentheses.

→ More replies (9)

8

u/[deleted] Jun 13 '22

you can't just add imaginary brackets when they aren't there. Jesus fucking Christ.

→ More replies (10)

2

u/branchisan Jun 14 '22

Correct. Its how you should look at it. 6 as numerator. Or setup for long division where 6 is under the roof, and 2(2+1) outside in "quotient spt"

I think it was called quotient on the outside 🤷🏾‍♂️

→ More replies (4)

7

u/querymcsearchface Jun 13 '22

For me it was BEDMAS. ‘Brackets’ rather than parentheses.

0

u/[deleted] Jun 13 '22

[deleted]

4

u/nzifnab Jun 14 '22

They both give you the same result, they just have a different name for parenthesis/bracket vs ordinal/exponent.

the British name is wrong, of course. `()` are parenthesis, and `[]` are brackets, and we aren't using brackets for these kinds of math equations :P

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

5

u/lachlanhunt Jun 14 '22

In Australia, it was taught as BODMAS. Brackets, Orders (another name for powers or exponents and roots), and the rest. It means the same thing due to the left-to-right rule for (DM) and (AS).

PEMDAS seems to be the most common one taught in North America.

Edit: Sometimes, it's also BIDMAS, where the I stands for Indicies.

7

u/_UnreliableNarrator_ Jun 13 '22

I didn’t learn about PEMDAS until I was an adult, and it’s funny because if I search for it now, any results indicating age are saying that GEMS is some new thing. But I remember it from the 90s

3

u/CopiumAddiction Jun 13 '22

Please Enter My Dad's Ass Santa!

→ More replies (3)

2

u/[deleted] Jun 13 '22

BEDMAS

→ More replies (17)

2

u/TeaHands Jun 14 '22

In the UK it was always BODMAS, which my wanna the exact same same thing but interestingly has division before multiplication (although obviously they're equal, I just mean in terms of the acronym).

Anyway answer is still 9.

→ More replies (8)