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. Is programming an art or a science?

Is programming an art or a science?

Scheduled Pinned Locked Moved The Lounge
visual-studiodesignhelptutorialquestion
95 Posts 20 Posters 2 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.
  • T Tim Smith

    Too many variables to be able to prove something without testing. Also, since we are talking human's here, we have to test. The lack of testing in computer science is something that frustrates me to no end. People see a problem, devise a solution, and then claim it is better without showing that the solution doesn't cause side effects. But how do you test? :( Tim Smith I'm going to patent thought. I have yet to see any prior art.

    M Offline
    M Offline
    Marc Clifton
    wrote on last edited by
    #35

    without showing that the solution doesn't cause side effects Have you read the book "Why Technology Bites Back?" Very recommended. The lack of testing in computer science is something that frustrates me to no end. Me too. Something that interests me is how to get programs to test themselves. However, the first step (and also of interest) is tools that can help a programmer to test, and not just debuggers, but things that produce meaningful information (whatever that means). But how do you test? Aye, there's the rub! Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

    1 Reply Last reply
    0
    • M Marc Clifton

      Or a mixture of both? and how much in each category? What are your thoughts, and where do you think programming is an art, and where do you think it is a science? An by art, I'm not referring to GUI or web design or any other graphical element. I mean "art" in the inspirational sense of creativity--the "ah ha" experience when writing a nifty function, for example. Personally, I would say that programming is more of an art, but it has the potential to become more of a science. Sort of like being a doctor in the 19th century vs. in the 21st century. Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

      J Offline
      J Offline
      joan_fl
      wrote on last edited by
      #36

      I think it's 10% art, 90% science... 10% art because I prefer well formatted pretty code. ;P

      N 1 Reply Last reply
      0
      • M Marc Clifton

        voodoo Love it! Especially the "waving a dead chicken...Things programmers do that they know shouldn't work but they try anyway" Good evening, Taka. I liked Chris Losinger's term "craft". Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

        T Offline
        T Offline
        Taka Muraoka
        wrote on last edited by
        #37

        Marc Clifton wrote: I liked Chris Losinger's term "craft". Yes, I've always loved the term "craftsman", with its implications of the love we have for our work, the effort we put in over and above just getting something to work and pushing it out the door. I've had people question me why I bother making my comments look nice and lay out my code the way I do - what a total waste of time! But I give a damn about how my code looks, even if doesn't make a difference to how it runs. I make the analogy between when you're out looking to buy a car. If it's dirty and the engine is covered in oil then the chances of the owner having taken care of it and it being in good condition mechanically are not good. I also like the connection with tools. A master carpenter will have the best tools he can afford, is very proud of them and takes care of them. I think the best sign that you've make a good hire is when the new guy spends the first few hours on his first day installing his toolset :-)


        I'd wear a miniskirt and pimp myself for an extra ten grand a year. - David Wulff

        M 1 Reply Last reply
        0
        • M Marc Clifton

          Or a mixture of both? and how much in each category? What are your thoughts, and where do you think programming is an art, and where do you think it is a science? An by art, I'm not referring to GUI or web design or any other graphical element. I mean "art" in the inspirational sense of creativity--the "ah ha" experience when writing a nifty function, for example. Personally, I would say that programming is more of an art, but it has the potential to become more of a science. Sort of like being a doctor in the 19th century vs. in the 21st century. Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

          N Offline
          N Offline
          Nemanja Trifunovic
          wrote on last edited by
          #38

          Neither. It's a skill. :beer:

          M K 2 Replies Last reply
          0
          • J joan_fl

            I think it's 10% art, 90% science... 10% art because I prefer well formatted pretty code. ;P

            N Offline
            N Offline
            Nitron
            wrote on last edited by
            #39

            joan_fl wrote: 10% art :wtf: What about the UI?!?! "If it has a nicer splash screen, it's gotta run better!" (Right? :rolleyes: ) Or are you one of those form follows function types... :~ - Nitron


            "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb

            J 1 Reply Last reply
            0
            • N Navin

              The technical term for that is "code monkey". :-D Even a broken clock is right twice a day.

              J Offline
              J Offline
              Jorgen Sigvardsson
              wrote on last edited by
              #40

              ROFL! :laugh: -- This space for rent.

              1 Reply Last reply
              0
              • M Marc Clifton

                It would be in the same category than astrology Sometimes I think it is! It is was about science, how to explain all these bugs ? Well, that's why I asked the question. If it were more scientific, we would have less bugs. We would have better designs, better implementations. Why can't it be more scientific??? Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

                K Offline
                K Offline
                KaRl
                wrote on last edited by
                #41

                Marc Clifton wrote: Why can't it be more scientific??? Because we aren't Vulcans :-D Logic is a tool we use, but we aren't logic beings (open any newspaper if you don't believe me ;)) Marc Clifton wrote: We would have better designs, better implementation Perhaps not? I think that intuition is an important part of my creativity, and there's something outside the conceptual field :)


                Ohé Partisans, Ouvriers et Paysans C'est l'alarme! Le Chant des Partisans

                J M 2 Replies Last reply
                0
                • N Nemanja Trifunovic

                  Neither. It's a skill. :beer:

                  M Offline
                  M Offline
                  Marc Clifton
                  wrote on last edited by
                  #42

                  It's a skill. Ah. You might have hit upon an assumption I made in the word "programming", in that it involves "problem solving", not just "coding". Would you say that the problem solving side of "programming" can be artistic? Or is problem solving so far outside of the domain of programming that it doesn't really apply to programming? Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

                  N 1 Reply Last reply
                  0
                  • N Nemanja Trifunovic

                    Neither. It's a skill. :beer:

                    K Offline
                    K Offline
                    KaRl
                    wrote on last edited by
                    #43

                    Nemanja Trifunovic wrote: It's a skill. Are you still working with punch cards[^]? :-D


                    Ohé Partisans, Ouvriers et Paysans C'est l'alarme! Le Chant des Partisans

                    C 1 Reply Last reply
                    0
                    • M Marc Clifton

                      voodoo Love it! Especially the "waving a dead chicken...Things programmers do that they know shouldn't work but they try anyway" Good evening, Taka. I liked Chris Losinger's term "craft". Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

                      T Offline
                      T Offline
                      Taka Muraoka
                      wrote on last edited by
                      #44

                      And in related news... http://www.chc-3.com/pub/beautifulsoftware.htm[^] Most software is so bad, in fact, that if it were a bridge, no one in his or her right mind would walk across it. If it were a house, we would be afraid to enter. The only reason we (software engineers) get away with this scam is the general public cannot see inside of software systems. If software design were as visible as a bridge or house, we would be hiding our heads in shame. We would not accept a new house with sloping floors, holes in the ceilings, nails sticking out of the walls, and an outrageous price -- even if it minimally met basic needs. We would not be content with the explanation: "Well, it has a front door, which usually opens. You can find your way to the kitchen, but watch out for the nails. The holes in the ceiling don't really leak. And sure it ran 300% over budget, but houses often do." I can see you now, jumping up and down saying "but isn't this obvious?!?!". Only if it were... I can't recall ever anyway arguing that we should be writing our code more beautifully, though :-) Except me, of course :laugh:


                      I'd wear a miniskirt and pimp myself for an extra ten grand a year. - David Wulff

                      K B M 3 Replies Last reply
                      0
                      • M Marc Clifton

                        An engineer without a sense of art is a mechanical robot. Art without a sense of science is an irrelevant abstraction? (Couldn't help myself). So, art is implicit in the non-mechanical aspects of engineering (or science in general)--ie., the creative aspects. Creativity = art? This space for rent. $5 for "Marc Loves Karen" going once... going twice... Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

                        J Offline
                        J Offline
                        Jorgen Sigvardsson
                        wrote on last edited by
                        #45

                        Marc Clifton wrote: Art without a sense of science is an irrelevant abstraction? That's the other side of the coin. I've seen web designers who fall into that category. When asked if they could add some logic behind their pages their faces went blank... "logic?" Marc Clifton wrote: Creativity = art? I'd like to think so. I associate art with the act of creating and expressing something using some sort of symbology may it be words, numbers, mathematical equations, and science with the act of gathering the necessary tools may it be statistical data, facts, rules, logic, etc. Am I off base on this one? -- This space for rent.

                        M 1 Reply Last reply
                        0
                        • M Marc Clifton

                          and you can compensate lack of one with the other. Aahh. To a point. OK, how about this--people who are more imaginative tend to be "artistic" in their programming--innovative, more risk taking, while people with less imagination tend to be "scientific"--tried and true technologies and solutions. It seems that both can lead to disaster if taken to the extreme, and neither alone can solve certain complex problems. Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

                          P Offline
                          P Offline
                          peterchen
                          wrote on last edited by
                          #46

                          yeah, you have the typical endpoint problems. I think it's similar to science: what you lack in gift you can make up with patient study. But you need both to be really successful.


                          If I could find a souvenir / just to prove the world was here   [sighist]

                          1 Reply Last reply
                          0
                          • T Taka Muraoka

                            And in related news... http://www.chc-3.com/pub/beautifulsoftware.htm[^] Most software is so bad, in fact, that if it were a bridge, no one in his or her right mind would walk across it. If it were a house, we would be afraid to enter. The only reason we (software engineers) get away with this scam is the general public cannot see inside of software systems. If software design were as visible as a bridge or house, we would be hiding our heads in shame. We would not accept a new house with sloping floors, holes in the ceilings, nails sticking out of the walls, and an outrageous price -- even if it minimally met basic needs. We would not be content with the explanation: "Well, it has a front door, which usually opens. You can find your way to the kitchen, but watch out for the nails. The holes in the ceiling don't really leak. And sure it ran 300% over budget, but houses often do." I can see you now, jumping up and down saying "but isn't this obvious?!?!". Only if it were... I can't recall ever anyway arguing that we should be writing our code more beautifully, though :-) Except me, of course :laugh:


                            I'd wear a miniskirt and pimp myself for an extra ten grand a year. - David Wulff

                            K Offline
                            K Offline
                            KaRl
                            wrote on last edited by
                            #47

                            Taka Muraoka wrote: but isn't this obvious No, IMO it' not. How many instructions does a software need to run compared to the number of components used to make a car, for example ? Programming is far more complex than mechanical construction, because, between others: * it's a new technology and everything needs to be discovered * The tolerance to errors is far lower with softwares (a car could run with the ashtray cover broken, it's harder for a sofware with a stake overflow :))


                            Ohé Partisans, Ouvriers et Paysans C'est l'alarme! Le Chant des Partisans

                            T 1 Reply Last reply
                            0
                            • M Marc Clifton

                              To use Chris Losinger's word: a "craft"? I'm wondering how much of the creative part of programming could actually be done mechanically at the present time. Are there are set of rules that can get you to the 80-90% mark of implementing a quality program? This is not intended to obsolete the programmer, but to free him/her to perform truly creative tasks. (We've heard that line before, and it always seems to turn out to simply change our tasks, never really freeing us. Reminds me of the book "How Technology Bites Back") Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

                              J Offline
                              J Offline
                              Jon Rista
                              wrote on last edited by
                              #48

                              Its probably possible to craft an AI that could generate code for you. But there are two things about that that should be noted. First, and AI can never be more creative than the rules it follows. And two, it takes creativity to craft the AI in the first place. ;) I personally enjoy scraping together a program from absolute nothing. The last month I've been rewriting many of Microsofts controls found in the .NET framework, adding features they lack, etc. What fun is there in having a machine program for you? Or, for that matter, having a billion dollar company write more than half your classes for you? ;) I would rather enjoy the time writing that 80-90% of code, and then enjoy the rest even more because I'd know I'm nearing my goal.

                              M 3 Replies Last reply
                              0
                              • K KaRl

                                Marc Clifton wrote: Why can't it be more scientific??? Because we aren't Vulcans :-D Logic is a tool we use, but we aren't logic beings (open any newspaper if you don't believe me ;)) Marc Clifton wrote: We would have better designs, better implementation Perhaps not? I think that intuition is an important part of my creativity, and there's something outside the conceptual field :)


                                Ohé Partisans, Ouvriers et Paysans C'est l'alarme! Le Chant des Partisans

                                J Offline
                                J Offline
                                Jon Rista
                                wrote on last edited by
                                #49

                                I gotta agree. :D Humans aren't particularly known for their logic. Besides, everyone enjoys bugs, right? LOL Where is the fun in writing a perfect program first time around? Speaking of bugs. When it comes to science, I sort of remember my chemistry classes beeing loaded with their fair share of mishaps. :omg:

                                M 1 Reply Last reply
                                0
                                • K KaRl

                                  Taka Muraoka wrote: but isn't this obvious No, IMO it' not. How many instructions does a software need to run compared to the number of components used to make a car, for example ? Programming is far more complex than mechanical construction, because, between others: * it's a new technology and everything needs to be discovered * The tolerance to errors is far lower with softwares (a car could run with the ashtray cover broken, it's harder for a sofware with a stake overflow :))


                                  Ohé Partisans, Ouvriers et Paysans C'est l'alarme! Le Chant des Partisans

                                  T Offline
                                  T Offline
                                  Taka Muraoka
                                  wrote on last edited by
                                  #50

                                  Oops. By "you", I meant Marc Clifton. He's done this a few times in the past :-) I was talking more about the fact that the article was arguing that we should be writing our code to be cleaner, more well-thought out and use existing tools. Which is, of course, "obvious", we just don't do it all the time :laugh:


                                  I'd wear a miniskirt and pimp myself for an extra ten grand a year. - David Wulff
                                  Awasu[^]: A free RSS reader with support for Code Project.

                                  M 1 Reply Last reply
                                  0
                                  • M Marc Clifton

                                    the closer you get to the hardware the more scientific it becomes. Oooh, I've seen some really artistic hardware engineering. More in the analog world, but sometimes some really interesting things in the digital world. Boy, just think about those pictures magnified a million times of all the transistors in a processor. I always thought there was a lot of "art" in the laying of circuit boards (especially when things like 6 or more layers were unheard of or prohibitively expensive). I might have misunderstood you though--yes, when writing to software that interfaces with hardware, there's little art except for what gets thrown at the wall because the hardware documentation is wrong. (been there, done that). Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

                                    B Offline
                                    B Offline
                                    brianwelsch
                                    wrote on last edited by
                                    #51

                                    Marc Clifton wrote: I always thought there was a lot of "art" in the laying of circuit boards This is certainly true. I didn't even think of it that way. I was thinking of instructions more so. With out added layers of abstraction found in higher languages, there is less room creative solutions. I'm not convinced of that though, the more I think about it. :~ BW "I'm coming with you! I got you fired, it's the least I can do. Well, the least I could do is absolutely nothing, but I'll go you one better and come along!" - Homer J. Simpson

                                    M 1 Reply Last reply
                                    0
                                    • M Marc Clifton

                                      It's a skill. Ah. You might have hit upon an assumption I made in the word "programming", in that it involves "problem solving", not just "coding". Would you say that the problem solving side of "programming" can be artistic? Or is problem solving so far outside of the domain of programming that it doesn't really apply to programming? Marc Help! I'm an AI running around in someone's f*cked up universe simulator.

                                      N Offline
                                      N Offline
                                      Nemanja Trifunovic
                                      wrote on last edited by
                                      #52

                                      Yes, it can be "artistic", but it still does not mean it is an art. Cooking can also be artistic, but it is a skill, not an art.

                                      M 1 Reply Last reply
                                      0
                                      • T Taka Muraoka

                                        And in related news... http://www.chc-3.com/pub/beautifulsoftware.htm[^] Most software is so bad, in fact, that if it were a bridge, no one in his or her right mind would walk across it. If it were a house, we would be afraid to enter. The only reason we (software engineers) get away with this scam is the general public cannot see inside of software systems. If software design were as visible as a bridge or house, we would be hiding our heads in shame. We would not accept a new house with sloping floors, holes in the ceilings, nails sticking out of the walls, and an outrageous price -- even if it minimally met basic needs. We would not be content with the explanation: "Well, it has a front door, which usually opens. You can find your way to the kitchen, but watch out for the nails. The holes in the ceiling don't really leak. And sure it ran 300% over budget, but houses often do." I can see you now, jumping up and down saying "but isn't this obvious?!?!". Only if it were... I can't recall ever anyway arguing that we should be writing our code more beautifully, though :-) Except me, of course :laugh:


                                        I'd wear a miniskirt and pimp myself for an extra ten grand a year. - David Wulff

                                        B Offline
                                        B Offline
                                        brianwelsch
                                        wrote on last edited by
                                        #53

                                        The problem is that engineers who build a bridge are only allowed to do so after years of prior experience, and with proper certification. On top of that they aren't even building it, the construction company is. I suppose in an ideal world you'd have a designer working from a well defined spec sheet, a supervisor handing out specific functions, and coders making their little black boxes. This doesn't happen though, so it gets a bit messy sometimes. Of course, people generally don't die if the program fails. BW "I'm coming with you! I got you fired, it's the least I can do. Well, the least I could do is absolutely nothing, but I'll go you one better and come along!" - Homer J. Simpson

                                        T 1 Reply Last reply
                                        0
                                        • N Nitron

                                          joan_fl wrote: 10% art :wtf: What about the UI?!?! "If it has a nicer splash screen, it's gotta run better!" (Right? :rolleyes: ) Or are you one of those form follows function types... :~ - Nitron


                                          "Those that say a task is impossible shouldn't interrupt the ones who are doing it." - Chinese Proverb

                                          J Offline
                                          J Offline
                                          joan_fl
                                          wrote on last edited by
                                          #54

                                          Nitron wrote: What about the UI?!?! "If it has a nicer splash screen, it's gotta run better!" (Right? ) Or are you one of those form follows function types... Oh no.. not the UI.. Though UI sells, I was referring to the format of the code.;P

                                          N 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