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. The worst source code

The worst source code

Scheduled Pinned Locked Moved The Lounge
23 Posts 15 Posters 3 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 Markus 811

    Somewhere I read this in a signature: The worst source code, that you can come across, is the code you wrote on your own one year ago. I just remember this, because I'm sitting in front of some part of my own code that is three or four years old. X| Ok, to see it positive: I learned a lot in the past years.

    P Offline
    P Offline
    Paulo Augusto Kunzel
    wrote on last edited by
    #14

    That is sad and funny at the same time.... :-D :(

    There are no secrets to success. It is the result of preparation, hard work, and learning from failure. Colin Powell

    1 Reply Last reply
    0
    • P Pete OHanlon

      Some of the samples of code that I wrote years ago were things of beauty - they were lean, efficient, mindful of every last clock cycle and optimizer trick that I could employ. It's sad to see how flabby my code ended up becoming with the advent of frameworks - it became too easy to rely on a potentially inefficient API implementation, rather than coding up a tighter implementation of my own.

      G Offline
      G Offline
      grralph1
      wrote on last edited by
      #15

      You are so right.

      "Rock journalism is people who can't write interviewing people who can't talk for people who can't read." Frank Zappa 1980

      1 Reply Last reply
      0
      • OriginalGriffO OriginalGriff

        Shameel wrote:

        despite the fact that it was VB6.

        Burn the heretic! :laugh:

        You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)

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

        OriginalGriff wrote:

        Burn the heretic!

        That was 15 years ago and people do reform, don't they?

        OriginalGriffO 1 Reply Last reply
        0
        • L Lost User

          OriginalGriff wrote:

          Burn the heretic!

          That was 15 years ago and people do reform, don't they?

          OriginalGriffO Offline
          OriginalGriffO Offline
          OriginalGriff
          wrote on last edited by
          #17

          Shameel wrote:

          people do reform, don't they?

          To reform, they have to show contrition; remorse:

          Shameel wrote:

          I love my code I wrote 15 years ago

          Oops! Burn him! Burn him now!

          You looking for sympathy? You'll find it in the dictionary, between sympathomimetic and sympatric (Page 1788, if it helps)

          "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
          "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

          1 Reply Last reply
          0
          • P Pete OHanlon

            Oh, I know - that's the whole reason I use the frameworks in the first place. Sadly, though, the ability to optimise is being squeezed out and it seems as though younger generations of coders don't want to learn how to do this. There are exceptions, obviously, but as these are the coders that go into places like Microsoft, inefficiencies will continue to be propagated,

            T Offline
            T Offline
            Tom Deketelaere
            wrote on last edited by
            #18

            Pete O'Hanlon wrote:

            younger generations of coders don't want to learn how to do this

            It so happens that in the past few months I had to look at code from some of my co-workers. I can only confirm that statement. I know I'm considered somewhat of a weird programmer in my company cause I keep going on about performance and will try and squeeze every milliseconde out of my code but the things I'v seen here are just terrifying. - Code that uses 16+ gig ram (for a very simple request) - Code that takes 10+ min to run (to get 200k records) - Horrific linq statements that just screams inefficient. - ... The attention for detail seems to be gone with younger programmers (or less experienced one's), the response I get when I tell them their program can use up to 50% less ram is usually 'we'll just add a few gigs of ram to the server if it's a problem', makes me shiver every time. And yes I know that from your view point I'm probably in that 'younger generation' :) (I'm 30 :) ) perhaps that's what makes me weird ;P

            L 2 Replies Last reply
            0
            • M Markus 811

              Somewhere I read this in a signature: The worst source code, that you can come across, is the code you wrote on your own one year ago. I just remember this, because I'm sitting in front of some part of my own code that is three or four years old. X| Ok, to see it positive: I learned a lot in the past years.

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

              Pfft. I'm still maintaining code I wrote over ten years ago. My worst pain point with it is I was still using K&R braces back then.

              Software Zen: delete this;

              M 1 Reply Last reply
              0
              • T Tom Deketelaere

                Pete O'Hanlon wrote:

                younger generations of coders don't want to learn how to do this

                It so happens that in the past few months I had to look at code from some of my co-workers. I can only confirm that statement. I know I'm considered somewhat of a weird programmer in my company cause I keep going on about performance and will try and squeeze every milliseconde out of my code but the things I'v seen here are just terrifying. - Code that uses 16+ gig ram (for a very simple request) - Code that takes 10+ min to run (to get 200k records) - Horrific linq statements that just screams inefficient. - ... The attention for detail seems to be gone with younger programmers (or less experienced one's), the response I get when I tell them their program can use up to 50% less ram is usually 'we'll just add a few gigs of ram to the server if it's a problem', makes me shiver every time. And yes I know that from your view point I'm probably in that 'younger generation' :) (I'm 30 :) ) perhaps that's what makes me weird ;P

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

                Looks like we work in he same company.

                1 Reply Last reply
                0
                • T Tom Deketelaere

                  Pete O'Hanlon wrote:

                  younger generations of coders don't want to learn how to do this

                  It so happens that in the past few months I had to look at code from some of my co-workers. I can only confirm that statement. I know I'm considered somewhat of a weird programmer in my company cause I keep going on about performance and will try and squeeze every milliseconde out of my code but the things I'v seen here are just terrifying. - Code that uses 16+ gig ram (for a very simple request) - Code that takes 10+ min to run (to get 200k records) - Horrific linq statements that just screams inefficient. - ... The attention for detail seems to be gone with younger programmers (or less experienced one's), the response I get when I tell them their program can use up to 50% less ram is usually 'we'll just add a few gigs of ram to the server if it's a problem', makes me shiver every time. And yes I know that from your view point I'm probably in that 'younger generation' :) (I'm 30 :) ) perhaps that's what makes me weird ;P

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

                  Looks like we work in the same company.

                  1 Reply Last reply
                  0
                  • M Markus 811

                    Somewhere I read this in a signature: The worst source code, that you can come across, is the code you wrote on your own one year ago. I just remember this, because I'm sitting in front of some part of my own code that is three or four years old. X| Ok, to see it positive: I learned a lot in the past years.

                    M Offline
                    M Offline
                    Mark_Wallace
                    wrote on last edited by
                    #22

                    Markus-811 wrote:

                    The worst source code, that you can come across, is the code you wrote on your own one year ago.

                    Both of the commas in the sentence are incorrect. If the guy writes code with as many syntax errors, I can well believe his statement.

                    I wanna be a eunuchs developer! Pass me a bread knife!

                    1 Reply Last reply
                    0
                    • G Gary R Wheeler

                      Pfft. I'm still maintaining code I wrote over ten years ago. My worst pain point with it is I was still using K&R braces back then.

                      Software Zen: delete this;

                      M Offline
                      M Offline
                      Markus 811
                      wrote on last edited by
                      #23

                      Gary R. Wheeler wrote:

                      My worst pain point with it is I was still using K&R braces back then

                      Kernighan and Ritchie?! Oh, that is a rather old notation. But if it has a readable architecture/structure, this can still make some fun. But my coding style changed from hacking to something more sophisticated.

                      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