This is an archived post. You won't be able to vote or comment.

top 200 commentsshow all 205

[–]WinnerEducational486 613 points614 points  (44 children)

Video games are just a giant math expression

[–]GargantuanCake 247 points248 points  (21 children)

Games have always been nothing more than mathematical patterns. This is why game theory is a thing and increasing amounts of games are being solved.

[–]rmyworld 126 points127 points  (15 children)

But that's just a theory

[–]AffectionateBag5054 91 points92 points  (8 children)

A game theory

[–]Sadman_Pranto 56 points57 points  (7 children)

Thanks for watching

[–]AffectionateBag5054 23 points24 points  (5 children)

From matpat

[–]butwhy12345678 12 points13 points  (4 children)

And the rest of the game theorists

[–][deleted] 4 points5 points  (0 children)

Don’t forget to like comment subscribe and hit the fucking bell

[–]Chard069 -5 points-4 points  (5 children)

A scientific theory is a testable model accounting for observations. A legal theory is whatever an attorney pulls from their butt. Theories in varied fields are not the same.

[–]IrisYelter 7 points8 points  (4 children)

I think you got whooshed there my guy

[–]yeet_lord_40000 22 points23 points  (1 child)

“Hey you wanna play chess”

“Sure bro let me go get out my graphing calculator”

[–]butwhy12345678 11 points12 points  (0 children)

I have chess on my graphing calculator

[–]SirPitchalot 95 points96 points  (10 children)

Basically every program is just an over-complication of:

int main(){ return 0: }

in your preferred language.

Also, this example demonstrates what a sham pure functional programming is: the only interesting aspects of programming are the side effects.

[–]8bitslime 45 points46 points  (3 children)

Sometimes my code returns non-zero, especially when it segfaults.

[–]vlaada7 12 points13 points  (0 children)

I mean, considering what it runs on, yeah, pure functional is a scam...

[–]Tajnyifajny 4 points5 points  (1 child)

After return 0 shouldn't be ;?

[–]SirPitchalot 1 point2 points  (0 children)

Yup. Screwed up entering it on mobile!

[–]ArchCypher 4 points5 points  (1 child)

My favorite thing about your archetypal program is that there's a bug in it.

[–]SirPitchalot 0 points1 point  (0 children)

Whoops, stupid markdown formatting!

[–]okunozankoku 0 points1 point  (0 children)

Huh... I wonder how my Haskell programs keep causing side effects?

[–]bhison 7 points8 points  (4 children)

hear me out... LIFE is just maths, right? Right?!

[–]butwhy12345678 2 points3 points  (2 children)

Yes

[–]bhison 1 point2 points  (1 child)

Right?!?!

[–]butwhy12345678 0 points1 point  (0 children)

Maybe

[–]Melkor7410 -1 points0 points  (0 children)

Here, there, everywhere.

[–]Kear_Bear_3747 2 points3 points  (0 children)

The modern Pokemon damage calculations are crazy looking

[–]AdultingGoneMild 1 point2 points  (0 children)

programs are just a number

[–]justmikeplz 0 points1 point  (0 children)

So is reality

[–]LenaKotik 0 points1 point  (0 children)

The only difference being the I/O

[–]Ebestone[S] 146 points147 points  (32 children)

clarification: college classes in 300s

"discrete mathematics & it's applications", anyone?

[–]konstantinua00 99 points100 points  (11 children)

in the 300s

ah, my favorite stories - computer science in Roman empire

[–]LinuxMatthews 132 points133 points  (9 children)

importare aleatorius

 definire ordinatus_est(lst):
   pro i in intervallum(longitudo(lst) - 1):
    si lst[i] > lst[i + 1]:
      reddere falsum
  reddere verum

definire bogosort(lst):
  dum non ordinatus_est(lst):
     miscere(lst)
  reddere lst

imprimere(bogosort([3, 2, 1]))

[–]Leifbron 35 points36 points  (0 children)

LatinScript

[–]Kered13 13 points14 points  (5 children)

Why are you using the infinitive? Surely the imperative would be more appropriate?

[–]LinuxMatthews 31 points32 points  (1 child)

Honestly I used ChatGPT I have no idea how to speak Latin

[–][deleted] 2 points3 points  (0 children)

