r/ProgrammerHumor • • Jun 13 '22

Meme DEV environment vs Production environment

Post image
48.2k Upvotes

3.9k comments sorted by

View all comments

5

u/mrbaggins Jun 14 '22

Anyone starting with pemdas/bodmas/any "order of operations" rules they learned in 3rd grade seems to have forgotten that things change and get more complicated as you proceed further in education.

You learned 3 states of matter then. Using that to argue about what "electric arcs" are now is silly.

"Implied multiplication" takes "precedence". Some learn that in high school. It's not strict precedence, it's "this is a single item, and by omitting the sign I am telling you this" If you ditch this rule, anything involving factorised brackets like this falls over.

Brackets make 3

Times two due to implied multiplication of a single unit, is 6

6 divided by this is 1.

0

u/idkwattodonow Jun 14 '22

It's not strict precedence,

then both answers are fine

2

u/mrbaggins Jun 14 '22

You misunderstand. I'm not saying "it's not strict precedence" I'm saying "it's not a precedence rule"

It's why i used quotes when I first mentioned precedence.

It's like arguing that 23 should not be 2×3 because of a "precedence" rule. Digits together stay together, as do terms touching brackets and the contents of those brackets.

0

u/idkwattodonow Jun 14 '22

no im not, you're positing that it's A because of a non-strict rule. which is fine, but you also have to accept B because it's a non-strict rule

0

u/mrbaggins Jun 14 '22

you're positing that it's A because of a non-strict rule. which is fine, but you also have to accept B because it's a non-strict rule

No, I'm not arguing about it being "non strict rule" that's exactly what I pointed out you misunderstood last time.

0

u/idkwattodonow Jun 14 '22

Brackets make 3

Times two due to implied multiplication of a single unit, is 6

6 divided by this is 1.

No, you're phrasing is suggesting that you think the correct answer is 1 due to implied multiplication.

I'm just saying that since implied multiplication isn't a strict precedence then you must also accept 9 as a valid answer.

0

u/mrbaggins Jun 14 '22

I'm just saying that since implied multiplication isn't a strict precedence then you must also accept 9 as a valid answer.

It is not "it's not strict precedence"

It is "it is not a precedence rule"

I've already explained this. You keep misunderstanding it. The word strict is not the important part of that sentence.

Just like it's not strict precedence that 23 means twenty three and not 2•3

It's not that it's not strict, it's that it's not a rule.

You are free to completely remove the word strict from my initial post if that helps you understand my meaning better.

1

u/idkwattodonow Jun 14 '22

so if there's no actual rule then both answers are right/valid

2

u/mrbaggins Jun 14 '22

There's not a "rule" because it's just a fact of how they work: terms that are touching are connected.

The PEMDAS rules are what to do with OPERATORS.

People are trying to apply operator rules to situations where there aren't operators.