1723
submitted 1 year ago by 5SpeedDeasil@lemmy.world to c/memes@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Inky@lemmy.ca 98 points 1 year ago

This post confuses me. Why would code be simpler than the math notation? Both involve symbolic abstraction of basically the same complexity

[-] hglman@lemmy.ml 118 points 1 year ago

Its got to be a relatively small group who knows enough to understand loops and is also afraid of math symbols.

[-] pythonoob@programming.dev 62 points 1 year ago

Hi, I'm the problem. It's me.

[-] DogMuffins@discuss.tchncs.de 30 points 1 year ago

Maybe not so small?

I never encountered these math symbols but for loops are like step 3 in any programming language after variables and conditionals

[-] stoneparchment@possumpat.io 16 points 1 year ago

lol, like 2.5% of the USA are programmers and even if we say twice that number have experimented and taken programming classes, that's like 1 in 20 people who would even have ever encountered a for loop. This nsf report says ~70% of highschoolers have taken Algebra 2 or a more advanced math course, which is when sum notation is usually introduced. I think 70% is a little greater than 5%!

[-] BeautifulMind@lemmy.world 11 points 1 year ago

That's interesting to hear; somehow my algebra 2 skipped sum notation (and it wasn't remedially covered in subsequent math classes) but I've been writing code for decades now and seeing it in code totally explains the sum notation for me

[-] AnarchistArtificer@slrpnk.net 1 points 1 year ago

I was great at maths in school, was in all the advanced classes and I found it so fun it didn't feel like work to me. I learned a lot of the notation, but because I didn't study maths further, I became rusty. With programming, I never really learned it, I just kept coming into contact with it as part of my post university work (in science), and gradually, I picked up some basics. The coding basics I did get feel much more familiar to me than the maths concepts now, because I literally couldn't avoid coming into contact with coding in my work.

The maths they teach in school also is generally very pure maths, and that can make the concepts remain quite abstract. Matrices, for example, made way more intuitive sense to me when I used them as a scientist than when they were taught to me as a maths student.

[-] DogMuffins@discuss.tchncs.de 1 points 1 year ago

Lol, basic coding is part of the mandatory school curriculum for 12 year olds in Australia.

[-] kartoffelsaft@programming.dev 1 points 1 year ago

Huh. When I took Calculus II in community college, the professor introduced sum notation and like 2/3 of the class was like "wow that's cool I didn't know about that". I don't remember ever being formally taught it before that but it still surprises be how few people where already familiar with it.

[-] karstin@lemmy.world 19 points 1 year ago

I'm in that group I think. I do like a liiitle bit of coding in some tiny specific progrqmming language in one piece of software that I use. I understand the basics but try to avoid having to do it. But while code is a little scary to me, math is much scarier lol

[-] Choco1ateCh1p@lemmy.world 12 points 1 year ago

I believe this group could be bigger than some may think. I, and the team I work with, work with for loops similar to these on a regular basis. And only one of us has a bachelor's degree in math. The rest of us don't really understand the math unless it is applied.

[-] sounddrill@lemmy.antemeridiem.xyz 12 points 1 year ago

I'm in this group and I don't like it

[-] Malfeasant@lemmy.world 7 points 1 year ago

Those of us born in the 70s... Doing anything with a computer required knowing at least a little programming, so we learned at 8 years old, then when we got to high school/college, we were taught by people who knew nothing about programming because they were already old and didn't think they needed to learn anything new...

[-] MrSlicer@lemmy.world 3 points 1 year ago

Hellllooo I just took a c++ class and remedial math 🤣.

[-] charlieb@kbin.social 2 points 1 year ago

I never made it into algebra in grade school, my scores weren't good enough. but I took a liking to software dev and the ability to create digitally. Self taught myself all the variables and flow controls and OOP, now been a professional developer for 15 years.

However I still suck at math, and these fancy symbols still scare me probably because they were never properly explained. But yeah, I fit right in the mold you describe. Glad I have the computer to crunch the numbers for me.

[-] sf1tzp@programming.dev 14 points 1 year ago* (last edited 1 year ago)

Not really sure if this answers your question (I agree with you, ultimately), but here’s my experience:

At the college I attended, these sigma/pi expressions weren’t taught until the end of Calculus 2, but I wanted to take an Algorithms class - which had calc 2 as a prerequisite.

I got an exception from my advisor which allowed me to take Algorithms before the pre-req. In my experience, these concepts were easily learned in the context of algorithmic complexity.

Some might be barred from learning important theory in computer science by “brutal” math classes at university. They might find solace in this post which translates sigma into ‘for’

[-] GTG3000@programming.dev 6 points 1 year ago

Math notation is just terrible in general because a lot of it is shorthand made up by someone who likes single-letter variables. A symbol you can't type, something above, something below.

A for loop is clear and descriptive.
Or if you're feeling fancy, you could go functional with reduce(add, range(0, 5), 0).

[-] Inky@lemmy.ca 2 points 1 year ago

Mathematical notation was designed to be written by hand. It is at least as clear and descriptive as any syntax from a programming language. You're pretending that the abstraction behind a for loop is somehow less than that behind a sum or product notation.

[-] bane_killgrind@lemmy.ml 6 points 1 year ago

They are the same difficulty level, sure, but that's like saying f(x) and f'(x) are at the same difficulty level. Coming from one to the other in a process is the difficult part, and the code offers instructions to follow this process.

[-] RogueTyre@lemmy.fmhy.ml 5 points 1 year ago

I mean they are both the exact same thing, I don't see why summation is scray when the for loop isn't. It's the same thing written in a short and easy format.

[-] Cirom@sh.itjust.works 4 points 1 year ago

I forget what the symbols mean but I'm sure not gonna forget what a for loop means

[-] ParsnipWitch@feddit.de 2 points 1 year ago

It's a Meme? Do you ask the same under other memes as well "What is the reason?"

[-] uskok@lemmy.world 2 points 1 year ago

Why not? If you don't understand a meme it's perfectly fine to ask for a context or explanation.

[-] AnarchistArtificer@slrpnk.net 2 points 1 year ago

I'm a subscriber to her YouTube(one of my favourite videos of hers) and she has a bunch of videos aimed at helping game developers learn the maths concepts they need for making games, so her audience is mostly people with a coding background, I'm guessing.

So it's less that code is simpler than math notation, more that the maths notation looks scary to people without a maths background, but here's a link to a different complex symbolic abstraction that you might already know

[-] PipedLinkBot@feddit.rocks 1 points 1 year ago

Here is an alternative Piped link(s): https://piped.video/aVwxzDHniEw

Piped is a privacy-respecting open-source alternative frontend to YouTube.

I'm open-source, check me out at GitHub.

this post was submitted on 16 Jul 2023
1723 points (100.0% liked)

Memes

45736 readers
331 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 5 years ago
MODERATORS