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. Other Discussions
  3. The Insider News
  4. Your code is far more chaff than wheat

Your code is far more chaff than wheat

Scheduled Pinned Locked Moved The Insider News
htmlasp-netcom
13 Posts 7 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.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    IT World[^]:

    New research finds that the core functionality of a program is encapsulated by just a small fraction of its code.

    "All we are is dust in the wind"

    P V D E A 5 Replies Last reply
    0
    • K Kent Sharkey

      IT World[^]:

      New research finds that the core functionality of a program is encapsulated by just a small fraction of its code.

      "All we are is dust in the wind"

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Did they look at only COBOL? :confused:

      K 1 Reply Last reply
      0
      • K Kent Sharkey

        IT World[^]:

        New research finds that the core functionality of a program is encapsulated by just a small fraction of its code.

        "All we are is dust in the wind"

        V Offline
        V Offline
        Vark111
        wrote on last edited by
        #3

        I can believe it. For every one line of code that has actual business value, I find myself writing an awful lot of lines for things like exception handling, null checking, error logging, thread locking, bounds checking, etc... None of which has any business value beyond just getting the damn thing to run without problems.

        P 1 Reply Last reply
        0
        • V Vark111

          I can believe it. For every one line of code that has actual business value, I find myself writing an awful lot of lines for things like exception handling, null checking, error logging, thread locking, bounds checking, etc... None of which has any business value beyond just getting the damn thing to run without problems.

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          I'd say all of that is required to provide the required functionality.

          V 1 Reply Last reply
          0
          • P PIEBALDconsult

            I'd say all of that is required to provide the required functionality.

            V Offline
            V Offline
            Vark111
            wrote on last edited by
            #5

            Not entirely. Thread locking is only needed if you have contention problems. Logging is only necessary if you need to go look at log files. Bounds checking is only necessary when someone tries to bypass UI validation, etc... All of these are good things to have. I put all of them into my code. But the only thing they do is relieve IT headaches. They don't sell more widgets.

            P L 2 Replies Last reply
            0
            • V Vark111

              Not entirely. Thread locking is only needed if you have contention problems. Logging is only necessary if you need to go look at log files. Bounds checking is only necessary when someone tries to bypass UI validation, etc... All of these are good things to have. I put all of them into my code. But the only thing they do is relieve IT headaches. They don't sell more widgets.

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              Vark111 wrote:

              They don't sell more widgets

              Sure they do. Uptime is directly related to sales.

              1 Reply Last reply
              0
              • K Kent Sharkey

                IT World[^]:

                New research finds that the core functionality of a program is encapsulated by just a small fraction of its code.

                "All we are is dust in the wind"

                D Offline
                D Offline
                Duncan Edwards Jones
                wrote on last edited by
                #7

                Do you think car designers have magazines with articles with "how airbags add weight and reduce petrol efficiency"?

                1 Reply Last reply
                0
                • P PIEBALDconsult

                  Did they look at only COBOL? :confused:

                  K Offline
                  K Offline
                  Kent Sharkey
                  wrote on last edited by
                  #8

                  Almost as bad - I think they looked at Java (and included all the XML configuration files)

                  TTFN - Kent

                  1 Reply Last reply
                  0
                  • K Kent Sharkey

                    IT World[^]:

                    New research finds that the core functionality of a program is encapsulated by just a small fraction of its code.

                    "All we are is dust in the wind"

                    E Offline
                    E Offline
                    ed welch
                    wrote on last edited by
                    #9

                    Am I right in saying that they try and analyse the code without even knowing what it does?

                    1 Reply Last reply
                    0
                    • K Kent Sharkey

                      IT World[^]:

                      New research finds that the core functionality of a program is encapsulated by just a small fraction of its code.

                      "All we are is dust in the wind"

                      A Offline
                      A Offline
                      AndersonChau
                      wrote on last edited by
                      #10

                      I think it is too early to jump to the conclusion that most code are 'useless' as chaff. If we are to throw away the 'chaff' and just submit the 'wheat' to client, it would be a disaster. OOP introduce "redundency" because we want to system to be scalable and extensible. We are living in an imperfect world , our main objective is to provide convenience to users and other developers, rather than giving values to every lines of code.

                      1 Reply Last reply
                      0
                      • V Vark111

                        Not entirely. Thread locking is only needed if you have contention problems. Logging is only necessary if you need to go look at log files. Bounds checking is only necessary when someone tries to bypass UI validation, etc... All of these are good things to have. I put all of them into my code. But the only thing they do is relieve IT headaches. They don't sell more widgets.

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

                        You only need an airbag in an accident, that is true. Logging is not just required if someone wants to look at the logs; it is required to be able to track what the application is doing. Bounds checking is not just for people trying to bypass, but also to reduce accidental errors. The fact that it is not explicitly mentioned as something that you get paid for doesn't mean that it has no value.

                        Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                        V 1 Reply Last reply
                        0
                        • L Lost User

                          You only need an airbag in an accident, that is true. Logging is not just required if someone wants to look at the logs; it is required to be able to track what the application is doing. Bounds checking is not just for people trying to bypass, but also to reduce accidental errors. The fact that it is not explicitly mentioned as something that you get paid for doesn't mean that it has no value.

                          Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                          V Offline
                          V Offline
                          Vark111
                          wrote on last edited by
                          #12

                          I don't disagree with anything you said. The point I guess I'm trying to make is that 15 years ago, when I was writing VB6 apps before I really should have been, I did none of those things. No null checking, no bounds checking, no logging, etc... Those apps were an abomination from my (current) perspective, but did they provide business value back then? Unquestionably. If I were to grab one of those apps today and add all those things back in - exception handling, null checking, logging, etc... Would the business value of those apps increase? In my opinion, that's questionable. If the app used to crash twice a day because of those problems, then adding those checks and balances in probably does increase business value. But if that app was only crashing once a year?

                          L 1 Reply Last reply
                          0
                          • V Vark111

                            I don't disagree with anything you said. The point I guess I'm trying to make is that 15 years ago, when I was writing VB6 apps before I really should have been, I did none of those things. No null checking, no bounds checking, no logging, etc... Those apps were an abomination from my (current) perspective, but did they provide business value back then? Unquestionably. If I were to grab one of those apps today and add all those things back in - exception handling, null checking, logging, etc... Would the business value of those apps increase? In my opinion, that's questionable. If the app used to crash twice a day because of those problems, then adding those checks and balances in probably does increase business value. But if that app was only crashing once a year?

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

                            Vark111 wrote:

                            But if that app was only crashing once a year?

                            A few years ago, cars came without said airbag. You don't even need to be able to lock the car to provide the basic functionality. Does it matter if it crashes once a year? Well, no, I hear that cars are called back all the time. As long as it isn't my car, all is great :-\

                            Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

                            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