DEV Community

Daniel Reis
Daniel Reis

Posted on

"Programmer need a learn Math"

"Programmer need a learn Math", "Hey, if you want to learn code or script you need Math", this affirmative really seems like fallacy

Always, you really need Math for learning programming?
The answer: MAYBE!

Math in programming is like a similar physic or chemistry in our life, because in programming we learning math abstractions like geometry(x, y, maybe z), Sum. See this example:

Sum in the normal case

Image description

This operation, intuitive remember one "classic loop for"

Sum in Java:

public class SumDemonstration {
    public static void main(String[] args) {
        int n = 10;
        int m = 0;

        for (int i = 1; i <= n; i++) {
            m += i;
        }

        System.out.println("The sum of numbers from 1 to " + n + " is: " + m);
    }
}
Enter fullscreen mode Exit fullscreen mode

"WOW this loop for I use the all times"

  • Yeah this intuitive math in programming. But this concepts abstract like a enough.

The math importance!

Obviously math have a great importance in the many software development, why? Games, Great Apps(COMPLEX), BigData and all software. But, not all software needs advanced mathematics, but at least the basics will be in the code!

Top comments (0)