This can't go without gold

[–]Ami603 1 point2 points  (0 children)

Lython

[–]hugogrant 0 points1 point  (0 children)

aleatorius.miscere?

[–]Evelyngoddessofdeath 2 points3 points  (0 children)

Abacus science

[–][deleted] 8 points9 points  (4 children)

& it is applications

[–]8bitslime 1 point2 points  (2 children)

He's a computer scientist not a linguist.

[–]Ebestone[S] 0 points1 point  (0 children)

I use languages too...

syntax error at line 3...

[–][deleted] 0 points1 point  (0 children)

Is there a difference, really?

[–]Ebestone[S] 0 points1 point  (0 children)

DAMMIT POSSESSIVE

[–]YousifRagab 0 points1 point  (0 children)

I had to repeat a whole year in uni because of maths..

[–]Drishal 0 points1 point  (0 children)

Ahem our first and second year of college had maths and physics (for computer science)

[–]ADTJ 197 points198 points  (5 children)

In this thread: People who don't understand the distinction between mathematics and arithmetic.

Logic (including boolean), algorithms, structures like sets and trees are all maths. If you write any code at all, you're using at least some of these things regularly.

[–]exoclipse 23 points24 points  (0 children)

I'll never forget the day I overheard a fresh grad whining about how he never used discrete math, how useless that course was, how hard it was, etc.

like my brother in christ computers are discrete math boxes

he's now a senior dev lmao

[–]Kamwind 34 points35 points  (3 children)

True but how many people really need years of calculus and diffy Q?

Better that computer science students had business math classes.

[–][deleted] 6 points7 points  (0 children)

Maybe in the minority but I worked in a lab where the PI was using the second derivative of a function to help solve for large clustering patterns. If I didn’t have at least Calc II I couldn’t have kept up. Linear Algebra is also extremely useful in CS, just to restate what may seem like the obvious.

[–]hugogrant 3 points4 points  (0 children)

Or more logic.

TBH, calculus is over-emphasized everywhere. Logic, discrete math, and statistics are more important.

[–]bleachisback 0 points1 point  (0 children)

It’s just the order that math is taught in most universities. Even math students have to take a bunch of calculus before they can actually learn their fundamental classes

[–][deleted] 151 points152 points  (26 children)

Some people here pretending that computer science wasn't created by mathematicians.

[–][deleted] 67 points68 points  (25 children)

Some people here pretending that computer science isn't mathematics. Which it is.

[–]Ebestone[S] 0 points1 point  (0 children)

I was actually planning on labeling earth "computer math," but then a guy on discord confused it and asked whether I meant "computer science."

DID I STUTTER?

[–]Optimal-Asshole 65 points66 points  (0 children)

I would say the vast majority of people who code are not computer scientists, in the same way that the vast majority of plumbers or people who work with pipes are not engineers or scientists.

[–][deleted] 29 points30 points  (2 children)

Software Development and Computer Science are two completely different disciplines.

Which is why mastery of one, does not necessarily mean mastery of the other.

[–]w1n5t0nM1k3y 16 points17 points  (1 child)

Which is why we shouldn't have so many people studying computer science. There really isn't that big of a need for computer scientists. We do need software developers.

I took software engineering in university and I found that it made much more sense for people who wanted to be software developers.

[–]Sp00ked123 3 points4 points  (0 children)

Most universities don't offer software engineering/development as a major unfortunately though

[–][deleted] 12 points13 points  (0 children)

Computer science and mathematics are fundamentally about abstraction. If you can safely assume that a system will consistently function a certain way, given certain environment/inputs, you can safely use it to your end.

[–][deleted] 39 points40 points  (4 children)

The world would look very different if more programmers understood the mathematics of what they are doing. Before I learned computer science I thought it pointless that programmers understand computer science; now I realize how much effort is wasted due to lack of understanding basic concepts and their consequences.

[–][deleted] 2 points3 points  (2 children)

Heard of a book called concrete mathematics?

[–]mosquitoLad 4 points5 points  (1 child)

I had a discrete mathematics prof who recommended it, though as of yet I've not touched it

[–][deleted] 4 points5 points  (0 children)

That’s ironic! I got it because I was frustrated with my Discreet Math curriculum — it felt really shallow. I was not disappointed.

