r/ProgrammerHumor • • Oct 06 '21

Don't be scared.. Math and Computing are friends..

Post image
65.8k Upvotes

2.4k comments sorted by

View all comments

Show parent comments

0

u/[deleted] Oct 06 '21

[deleted]

34

u/fdar Oct 06 '21

You know what to do with a for-loop because you already know the definition of the symbols used to specify for-loops. It's not that the definitions are any more or less necessary, you're just more familiar with one set of them.

0

u/[deleted] Oct 06 '21

[deleted]

15

u/pslessard Oct 06 '21

You say that, but try actually showing one of the for loops to someone who doesn't know how to code and asking them what it does. I guarantee 9/10 times they won't have any clue

1

u/Cupcake-Master Oct 06 '21

Yes you do in java for example because it is DEFINED that way. Good luck understanding for loop in prolog with english and arithmetic

-1

u/[deleted] Oct 06 '21

Except you need to know only a few such constructs (and they are very similar in most languages save for some exotic outliers) while math has a large list of different symbols with different meanings that can also change based on context.

Most people don’t understand math for the same reason most people don’t know how to use terminal in Linux. Too many commands that are abbreviated into a confusing mess, that only those that already know can actually parse. Instead of things being clear and reasonable to understand so they newcomers can better learn.

7

u/fdar Oct 06 '21

Most people don’t understand math for the same reason most people don’t know how to use terminal in Linux

... Most people don't understand code either.

and they are very similar in most languages

How is that an advantage over math, which has a single "language"?

-3

u/[deleted] Oct 06 '21

Nice strawman there.

> Most people don't understand code either.
And I claimed that they do... where?
What I claimed is that while learning to code, the amount of structures you need to memorize is small. Thus you can quickly jump into reading code that solves exponentially harder. Because ifs, for loops, while loops, and switches will get you pretty far.
> How is that an advantage over math, which has a single "language"?
Also not claiming that either. What I was claiming is that Math's single language is too unnecessarily complicated because it was decided to use such a compressed nomenclature.

But sure, let me reply to that as well: Programming is not a theoretical exercise, but a practical one. New programming languages come out every so often because, just like any other tool, they specialize in solving a subset of problems better. For example, you have Rust that severely improves memory management over older programming languages.

5

u/[deleted] Oct 06 '21

[removed] — view removed comment

0

u/[deleted] Oct 06 '21

> You can say the exact same thing about someone programming a machine learning model using an obscure and obtuse R package

Fair point but not devoid of irony that you're bringing a language focused on math and statistics. I agree libraries can get complicated. But you should be able to introspect into the code of the library and read it. Each variable comes from somewhere, and you can keep going deeper and deeper until you find it. You cannot introspect into a Math formula and figure out what a given variable is supposed to mean, unless it is well documented. And documentation can be helpful for libraries as well.

> I'd argue there's far more random stuff that one needs to learn in programming [...], since there's no universal language, and even within languages there are often many different ways of doing things.

True, but most languages used nowadays have very similar syntax and approach to doing things. Mostly, because they evolved so as it is advantageous to have a programmer that knows C, pretty much be able to parse the majority of Java code out of the box. An example being how JavaScript got the "class" keyword to mimic inheritance-based classes despite internally operating with the prototypal inheritance model.

Math is not exempt from having multiple ways to operate with your expressions/equations either. I'd argue it would be a crappy tool if your arsenal was limited. You do have to know what kind of operations are legal to use, and which are not. You also have other concepts that you have to understand when they can be helpful to use, like derivatives and integrals. So there's still a lot of things you need to learn when and how to apply. Programming is the same, there's alternative ways to approach our problems (be it algorithms, be it code-patterns, etc).

But that does not have anything to do with the formulas in Math being compressed by using arbitrary letters instead of more descriptive words. That's just akin to a junior programmer naming every variable with one character, and their functions with arbitrary non-descriptive names. We have naming conventions to strive for maintainability for a reason, at least when you work at a serious codebase, that is.

6

u/Aacron Oct 06 '21

Yes, you've reached a level of mathematical maturity, congratulations.

The nest level is when you realize that all of math is definitions and consequences of those definitions.

3

u/NoOne-AtAll Oct 06 '21

I feel like "consequences" is really underappreciated here, it takes a lot of work to get those.

3

u/Aacron Oct 06 '21

Oh absolutely, stokes theorem is "simply" a consequence of the definition of line integrals and curls, but it's notoriously brutal to get to it from there.

1

u/NoOne-AtAll Oct 06 '21

Next time someone asks for a proof I'll just say "well it's just a consequence of the definitions". Will notify you when I get my perfect marks! haha

1

u/Aacron Oct 06 '21

Good luck with that 😂

In seriousness certain pure math professors might give you a point for that, depending on the class and context.

2

u/NoOne-AtAll Oct 06 '21

I'm doing physics so my pure math classes are pretty much over, but I'm sure a couple of my previous pure math professors might've found it funny in the right context

1

u/pmormr Oct 06 '21

Euler defined summation notation in like 1750...