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. What is perfect code??

What is perfect code??

Scheduled Pinned Locked Moved The Lounge
questiondatabasecomcareer
14 Posts 9 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.
  • M Maruf Maniruzzaman

    1. Code that does exactly for what it was written. Some code that multiplies numbers while it was designed to add numbers is not perfect code definitely.

    Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
    [Blog] [Silverlight Clone] [Resume]

    Steve EcholsS Offline
    Steve EcholsS Offline
    Steve Echols
    wrote on last edited by
    #2

    Are you thinking out loud? :)


    - S 50 cups of coffee and you know it's on!

    • S
      50 cups of coffee and you know it's on!
      Code, follow, or get out of the way.
    M realJSOPR 2 Replies Last reply
    0
    • Steve EcholsS Steve Echols

      Are you thinking out loud? :)


      - S 50 cups of coffee and you know it's on!

      M Offline
      M Offline
      Maruf Maniruzzaman
      wrote on last edited by
      #3

      Ha ha - yes..

      Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
      [Blog] [Silverlight Clone] [Resume]

      Steve EcholsS 1 Reply Last reply
      0
      • M Maruf Maniruzzaman

        1. Code that does exactly for what it was written. Some code that multiplies numbers while it was designed to add numbers is not perfect code definitely.

        Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
        [Blog] [Silverlight Clone] [Resume]

        M Offline
        M Offline
        Maruf Maniruzzaman
        wrote on last edited by
        #4

        Perfect Codes[^] :laugh: This is for fun only. I meant code written in any programming language.

        Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
        [Blog] [Silverlight Clone] [Resume]

        modified on Saturday, April 19, 2008 4:44 AM

        1 Reply Last reply
        0
        • M Maruf Maniruzzaman

          Ha ha - yes..

          Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
          [Blog] [Silverlight Clone] [Resume]

          Steve EcholsS Offline
          Steve EcholsS Offline
          Steve Echols
          wrote on last edited by
          #5

          :-D Perfect code might mean different things to different people. For me perfect code is optimized for performance, for others it might mean it's optimized for readability. It's one of those gray areas.


          - S 50 cups of coffee and you know it's on!

          • S
            50 cups of coffee and you know it's on!
            Code, follow, or get out of the way.
          1 Reply Last reply
          0
          • M Maruf Maniruzzaman

            1. Code that does exactly for what it was written. Some code that multiplies numbers while it was designed to add numbers is not perfect code definitely.

            Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
            [Blog] [Silverlight Clone] [Resume]

            B Offline
            B Offline
            Bradml
            wrote on last edited by
            #6

            Taken out of context.... which is what this ironically seems to be.... that is a humorous quote.


            Brad Australian The PHP MVP - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

            M 1 Reply Last reply
            0
            • B Bradml

              Taken out of context.... which is what this ironically seems to be.... that is a humorous quote.


              Brad Australian The PHP MVP - Christian Graus on "Best books for VBscript" A big thick one, so you can whack yourself on the head with it.

              M Offline
              M Offline
              Maruf Maniruzzaman
              wrote on last edited by
              #7

              Sorrry. The link I provided only for fun. I found it after googling my subject line. I really meant what is perfect code - written in a programming language.

              Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
              [Blog] [Silverlight Clone] [Resume]

              A 1 Reply Last reply
              0
              • M Maruf Maniruzzaman

                Sorrry. The link I provided only for fun. I found it after googling my subject line. I really meant what is perfect code - written in a programming language.

                Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
                [Blog] [Silverlight Clone] [Resume]

                A Offline
                A Offline
                Andrew Torrance
                wrote on last edited by
                #8

                Ah I see you want us to define perfection ? Given that code quality is multi dimensioned , and since it is unlikely that a maxima will occur for multiple variables at one point then you face the situaton where one parameter is at a maximum whilst another is not. Therefore a question such as this will in most cases be a matter of opinion . So the question is , what , in my opinion , would be the defining qualities of perfect code? Well that would depend on context and my knowledge of the problem at hand , which by definition is incomplete . So even if I said what perfection was , I am incapable of knowing that with 100% certainty it is in fact perfect . So in short I do not know what you want and even if I did I could not give it to you . Aside from that perfect code does not exist since there is no such thing as bug free software , only software that meets a requirment . :-D

                M O 2 Replies Last reply
                0
                • A Andrew Torrance

                  Ah I see you want us to define perfection ? Given that code quality is multi dimensioned , and since it is unlikely that a maxima will occur for multiple variables at one point then you face the situaton where one parameter is at a maximum whilst another is not. Therefore a question such as this will in most cases be a matter of opinion . So the question is , what , in my opinion , would be the defining qualities of perfect code? Well that would depend on context and my knowledge of the problem at hand , which by definition is incomplete . So even if I said what perfection was , I am incapable of knowing that with 100% certainty it is in fact perfect . So in short I do not know what you want and even if I did I could not give it to you . Aside from that perfect code does not exist since there is no such thing as bug free software , only software that meets a requirment . :-D

                  M Offline
                  M Offline
                  Maruf Maniruzzaman
                  wrote on last edited by
                  #9

                  :) Like nothing is absolute- you may sit still on a chair - but the earth itself is moving towards the sun and the sun also towards the milkyway.

                  Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
                  [Blog] [Silverlight Clone] [Resume]

                  1 Reply Last reply
                  0
                  • Steve EcholsS Steve Echols

                    Are you thinking out loud? :)


                    - S 50 cups of coffee and you know it's on!

                    realJSOPR Offline
                    realJSOPR Offline
                    realJSOP
                    wrote on last edited by
                    #10

                    No - he's not thinking, and we can hear him.

                    "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                    -----
                    "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                    1 Reply Last reply
                    0
                    • M Maruf Maniruzzaman

                      1. Code that does exactly for what it was written. Some code that multiplies numbers while it was designed to add numbers is not perfect code definitely.

                      Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
                      [Blog] [Silverlight Clone] [Resume]

                      G Offline
                      G Offline
                      Gary R Wheeler
                      wrote on last edited by
                      #11

                      Mine.

                      Software Zen: delete this;
                      Fold With Us![^]

                      1 Reply Last reply
                      0
                      • A Andrew Torrance

                        Ah I see you want us to define perfection ? Given that code quality is multi dimensioned , and since it is unlikely that a maxima will occur for multiple variables at one point then you face the situaton where one parameter is at a maximum whilst another is not. Therefore a question such as this will in most cases be a matter of opinion . So the question is , what , in my opinion , would be the defining qualities of perfect code? Well that would depend on context and my knowledge of the problem at hand , which by definition is incomplete . So even if I said what perfection was , I am incapable of knowing that with 100% certainty it is in fact perfect . So in short I do not know what you want and even if I did I could not give it to you . Aside from that perfect code does not exist since there is no such thing as bug free software , only software that meets a requirment . :-D

                        O Offline
                        O Offline
                        Oakman
                        wrote on last edited by
                        #12

                        Andrew Torrance wrote:

                        So in short I do not know what you want and even if I did I could not give it to you .

                        I said something like this once. My wife answered. "Fine. I want a divorce."

                        Jon Smith & Wesson: The original point and click interface

                        1 Reply Last reply
                        0
                        • M Maruf Maniruzzaman

                          1. Code that does exactly for what it was written. Some code that multiplies numbers while it was designed to add numbers is not perfect code definitely.

                          Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
                          [Blog] [Silverlight Clone] [Resume]

                          P Online
                          P Online
                          PIEBALDconsult
                          wrote on last edited by
                          #13

                          Maruf Maniruzzaman wrote:

                          What is perfect code??

                          Code that can only be read by the intended recipient.

                          Maruf Maniruzzaman wrote:

                          Some code that multiplies numbers while it was designed to add numbers is not perfect code definitely.

                          Well, if I say, "Add 2 and 2", and it returns "4", how can I tell whether it added or multiplied? On the other hand, if I say "Multiply 2 and 3" it may return "6" after performing "2+2+2", and I'm OK with that.

                          1 Reply Last reply
                          0
                          • M Maruf Maniruzzaman

                            1. Code that does exactly for what it was written. Some code that multiplies numbers while it was designed to add numbers is not perfect code definitely.

                            Maruf Maniruzzaman Dhaka, Bangladesh. Homepage: http://www.kuashaonline.com
                            [Blog] [Silverlight Clone] [Resume]

                            K Offline
                            K Offline
                            Kevin McFarlane
                            wrote on last edited by
                            #14

                            Cod that conforms precisely with its specification, where the specification conforms precisely with the known requirements.

                            Kevin

                            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