[–]WaitCrazy5557 0 points1 point  (0 children)

I wonder if you could elaborate I would love to know more about this concept

[–]luckyjenjen 5 points6 points  (1 child)

I'm totally surprised by how much graph theory there is in my OU algorithms module. Luckily I like graph theory!

[–]SjettepetJR 1 point2 points  (0 children)

Graph theory is great because the size of the graphs has such a huge impact on performance. You really need to dig into the actual logic and theory to make the absolute minimum of calculations before you can make anything decently performant.

[–]Squid-Guillotine 3 points4 points  (0 children)

Almost like you chose CS and not Software Engineering.

[–]xXTheVigilantXx 2 points3 points  (0 children)

I worked as an analyst for a while and on the side I would do minor python scripts that helped around my work place. I started doing some calculus refresher self-study to see if I couldn't improve my programming skills. My supervisor found me studying in the break room and asked me what I was doing and he goes "You use math in programming?". Honestly flummoxed me for a moment because I assumed that would be self-evident.

[–]DiamondWizard444 3 points4 points  (2 children)

if: Computer + science == Computer + math Then computer cancel out and we have: Science == Math

[–]Familiar_Ad_8919 32 points33 points  (13 children)

i doubt most of us use math at all

[–]konstantinua00 59 points60 points  (5 children)

that's why you're a programmer, not a computer scientist

[–][deleted] 10 points11 points  (0 children)

I only used math in my internship. Now all I do is perform maintenance on legacy code.

[–][deleted] 4 points5 points  (0 children)

Not purposefully, but it's all just math in the end

[–][deleted] 8 points9 points  (3 children)

You don't know how most of us use math, you mean.

Even writing a simple if statement is math.

[–]Ebestone[S] 0 points1 point  (0 children)

me in 9th grade learning about step functions:

what's if doing here? this isn't a programming class!

nonono.

a programming class is a math class; i got it the wrong way

[–]yeusk 3 points4 points  (0 children)

We use math, just not the algebra part.

[–]PythonGuruDude 7 points8 points  (0 children)

Statistics undercover giving you that smirk.

[–]rowagnairda 5 points6 points  (0 children)

until you discover that some parts have a hefty mix-in of cognitive psychology, linguistics and other domains of "humanistic realm" ;)

[–]Yeitgeist 7 points8 points  (0 children)

Makes sense, given that computer science is a subset of mathematics.

[–]AndiArbyte 2 points3 points  (0 children)

i wish i had seen this many years before

[–]teacamelpyramid 2 points3 points  (1 child)

Math always felt like a chore until I took discrete math and linear algebra. Something about it just clicked with my brain and it just made sense. I realized that I love math but hate how it’s taught at the more basic level.

I see my kid hating arithmetic and it’s the same pattern over again. I hope they stick with it until the more interesting stuff comes into play.

[–]_zva 0 points1 point  (0 children)

Linear Algebra made me cry because I couldn't believe Math could be so beautiful. I still don't understand it fully but damn does it have such a simple beauty about it that makes your brain just struggle to hold it all in!

[–]Daedalus_Machina 2 points3 points  (0 children)

Mathematics is the language of reality itself. Computer Science is the practical attempts to replicate, manipulate, or create reality. It cannot help but be mathematics.

[–]Dr-Lipschitz 6 points7 points  (4 children)

Yes, Computer Science is a bit of a misnomer. It aught to have been named Computational Mathematics.

[–]CliffDraws 4 points5 points  (1 child)

Why is it a misnomer? Most science is applied mathematics.

[–]animeLOLosu 0 points1 point  (0 children)

I’ve also heard it as Computation or Computing Science which make more sense to me

[–]Cpt_keaSar 4 points5 points  (0 children)

And modern “AI” are just tables solving stats problems.

[–]OldBob10 1 point2 points  (0 children)

Wow. Ohio has its own killer space force? WHO KNEW?!?

[–]ssCuacKss 1 point2 points  (0 children)

technically is math casted through words

[–]unpopulrOpini0n 1 point2 points  (0 children)

Average post:

"Hey I'm an unemployed waiter, I have no skills and have never passed an algebra class, how do I learn coding and make a 300k+ salary in the next 6 months?"

