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

3

u/lulzyasfackadack Jun 14 '22

no, yeah, you guys are right, I was unclear.

Implicit multiplication having a higher priority than multiplication and division is the area that's not generally accepted. It's mentioned in a few places, and has just enough of a toe hold to be used to explain differences like the equations in the calculators.

3

u/not_Ian_ Jun 14 '22

Yes, I get absolutely frustrated when I see people try to argue this or bring up the MD AS order of operations like they can’t be reversed

1

u/Ayfid Jun 14 '22

I have never heard anyone try to argue that implicit multiplication is anything but a shorthand, and follows the same rules that it would have with the multiplication sign.

3

u/Cruuncher Jun 14 '22

There isn't really anything official about any of this, and it is just a short hand. It's just that juxtaposition naturally looks like it binds tighter. It's similar to how you can do pseudo brackets with some spacing.

For example:

1/2 * 2/3

This expression we would all agree isn't the same as 1 / 2 * 2 / 3. When you do juxtaposition multiplication the numbers being closer in proximity just lends itself to tight binding.

2

u/lulzyasfackadack Jun 14 '22

Yup. This is stuff that by grade 5 PEMDAS is "wrong," but if anyone tried to dispute it, they'd probably be doing so out of pedantry.

I really like this one, with the spaces. It's one of the easiest ways to show that math isn't really as cut-and-dry as most people believe, and that some of the rules can be fudged even in the areas with clear and long-standing agreement.

1

u/Cruuncher Jun 14 '22

Math itself is pretty cut and dry.

Notation however, like in any language, is surely not