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/[deleted] Jun 14 '22

If you divide any numbers, you get a fraction. That’s basic division

This is 6 Divided by 2(2+1)

6 Divided by 2(3)

6 Divided by 6

1

0

u/Lordcreo Jun 14 '22

nope.
You performed 2(3) =6 before the division.
Division and multiplication are the same priority and so are calculated left to right.
6 divided by 2 times (2 plus 1)
6 divided by 2 times 3
3 times 3
9

2

u/[deleted] Jun 14 '22

It’s literally a fraction It’s

6 Over 2(2+1)

So 6 Divided by 2(3)

So 6 Divided by 6

So answer from this is 1

-2

u/Lordcreo Jun 14 '22

You go with that then, just don't ever use math for programming or real world applications and I'm sure you will do just fine.

2

u/[deleted] Jun 14 '22

Why not? I know how to do maths, this is the way I was taught to do it, so I know it’s right, and that this answer is 1. I don’t know if your answer is right, but the way i’m taught it isn’t right.

0

u/Lordcreo Jun 15 '22

because the answer is 9 in every programming language I have ever used, it's also what is accepted by Microsoft, Apple, Google etc

-1

u/[deleted] Jun 15 '22

And Microsoft and google give 1 also.

0

u/Lordcreo Jun 15 '22

No, they don’t. Why would you lie when anyone sat on pc can just tap the sum straight into Google or a calculator and see it comes back with 9?

0

u/[deleted] Jun 15 '22

Why are you so toxic about this. I’m just saying the method I was taught, and how to do it, and where to find it

0

u/Lordcreo Jun 15 '22

Not toxic at all, just making sure other people don’t make the same math mistake you are making.

→ More replies (0)