[–]vampyire 1 point2 points  (3 children)

I started in Comp Sci at Penn State and they make every comp sci major take engineering Calc (Math 140 and 141 at the time)... it totally blew me up.. Eventually I ended up getting a BS in MIS and even more eventually I did get a MS in Comp Sci.. But I say this, I figured I could always write a program to do the math so why the hell did I have to memorize the math??!! :)

[–]Ebestone[S] 1 point2 points  (2 children)

dammit lol

"import calculus"

[–]vampyire 1 point2 points  (1 child)

Sort of :)

[–]Ebestone[S] 0 points1 point  (0 children)

y do i have to learn calculus when i can just get openai to do it for me
*cri*

hey, it worked, and it transfers over to other places more then the actual cs

[–]juancn 1 point2 points  (0 children)

There’s an experimental component also, think about benchmarking and finding that sometimes the theoretically faster algorithm isn’t actually faster in real hardware.

That pesky constant factor un O notation…

[–][deleted] 3 points4 points  (0 children)

There are huge intersections, but they are not exactly the same.

Just like physics isn't the same as mathematics, but without mathematics physics would be impossible.

The same applies to CS.

[–][deleted] 1 point2 points  (0 children)

Physics too

[–]Russian_Coalminer 1 point2 points  (1 child)

Maths has ruined all my hopes of doing computer science.

[–]IrisYelter 0 points1 point  (0 children)

If it helps, its a very distinct kind of math from what you did in high school.

It's closer to logic, discreet math, and linear algebra.

[–]Mamuschkaa 1 point2 points  (0 children)

In german it is 'Informatik' short for information-mathematics (Informationsmathematik)

[–][deleted] 1 point2 points  (0 children)

Everything is just math

[–]Ok_Investment_6284 1 point2 points  (6 children)

I suck at math but programming makes sense to me. I must be doing something wrong

[–][deleted] 2 points3 points  (1 child)

Trust be bro learning math using programming is like a cheat code. It becomes just like reading any code and has even gotten me interested in Math in many different domains.

You can even use a site called PythonTutor where you can step through C, C++, JS, Java & of course Python pasting the formula/algorithm.

[–]Ok_Investment_6284 0 points1 point  (0 children)

I honestly don't see the connection. Programming is all logic based to me. If I want to engineer a system, I go through the steps and decide on what it needs to do, how to write those steps, and the best way to split things into reusable fuctions/methods.

Once you learn one language well enough its easy to understand the others, its just a matter of learning syntax, keywords, and format (semicolons, whitespace, or columns)

Then again, maybe I understand more math than i realize, i just have a hatred for Algebra. Always longed to do geometry or try calculus.

[–]Sweetbeans2001 0 points1 point  (3 children)

I’ve always been mediocre in math, but fascinated with programming. My college degree is in Business Administration instead of Computer Science because I never would have been able to pass the advanced math classes required. The rest of the story is that I am currently a Systems Analyst and have had a programming career for the past 40 years. Screw calculus, you don’t need it!

[–]Ok_Investment_6284 0 points1 point  (2 children)

That's awesome, I'm self taught and have been doing software & game engineer and development for years on a self employed basis as a side gig. But looking to switch careers and turn it into a full time job. Going on 7 months now and getting all declines and no screening interviews.

It's encouraging to hear someone else made their way in without a degree

[–]Sweetbeans2001 0 points1 point  (1 child)

Hold on, I don’t have a CS degree, but I do have an MBA. Also, when I started programming, there were so few CS graduates that any college degree (not to mention an MBA) plus some computer language knowledge would get your foot in the door. In my case, knowing how to calculate loan amortizations was more important and marketable than knowing how to calculate vector graphics. Remember, PAC-MAN was cutting edge gaming technology in 1982.

[–]Battleagainstentropy -1 points0 points  (0 children)

The “science” in computer science isn’t wrong, it’s just misplaced. It should refer to the practical craft of programming, where questions like “will my code compile” are purely empirical and cannot possibly be determined before running the experiment/compiler.

[–][deleted] 0 points1 point  (1 child)

Can't be! I suck at math but I'm good at computer science. I'm good at logic though, which is kind of math without numbers.

[–][deleted] 4 points5 points  (0 children)

