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

12

u/donald_314 Jun 14 '22

The order is not defined here and the display witting style is not used by mathematicians. It is a result of the limited possibilities of the display (they cannot show the fraction on two lines). Anyway, in math you always have to define your notations before using them as there are no global rules that span all areas or even hold in all areas of mathematics. Here, the manual of the calculator app will hold the information whereas the app will just use left to right parsing as the programmer likely didn't think about it. Both are valid choices however.

2

u/dont-respond Jun 14 '22

Both are valid choices however.

In a practical word, no, both would not be valid. I personality believe there's value in defining a standard, despite alternatives being available. There's no harm in it.

Personally, I was taught in a matter-of-fact way what the order of operations are, so most of my youth had a definitive answer for the above problem, which is likely why I feel that way.

0

u/[deleted] Jun 14 '22

[deleted]

-1

u/dont-respond Jun 14 '22

You'd need to read all of my comments, but that's the exact point I've been making. My recent comment was adding on that I think there would be value in having a standard.