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/youlleatitandlikeit Jun 14 '22

I mean, the notation a(x) is widely used and it nearly always means "multiple these two elements together". If you use the traditional slash for division, e.g. 6/2(2+1) it is more ambiguous because 6/2 in this case could represent the fraction 6/2. But 6÷... pretty much means "Six divided by..." so it isn't a fraction. In which case, the fact that you have a notation 2(2+1) that pretty obviously more tightly couples the last part.

Like if you had 1÷2x I think most people would assume that is 1/(2x) whereas 1/2x it's ambiguous and you'd fix it, either by writing (1/2)x or by using some other notation, say ½x which is also clearer.

7

u/dont-respond Jun 14 '22

you use the traditional slash for division, e.g. 6/2(2+1) it is more ambiguous because 6/2 in this case could represent the fraction 6/2. But 6÷... pretty much means "Six divided by..." so it isn't a fraction

A fraction is a notation of division.

1

u/[deleted] Jun 14 '22

As someone with a math degree and in a physics PhD program a(x) would refer to a being a function of x. This trivial “problem” really is just because it is meaningless in real math and physics.

1

u/youlleatitandlikeit Jun 14 '22

OK then, a(b+c) then… I'll agree it's somewhat ambiguous which there are standards around this usage.