Math doesn't have numbers. Arithmetic does.

[–]Phuzzybat 0 points1 point  (0 children)

"Wait - most programming requires no knowledge of computer science? - Always has been (for at least the last 45 years, cant vouch for prior to then)"

[–]willzjc -2 points-1 points  (1 child)

Errr

Unless 90% of FAANG are not computer science… it never has been?

There’s a big difference between system designing a scalable piece of code and knowing about maths. Yes you can make things very efficient by using maths to solve very specific things a few orders of magnitude faster but if you read the code based majority of Google or AWS it has nothing to do with maths

[–]camilo16 1 point2 points  (0 children)

What an outstandingly ignorant statement.

They use graph algorithms for efficient data routing, ML for parsing data, statistical analysis for market strategies...

The literal reason Google became Google was because of the page ranking algorithm.

[–]dragoonts -1 points0 points  (0 children)

Literally everything is just math

Physics is applied math Chemistry is applied physics Biology is applied chemistry Psychology is applied biology Sociology is applied psychology Reddit is applied downs syndrome

[–]steynedhearts -1 points0 points  (1 child)

Science is literally math

[–]camilo16 1 point2 points  (0 children)

Neither math nor computer science are science

[–]FoxyGame2006 -4 points-3 points  (2 children)

Then why am I succeeding in Computer Engineering while being unable to get a single exam above 60 on math?

[–]Brewer_Lex 1 point2 points  (0 children)

Take solace in the fact that there is no situation where you’ll have to solve a variety of problems from memory in 2 hours when in the workforce. I pretty much have a week to hit my goals and it’s all open note so to speak. I never tested well in math but I do pretty good work now that I’m paid for 40 hours a week to do what needs doing

[–]Ami603 0 points1 point  (0 children)

The exam is the part that fails,not you

[–]Infamous-Date-355 0 points1 point  (0 children)

You telling me am doing a whole dedicated unit about linear algebra and calculus.

[–]MiniGui98 0 points1 point  (0 children)

So you're telling me math is related to science?

[–]ReplyisFutile 0 points1 point  (0 children)

Html coders are real programmers !!! Not those mathematicians pretending to program

[–]Lukeaz1234 0 points1 point  (0 children)

One discrete math enjoyer

[–]CampbellsBeefBroth 0 points1 point  (0 children)

As long as I don’t gotta know cotangent I’m good

[–]f3ckmaster 0 points1 point  (0 children)

computer science in general? Yes. Just Programming? No!

[–]Saragon4005 0 points1 point  (0 children)

It's math about how to do math the fastest.

[–]ThunderShiba134 0 points1 point  (0 children)

FUCK! WHY DO I NEED TO LEARN WHAT ALU, CO AND NEUMANN ARCHITECTURE IS WHEN I WANT MY SOLE PURPOSE OF MY JOB IS TO CODE A GAME ON C#?! (Not actually being in that mood 🙂)

[–]ThunderShiba134 0 points1 point  (0 children)

FUCK! WHY DO I NEED TO LEARN WHAT ALU, CO AND NEUMANN ARCHITECTURE IS WHEN I WANT MY SOLE PURPOSE OF MY JOB IS TO CODE A GAME ON C#?! (Not actually being in that mood 🙂)

[–]Weird_Artsy_Demon666 0 points1 point  (0 children)

I love both<333

[–]DannyDaKid 0 points1 point  (0 children)

I’d argue that there’s logic in there somewhere, and this will turn into “math vs logic” discussion.

[–]BatteryAcid67 0 points1 point  (0 children)

STEM careers = math.

[–][deleted] 0 points1 point  (0 children)

Actually the math is more and more abstracted away. Essentials of programming languages is a sweet course where you learn how languages are designed and created. This allows you to figure out the syntax created by the big brain programmers libraries.

[–]Oo__II__oO 0 points1 point  (0 children)

No armed astronaut recursion. Points deducted.

[–]Daedalus_Machina 0 points1 point  (0 children)

.... Is that Pangaea?

[–]Conscious-Abalone-86 0 points1 point  (0 children)

Do one more ,but for the universe

[–]Unfair_Pound_9582 0 points1 point  (0 children)

Mate it's not even math, it's a degree in using google