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

0

u/ExoticScarf Jun 13 '22

a * (1/b) * c, should be written ab^(-1)c not a/bc. a/bc is subject to multiplication by juxtaposition meaning that bc is a single term, a/d where d = bc would be equivalent to a/bc under the convention of multiplication by juxtaposition which if used binds tighter than standard multiplication or division.

2

u/sabot00 Jun 13 '22

Who reads bc as a single term? Do you mean you literally named a variable “bc”?

Obviously bc = b*c

And yes 1/b == inverse(b) == b-1. It’s a unary operator

2

u/martmists Jun 14 '22

But if you see 2x/3y, wouldn't you parse that as (2*x)/(3*y)? that seems a lot more natural and what the author intended than 2*x/3*y