Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Found the internet!
3.6k
Posted by
2 months ago
Helpful

My sanity % Programming

r/ProgrammerHumor - My sanity % Programming
495 comments
91% Upvoted
level 1
Comment deleted by user · 2 mo. ago
level 2

When I was teaching 1st year college students, I learned that, no, students do not do remainders in school. Many had never done long division, even fewer had ever made change for a bill.... that was for computers to do.

404
level 2

Y'all never used a clock?

11
level 2

I forgot remainders existed after 4th grade tbh

49
level 2

I was a TA for first year calc in uni. First tutorial was just reviewing some basic high school stuff, which included solving inequalities for x. After the tutorial, a student walked up to me and asked what the parallel lines around the x meant. I actually have no hope in the NA public education system.

15
level 2

Modulo of negative numbers is where it gets unintuitive/different from remainders. You would think -9 % 5 is -4 but it’s actually 1 (since a modulo is typically the smallest positive integer in the set of numbers that a 5(x) offset from -9)

12
level 2

sure but only at the very beginning of school and then never again, plus for me it wasn't called modulo and didn't use a %-sign so it still took me a while to see the connection between the 2...

9
level 2

Depends on country I guess. We did this in grade 11, and it was a complete mind f***. I can still hear my teacher saying "Mod is a machine" after the 500th time we couldn't solve modulo math. Fun times.

7
level 2

If they called it the remainder operator people would probably get it much quicker

2
level 2

Not only that, but if you studied anything related to programming, then you would have needed it when learning cryptography and a lot of theoretical problems.

5
level 2

No, we always quotient

1
level 2

I remember when I learned modulo division when programming that I used to do a lot of mental gymnastics to calculate them. Until one day I realized it just gave you the remainder of the division :D.

1
level 2

Not negative ones!

1
level 2

They teach long division in like elementary school, which I think taught us remainders, but only briefly and not very well. After that you just think of division as fractions or you do it on a calculator.

1
level 2

I was notoriously bad at math throughout high school, but still learned/understood remainders.

However the term modulo/ using % to represent it wasn’t something I heard of until taking CS classes in college.

1
level 2

Modulo was not taught in school here (Canada, during the 80s). Do not know if things have changed now.

1
level 2

That's what I'm thinking

1
level 2

It was covered in 1st grade when I learned division, only reason I touched it afterwards was because of programming (and doing cryptography)

1
level 2

Even if taught ling division, the use of remainders is just for the end result. Just to do long division.

Using mod in a programming sense requires more understanding then that

1
level 2

This connection is what finally made modulo click for me.

1
level 2

When I was in elementary school, by default we did repeating decimal places. When I saw someone who was homeschooled do Euclidean division I was jealous that they were allowed to just stop once they got to the mantissa.

Of course at the time I had no idea what “mantissa” or “Euclidean division” was, but tomato tomato.

1
level 2

You guys went to school?

1
level 2

Bruh it's like one of the few things I learned in school and not somewhere else

1
level 2

It was something we learnt wayyy back. I thought it was just for kids because they didn't know fractions yet.

Then I went to university and found out about the division theorem.

Remainders are not just for kids.

1
level 2

We did remainders but we never called it "modulo"

1
level 2

Last time I did remainders was 3rd grade. After that it was straight into fractions and decimals

1
level 2

Last time I did remainders was 3rd grade. After that it was straight into fractions and decimals.

1
level 2

I did decimals, I remember when I finished calculating 1 / 3, it's 0.33333334. NO, DID NOT USE A CALCULATOR

1
level 2

We did. They just didn’t called it modulus

1
level 2

Remainder =/= modulo (the latter is merely a representation of the former, so while I did remainders, I was caught off guard by the %).

1
level 2

Nope and I'm 1 year from finishing my bachelor

1
level 2

Elementary school, which was the only time that we practiced it in all of our schooling career. Should we remember something we haven't practiced?

1
level 2

Learned PEMDAS when I was 13, thought it was stupid. Saved my life 15 years later when I was learning how to program.

1
level 2

I started programming in my thirties, I've been constantly taken aback by one lecture series after another where the instructor handwaves away some concept I'm absolutely flummoxed by, dismissing it as "elementary math". Also I can promise you we never used the word "modulo" in elementary school, nor were we taught to think about how you can use modulo as you would in programming. Everybody at their own pace, but I'm with OP here.

1
level 2

For me it was less the concept of remainders then how to use %

1