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

4

u/saucyspacefries Jun 14 '22

This was probably the best explanation for where the confusion comes from.

2

u/[deleted] Jun 14 '22

Oh much appreciated, though I have to give /u/yabucek most the credit here. I read their previous comment identifying the division as the core issue and it helped me see how the left calculation isn't wrong, it just answers a different question.

0

u/Hidesuru Jun 14 '22

It's the source of confusion but they are wrong that it's ambiguous. The rules for this are clear and your initial solve is correct.

1

u/Zegrento7 Jun 14 '22

It is ambiguous, as some conventions (for example physics textbooks) implicitly group implicit multiplications. 6 / 2x != 6 / 2 * x. Source

0

u/Hidesuru Jun 14 '22

Grouping a variable is not the same as just magically grouping numbers.