7.5 KiB
Mathematics
Mathematics (also math or maths, from Greek mathematicos, learned) is the best science (yes, it is a formal science), which deductively deals with numbers and other abstract structures with the use of pure logic, in as rigorous and objective way as possible. In fact it's the only true science that can actually prove things thanks to its tool of mathematical proof (other sciences may only disprove or show something to be very likely). It is immensely important in programming and computer science. Mathematics is possibly the intellectually most difficult field to study in depth, meant for the smartest people; the difficulty, as some mathematicians themselves say, comes especially from the extremely deep abstraction (pure mathematics often examines subjects that have no known connection to reality and only exist as a quirk of logic itself). It is said that mathematics is the only universal language in our universe -- if we ever get in contact with an intelligent alien civilization, mathematics is likely to be used for communication.
Some see math not as a science but rather a discipline that develops formal tools for "true sciences". The reasoning is usually that a science has to use scientific method, but that's a limited view as scientific method is not the only way of obtaining reliable knowledge. Besides that math can and does use the principles of scientific method -- mathematicians first perform "experiments" with numbers and generalize into conjectures and later "strong beliefs", however this is not considered good enough in math as it actually has the superior tool of proof that is considered the ultimate goal of math. I.e. math relies on deductive reasoning (proof) rather than less reliable inductive reasoning (scientific method) -- in this sense mathematics is more than a science.
Soydevs, coding monkeys (such as webdevs) and just retards in general hate math because they can't understand it. They think they can do programming without math, which is just ridiculous. This delusion stems mostly from these people being highly incompetent and without proper education -- all they've ever seen was a shallow if-then-else python "coding" of baby programs or point-and-click "coding" in gigantic GUI frameworks such as Unity where everything is already preprogrammed for them. By Dunning–Kruger they can't even see how incompetent they are and what real programming is about. In reality, this is like thinking that being able to operate a calculator makes you a capable mathematician or being able to drive a car makes you a capable car engineer. Such people will be able to get jobs and do some repetitive tasks such as web development, Unity game development or system administration, but they will never create anything innovative and all they will ever make will be ugly, bloated spaghetti solution that will likely do more harm than good.
On the other hand, one does not have to be a math PhD in order to be a good programmer in most fields. Sure, knowledge and overview of advanced mathematics is needed to excel, to be able to spot and sense elegant solutions, but beyond these essentials that anyone can learn with a bit of will it's really more about just not being afraid of math, accepting and embracing the fact that it permeates what we do and studying it when the study of a new topic is needed.
The power of math is limited. In 1932 Kurt Godel mathematically proved, with his incompleteness theorems, that (basically) there are truths which math itself can never prove, and that math itself cannot prove its own consistency (which killed so called Hilbert's program which sought to do exactly that). This is related to the limited power of computers due to undecidability (there are problems a computer can never decide), proven by Alan Turing.
Overview
Following are some math areas and topics which a programmer should be familiar with:
- basics (high-school level math): arithmetic, algebra, expressions, functions, equations, geometry, trigonometry/goniometry, systems of linear equations, quadratic equations, complex numbers, logarithms, analytic geometry (many problems are equivalent to relationships of shapes in N dimensional spaces), polynomials (used in many areas, e.g. error correction codes in networking), ...
- advanced notation: ability to understand the notation that's often used in papers etc. (the big sigma for sum, calculus notation etc.)
- formal logic: computers are based on Boolean logic, knowing basic formulas and theorems here is crucial (e.g. the completeness of NAND or De Morgan's laws), formal logic is also just generally used in formal texts, one should know about predicate vs propositional logic etc.
- proofs: core of high level mathematics, one should know the basic proof techniques (direct, contradiction, induction, ...).
- linear algebra: aka "vectors and matrices", essential in almost every field (graphics, machine learning, ...).
- calculus and differential equations: just essential for advanced math and many fields (graphics, machine learning, electronics, physics, any optimization, ...).
- theoretical computer science: computational complexity (very important), computability, formal languages, computational models (automata, Turing machines, ...), ...
- graph theory: generally useful tools, especially important e.g. in networks or indexing structures in databases.
- number and set theory: sets of numbers (natural, rational, real, complex, ...), prime numbers (important e.g. for cryptography, quantum computing, ...), ...
- discrete math: basic structures such as groups and fields, abstract algebras and the properties of these structures.
- signal processing: Fourier transform and other integral transforms (important e.g. for compression and analysis of signals), aliasing, filter theory, ...
- numerical methods: for simulations and approximations of solutions to problems we can't solve exactly.
- probability/statistics: encountered practically everywhere but very important e.g. in cryptography.
- other: things important in specific fields and/or other weird stuff, e.g. topology, quaternions (graphics, physics), lambda calculus, game theory, fractal geometry, ...