If you like DNray Forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...

 

Role of Math in Programming?

Started by kdivah, Sep 03, 2024, 01:04 AM

Previous topic - Next topic

kdivahTopic starter

What role does mathematics play in a programmer's work?
  •  


soorceBlepe

You know, that's the bread and butter of programming. If you can't think logically, you're gonna have a hard time making a computer do what you want. And where do you learn logic? You guessed it, mathematics. All those if-then-else statements, the loops, the functions, they're all about breaking down complex problems into smaller, manageable bits. That's exactly what you do in math, isn't it? Solving equations, finding patterns, that's all just logic practice.

Now, let's not forget about algorithms. That's just a fancy word for a set of instructions that tells a computer how to do something. And you know what makes a good algorithm? Efficiency. You want your code to run fast, use as little memory as possible, and do what it's supposed to do without any fuss. And how do you make an efficient algorithm? You use mathematics, of course. You've got to understand things like time complexity, space complexity, all that jazz. It's like planning a trip. You want to get from point A to point B in the fastest, most efficient way possible, right? That's what algorithms are all about.

And what about data structures? You know, things like arrays, linked lists, trees, graphs. They're all mathematical constructs. You've got to understand how they work, how to use them, how to manipulate them, to make your code work the way it's supposed to. It's like building a house. You've got to know how to use your materials, how to put them together, to make a strong, stable structure. That's what data structures are, they're the building blocks of your code.

Now, some of you might be thinking, "Yeah, but I don't do any math in my code. I just want to make things look pretty, or make them move around on the screen." Well, even if you're not doing math directly, you're still using mathematical concepts. You're using logic to structure your code, you're using algorithms to make things happen, you're using data structures to store and manipulate data. It's all connected, you see.

And let's not forget about computer science theory. You know, all that stuff about Turing machines, finite state machines, formal languages. It's all math, baby. And it's all important. It's the foundation of what we do. It's like the blueprint for the house. You might not see it when you're living in the house, but without it, the house wouldn't exist.
Mathematics is the lifeblood of programming. It's not just about typing code, it's about thinking logically, understanding complex systems, and solving problems in the most efficient way possible. And if you can't do math, well, you're gonna have a hard time making it in this business. But if you can, well, the world of programming is your oyster.
  •  

unsumpaultal

How can you even think of "coding without math"? A brilliant peer of mine once said, "you gotta grasp math before syntax." What exactly can you code without understanding linear algebra? Calculating algorithm efficiency without logarithms is impossible. I'm not even mentioning complex stuff like finite automata or even simpler things like object-oriented programming.

The question itself feels odd: programming without math has never existed. Even if you're just using a visual macro builder in some fancy environment with no code lines, like Test Complete, math is still essential. You can't escape it, even in the most visual of tools.
  •  

encoranioda

In the early days, the question "Why does a programmer need mathematics?" held the same weight as asking "Why does aeronautics need physics?" or "Why does pharmacy need chemistry?"

In the grand stage of higher education, the objective isn't merely to train graduates to tackle a specific set of problems. Instead, universities aim to cultivate well-rounded individuals, which is why humanities play a significant role in technical specialties. Moreover, it's crucial for graduates to have a solid understanding of areas related to their field, along with the theoretical foundations underlying their work.

So, when pursuing a degree in programming, students find themselves delving deep into mathematics, even if certain sections might not seem immediately relevant to their future careers. However, it's challenging to predict beforehand which mathematical concepts will prove useful and which won't. After all, the world of programming is vast and ever-evolving, with new applications and challenges emerging constantly.

In my experience, a strong mathematical foundation has equipped me with the problem-solving skills and logical thinking necessary to tackle complex programming tasks. It has also opened doors to areas I hadn't initially considered, such as machine learning and data analysis. So, while some students might groan at the sight of yet another math class, I've come to appreciate the value it brings to my programming journey.
I've found that mathematics isn't the only discipline that enriches my skillset. My background in computer science has provided me with a solid foundation in algorithms, data structures, and software engineering principles. However, I've also drawn inspiration from other fields, such as psychology and philosophy, which have shaped my approach to problem-solving and user experience design.
  •  


If you like DNray forum, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...