Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. How much knowing math well helps programmer?!

How much knowing math well helps programmer?!

Scheduled Pinned Locked Moved The Lounge
questiondiscussion
88 Posts 49 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H hakz code

    Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

    L Offline
    L Offline
    Lost User
    wrote on last edited by
    #57

    Programming is logic. Some programs require maths to solve specific problems, but not all.

    The best things in life are not things.

    1 Reply Last reply
    0
    • L Lost User

      Oh I see my problem. From now on you explain how I should interpret every topic and then I'll agree with you.

      Every man can tell how many goats or sheep he possesses, but not how many friends.

      M Offline
      M Offline
      musefan
      wrote on last edited by
      #58

      Again, I said nothing like that. I just admitted that my interpretation was more limited than yours, and this is why I commented how I did. I don't want you to agree, I just want you to understand what I say before you argue your point

      My opinions are right, and yours are wrong! (or at least that is my opinion)

      L 1 Reply Last reply
      0
      • M musefan

        Again, I said nothing like that. I just admitted that my interpretation was more limited than yours, and this is why I commented how I did. I don't want you to agree, I just want you to understand what I say before you argue your point

        My opinions are right, and yours are wrong! (or at least that is my opinion)

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #59

        You said that my interpretation made the whole thing pointless. So for my contributions to not be pointless I need to understand which interpretations you find acceptable. If I am to interpret everything the same was then what is left but to say "I agree" and move on to the next one?

        Every man can tell how many goats or sheep he possesses, but not how many friends.

        1 Reply Last reply
        0
        • H hairy_hats

          But what is Art?

          W Offline
          W Offline
          wizardzz
          wrote on last edited by
          #60

          The hardest part of art is making it not look like art. Translation and application to this topic: development is an art. When done properly the end result is simple and understandable, maybe even cold. But if you looked at the route to get there, you would understand it as an art.

          "I have a theory that the truth is never told during the nine-to-five hours. " — Hunter S. Thompson

          1 Reply Last reply
          0
          • N Nagy Vilmos

            A good solid understanding of maths - it's shortened from mathematics not mathematic - is a must in anything by the most trivial application. [example: How do you determine a hash code and how will you know if it's good?] You need a good knowledge of logic. Is the decision point in your if statement correct? An understanding of how things work under the hood helps when implementing. A true example, we had to sort a list on the fly as it came in, probably 80-100 items through per minute and it needed to refresh the display. Easy yes? The sort algorythym moved about the values rather than the references and it was pants, a quick index in the middle and sorting was reduced to negligible. Only sorting when refreshing the display was another cheap improvement.


            Panic, Chaos, Destruction. My work here is done. Drink. Get drunk. Fall over - P O'H OK, I will win to day or my name isn't Ethel Crudacre! - DD Ethel Crudacre I cannot live by bread alone. Bacon and ketchup are needed as well. - Trollslayer Have a bit more patience with newbies. Of course some of them act dumb - they're often *students*, for heaven's sake - Terry Pratchett

            L Offline
            L Offline
            lewax00
            wrote on last edited by
            #61

            Nagy Vilmos wrote:

            maths - it's shortened from mathematics not mathematic

            That's terrible reasoning...math could also be considered a shortened form of mathematics. (Now if you were arguing about the plurality of it that's a better argument.)

            1 Reply Last reply
            0
            • M musefan

              I didn't say logic was required. I said it helps, and by that I mean being a logical thinker is a plus. like someone that has good problem solving skills etc. If you mean the AND/OR/NOT etc. logic then that is certainly another plus in some areas of programming

              My opinions are right, and yours are wrong! (or at least that is my opinion)

              K Offline
              K Offline
              Klaus Werner Konrad
              wrote on last edited by
              #62

              AND / Or / NOT is all boolean algebra - and tht's pure math ...

              1 Reply Last reply
              0
              • H hakz code

                Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                I Offline
                I Offline
                ii_noname_ii
                wrote on last edited by
                #63

                Math is good logic. And I feel insulted that some people here mention "art": the exact opposite of objective reality and logic. Art is for retards; logic, math and programming is for geniuses... :P

                S 1 Reply Last reply
                0
                • H hakz code

                  Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                  R Offline
                  R Offline
                  R Erasmus
                  wrote on last edited by
                  #64

                  I, as the rest of the guys here feel that programming and maths have got very similar traits. I didn't study maths at varsity however have got a maths oriented brain. (or logical). The company I'm working for specialized in aircraft systems/aircraft manafacturing and there is alot of highlevel maths that floats around in some of these systems. That said, not everyone in the company are maths geniusses. I would say that it is important to know a maths guru when working with complex software systems however not needed to be a programmer. Guru Maths = complex algorithms. Its very rare that one stumbles across a complex algorithm as a programmer, and when you do, ask a friend.

                  "Program testing can be used to show the presence of bugs, but never to show their absence." << please vote!! >>

                  1 Reply Last reply
                  0
                  • H hakz code

                    Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                    S Offline
                    S Offline
                    Stefan_Lang
                    wrote on last edited by
                    #65

                    I suppose it depends on what you do, and what tools you have. On my second job I was mainly responsible for the develpment and integration of neural networks into an automated visual quality assurance system, but the math involved was entirely covered by the tool, NeuralWorks. In my current job, I write algorithms for the planning of tool paths for huge milling machines, and although I have tools like Mathematica available, I still do have to develop and write numerical algorithms all by myself because we desperately need to optimize them for our specific needs. That said, I spent more than 10 years programming applications that did not require any real mathematics at all, except maybe for the programming logic inherent in all programs.

                    1 Reply Last reply
                    0
                    • I ii_noname_ii

                      Math is good logic. And I feel insulted that some people here mention "art": the exact opposite of objective reality and logic. Art is for retards; logic, math and programming is for geniuses... :P

                      S Offline
                      S Offline
                      Stefan_Lang
                      wrote on last edited by
                      #66

                      I beg to disagree. Math is all about making complicated systems looking simple. When I see a short and seemingly simple formula expressing the core of an incredibly complex problem, then that's beautiful, and in its own way, that is Art. To give an example that (hopefully) most people will understand, the formula

                      E = mc^2

                      appears to be extraordinarily simple, but it is the result of some complex mathematical derivations, based on a few physical theorems. Another example although not so widely known, are Bezier Splines and their inherent geometrical properties, including the algorithms used to work with them. Yet another example are fractals, although I have to admit that the beauty mostly lies in the way people use to visualize them. Still, the fact that you can create constructs of virtually infinite complexity just from a simple formula or small set of formulas, turns fractals into objects of art. I pity anyone who cannot appreciate the beauty that emerges from the underlying mathematics, because that is what nourishes our curiosity and drives us mathematicians to research ever more complex systems.

                      L 1 Reply Last reply
                      0
                      • H hakz code

                        Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                        T Offline
                        T Offline
                        Thornik
                        wrote on last edited by
                        #67

                        It's very depends from your specialization. I work in document management area, databases, networking, etc - NO ANY MATH. My main pain-in-the-ass is fighting with hidden sh*t inside libraries. Sounds boring, but it's like a good detective! :) So my "programming" is crime investigation. :))

                        1 Reply Last reply
                        0
                        • S Stefan_Lang

                          I beg to disagree. Math is all about making complicated systems looking simple. When I see a short and seemingly simple formula expressing the core of an incredibly complex problem, then that's beautiful, and in its own way, that is Art. To give an example that (hopefully) most people will understand, the formula

                          E = mc^2

                          appears to be extraordinarily simple, but it is the result of some complex mathematical derivations, based on a few physical theorems. Another example although not so widely known, are Bezier Splines and their inherent geometrical properties, including the algorithms used to work with them. Yet another example are fractals, although I have to admit that the beauty mostly lies in the way people use to visualize them. Still, the fact that you can create constructs of virtually infinite complexity just from a simple formula or small set of formulas, turns fractals into objects of art. I pity anyone who cannot appreciate the beauty that emerges from the underlying mathematics, because that is what nourishes our curiosity and drives us mathematicians to research ever more complex systems.

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #68

                          Bravo. :thumbsup::thumbsup::thumbsup:

                          Every man can tell how many goats or sheep he possesses, but not how many friends.

                          1 Reply Last reply
                          0
                          • H hakz code

                            Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                            B Offline
                            B Offline
                            BubingaMan
                            wrote on last edited by
                            #69

                            Some GUI stuff is impossible to do without knowledge of geometrics. Some business logic stuff is impossible to do without knowledge of calculus. However, some GUI as well as business logic stuff requires none of both (especially in mainstream LOB applications). So the answer obviously is: it depends what you do. Or, more specifically, what the project you are working on is supposed to do. Having said that, I do think that people with a "natural" math-oriented brain will be better programmers. It's all about the logic and reasoning. For example, the reasoning behind things like refactoring is quite similar to factorizing in algebra. In high-school, most of the time you'll see that people are either good in math, or they are good at languages. Only rarely will people be good at both. In my experience, the math oriented people will turn out to be the better software engineers (with or without actually studying math). I guess it's just the way their brain works. My girlfriend is one of those "language oriented" people. I could spent all day explaining what a recursive function is and I guarantee you that she won't be able to comprehend it. :-)

                            1 Reply Last reply
                            0
                            • H hakz code

                              Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                              P Offline
                              P Offline
                              Picozzi
                              wrote on last edited by
                              #70

                              In my opinion, math is nothing more than the study of logic. And, as everyone seems to agree, programming requires logic ... I think that there is a big misunderstanding of what mathematics really are. People focus on math being complex equation and strange symbols: this is not math, this is the language we chose to explore (cartesian) logic. Would you reduce medicine to its wording, or coding to C++? I am very surprised to read that many programmers think that they do not need math to do their job. Look at any code: "function", "class" (=equivalence class), "variable", "array" (=vector), "+", "*", "%", ... understanding how these objects interact is the aim of mathematics! Even at a more fundamental level, a code essentially consists of 2 things: Logical tests (!) and loops (=matrix multiplication). Math is everywhere in a code, even if you don't see it! There is no doubt for me that math helps programmers. I would even say that there is no programer without mathematical knowledge (understanding what are functions or classes is a mathematical knowledge in itself, even if you did not learn it in your math class! ). Coders use maths at every line of their code without thinking about it. The language used to express things is slightly different, but the core is the same. Finally, when considering very complex computations, one quickly realizes that the mathematical language allows faster and better analysis of the problem than any programing language: It was developed in this scope!

                              J 1 Reply Last reply
                              0
                              • H hakz code

                                Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                                V Offline
                                V Offline
                                Vimalsoft Pty Ltd
                                wrote on last edited by
                                #71

                                i am not good at math but i can program. if you have math its a bonus.

                                Vuyiswa Maseko, Spoted in Daniweb-- Sorry to rant. I hate websites. They are just wierd. They don't behave like normal code. C#/VB.NET/ASP.NET/SQL7/2000/2005/2008 http://www.vuyiswamaseko.com vuyiswa@dotnetfunda.com http://www.Dotnetfunda.com

                                1 Reply Last reply
                                0
                                • L Lost User

                                  I think that all of it is. You have something, it has a value, what happens depends on what that value is in relation to some other value or values. I think that is maths.

                                  Every man can tell how many goats or sheep he possesses, but not how many friends.

                                  D Offline
                                  D Offline
                                  David Illescas Lastra
                                  wrote on last edited by
                                  #72

                                  Most math that I've seen involves transforming something, an equation, a structure, into another form in order to make it more useful. Many proofs are little more than a series of transformations which demonstrate some equivalence. I believe this attitude of being able to and wanting to transform something into many different forms, each of which conceptually represents a different idea, is valuable and useful to programming.

                                  1 Reply Last reply
                                  0
                                  • H hakz code

                                    Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                                    M Offline
                                    M Offline
                                    MNVoH
                                    wrote on last edited by
                                    #73

                                    Well, I'm a college student, and in my class no one's even half as good as me in programming. BUT, I'm the only one who hasn't passed Maths 2(The one with the multiple integrals) and I've failed twice up to now. So I don't think that they have a direct impact on each other, at least not for me.

                                    1 Reply Last reply
                                    0
                                    • P Picozzi

                                      In my opinion, math is nothing more than the study of logic. And, as everyone seems to agree, programming requires logic ... I think that there is a big misunderstanding of what mathematics really are. People focus on math being complex equation and strange symbols: this is not math, this is the language we chose to explore (cartesian) logic. Would you reduce medicine to its wording, or coding to C++? I am very surprised to read that many programmers think that they do not need math to do their job. Look at any code: "function", "class" (=equivalence class), "variable", "array" (=vector), "+", "*", "%", ... understanding how these objects interact is the aim of mathematics! Even at a more fundamental level, a code essentially consists of 2 things: Logical tests (!) and loops (=matrix multiplication). Math is everywhere in a code, even if you don't see it! There is no doubt for me that math helps programmers. I would even say that there is no programer without mathematical knowledge (understanding what are functions or classes is a mathematical knowledge in itself, even if you did not learn it in your math class! ). Coders use maths at every line of their code without thinking about it. The language used to express things is slightly different, but the core is the same. Finally, when considering very complex computations, one quickly realizes that the mathematical language allows faster and better analysis of the problem than any programing language: It was developed in this scope!

                                      J Offline
                                      J Offline
                                      johnrhdev
                                      wrote on last edited by
                                      #74

                                      I don't think you need to be a mathematician to program, but if you have a good understanding of mathematical theorems than you have the advantage. All of the great algorithms used in computing are mathematically based. They begin as mathematical constructs that are transformed into a program. Just as someone can write without fully understanding grammar, people can program without fully understanding mathematics, but can you create something as beautiful as an encryption algorithm? Watch some of the series like the history of Mathematics and you'll see why math is so important and ingrained in software. Without it we would not have computers.

                                      1 Reply Last reply
                                      0
                                      • H hakz code

                                        Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                                        Y Offline
                                        Y Offline
                                        YvesDaoust
                                        wrote on last edited by
                                        #75

                                        Any decent programmer must master Boole algebra, calculus of propositions and elementary integer arithmetic. A good programmer should have some education on the semantics of programming languages and be able to use program correctness verification techniques (invariants). Also good notions of algorithm efficiency. Understanding of "The Foundations of Computer Science" by Aho and Ullman is by no means a sin. All the rest is more a matter of the application area.

                                        1 Reply Last reply
                                        0
                                        • H hakz code

                                          Recently I had a fun discussion with my colleague(he works on algorithms) on this topic, thought you guys would give some insight.

                                          S Offline
                                          S Offline
                                          Stephen Lloyd
                                          wrote on last edited by
                                          #76

                                          Math is not just arithmetic. Arithmetic is a subset of math. There are a lot of subsets. Linear math, non-linear math, logic, sets, (as the King of Siam was fond of saying) etc, etc. We got exposed to lots of the subsets in public school.* Most of the program logic on our desktops doesn't go beyond obvious math subsets. Neither does most of the code we develop.* Keep in mind our programs have to talk to some fairly ignorant hardware.* Some of the programming we do translates very high level math concepts (think Wolfram, ...) into programs that our ignorant hardware will understand. Some of it is a lot simpler. All of it depends on at least the logic subset of math. * Rant opportunity

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups