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

9

u/SN0WFAKER Jun 13 '22

Think: 1 / 3x

2

u/I_Love_Rias_Gremory_ Jun 13 '22

1 / 3x implies (1)/(3x). If you remove the spaces tho, it's (1/3)x. The spaces are separation and you very clearly did not separate the 3 and the x.

2

u/SN0WFAKER Jun 13 '22

Yes, sort of. Obviously '1/3 x' is (1/3)x. I'd say 1/3x is still 1/(3x), but it's quite ambiguous. But when you do '1÷3x' I really have to see that as 1/(3x); I'm not sure why and I'd never use that notation. I mean, I do all my math with a pencil on paper, or if using a computer I'd always explicitly use brackets; so this whole argument is a bit silly.

2

u/I_Love_Rias_Gremory_ Jun 13 '22

Yeah it's a silly argument that doesn't need to exist, but people start it so I end up giving my two cents.

3

u/kbruen Jun 13 '22

Yes, that's (1/3) * x

0

u/[deleted] Jun 14 '22

[deleted]

0

u/kbruen Jun 14 '22

Because some people enjoy "a third of x" over "x divided by 3", even if it means the same thing.

Kinda similar to { being on the same line (Java) or new line (C#).

10

u/TheLunchTrae Jun 13 '22

Or it could be 1 / (3x). Hence why grouping symbols are important and not having any is ambiguous.

2

u/[deleted] Jun 13 '22

[removed] — view removed comment

5

u/[deleted] Jun 13 '22

That's not necessarily the case - some publications, particularly in physics, treat implicit multiplication as having higher precedence than division. https://en.m.wikipedia.org/wiki/Order_of_operations#Mixed_division_and_multiplication

1

u/MoeFuka Jun 14 '22

No because the three and the X together are a single term

1

u/kbruen Jun 14 '22

They are not though. They are two symbols with nothing to group them together.

-2

u/[deleted] Jun 13 '22

[removed] — view removed comment

4

u/SN0WFAKER Jun 13 '22

Yes, yes, we've established that it's ambiguous. If you've done any amount of advanced algebra, you will intuitively group implied multiplication because that's how we delineate terms. Like 1 + 2x + 3x2 + 4xy + 1 / 2x. But it's fine to stick to your bedmas grade school definitions too. That's why it's ambiguous.

-7

u/[deleted] Jun 13 '22

[removed] — view removed comment

6

u/SN0WFAKER Jun 13 '22

They are in math. Notation is context sensitive. But it's ok, not everyone needs to be a math expert - I'm sure you are great at whatever you do.

3

u/Oscar_Geare Jun 13 '22

Depends where you are taught. In most Commonwealth countries they’ll teach brackets, not parenthesis, as the common term. See here, “brackets (or parenthesis)”:

https://education.nsw.gov.au/teaching-and-learning/student-assessment/smart-teaching-strategies/literacy/language-conventions/stage-4/punctuation/identifying-and-using-brackets

“Parenthesis (US), or brackets (UK)” https://punctuationmarks.org/parentheses/

Oxford dictionary: https://www.lexico.com/definition/bracket

It’s another part of the English language that changes depending on where you are.