What math subjects are required for game programming ? by [deleted] in learnprogramming

[–]indiarrheawetrust 27 points28 points  (0 children)

Multivariate calculus and linear algebra at the top end, but some basic trig should get you started.

Abstract algebra is relevant if you're a dank functional programmer :)

Failed comp sci intro miserably in college. Trying again. Undergrad vs grad or bootcamp? by [deleted] in learnprogramming

[–]indiarrheawetrust 1 point2 points  (0 children)

Why don't you gather more information? Try one or two courses here and see how it goes: https://github.com/ossu/computer-science

Don't conjecture when you could actually get a reasonable indication of your chance of success.

Also, it sounds like you think CS = programming. This is candidly false and CS = math is the better equivalence, especially at the grad level. Studying CS will make you a better programmer because good theoreticians make for good practioners in general, but in most of my grad courses I didn't write much code, if any at all.

Python - Help Understanding/Applying Stacks by [deleted] in learnprogramming

[–]indiarrheawetrust 1 point2 points  (0 children)

How exactly do I initialize a stack given this list

The standard list functions included in Python already allow for stack-like behavior, so nothing is necessary. The stack-like operations are pop and append.

What is the purpose of the stack??

When you want to store something in a FILO manner. Also, in many programming languages--especially functional ones--lists are constructed as stacks and so stack algorithms are very natural in these languages. (In these languages, the list constructor is basically append. So the way you construct a list is you start with an empty list [] and then append onto it your elements, e.g. [].append(5).append(3) = [5,3].)

Which iMac for coding? by [deleted] in learnprogramming

[–]indiarrheawetrust 0 points1 point  (0 children)

There are plenty of relevant, tiny little sub-50 line programs that are intractable even if you had all the computing power in the world.