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.
  • 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)

    G Offline
    G Offline
    glennPattonWork3
    wrote on last edited by
    #6

    <>May it not darken your IDE again <> :)

    1 Reply Last reply
    0
    • J JMK NI

      I still go to the pub with some of the guys from my first coding job, who are still there, and know for a fact that most of the code I wrote back then is still in use Gives me nightmares! :~

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

      Oh man... now I think back to my first coding job. :~ It feels like beeing on the couch by a psychiatrist that forces me to think back to something that I successfully drunk away ;)

      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.

        P Offline
        P Offline
        Pete OHanlon
        wrote on last edited by
        #8

        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.

        F M G 3 Replies Last reply
        0
        • R RugbyLeague

          I still occasionally dig into C++ code I wrote 10 to 15 years ago - while parts of it have me scratching my head the majority is perfectly ok :) The Lisp code I wrote 10 years ago has me completely baffled

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

          May be that your style was already "adult". I changed my style fundamentally... and that was a good thing ;) Just to give you an idea about what I'm talking here: - WinForms instead of WPF - No Commands - No Bindings - A lot of click handlers - Not a bit of separation between view and model ...

          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.

            T Offline
            T Offline
            thatraja
            wrote on last edited by
            #10

            Markus-811 wrote:

            Somewhere I read this in a signature:

            wizardzz[^] had.

            thatraja

            Code converters | Education Needed | Improve EverythingNew

            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.

              F Offline
              F Offline
              Franc Morales
              wrote on last edited by
              #11

              I can relate. On the other hand, I feel like optimizing code has now become less relevant than transparency.

              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.

                M Offline
                M Offline
                Mycroft Holmes
                wrote on last edited by
                #12

                So now you use a framework, throw a crap load of more cycles at it and produce 5 times as much out the door! I call that a win, if not an elegant win!

                Never underestimate the power of human stupidity RAH

                P 1 Reply Last reply
                0
                • M Mycroft Holmes

                  So now you use a framework, throw a crap load of more cycles at it and produce 5 times as much out the door! I call that a win, if not an elegant win!

                  Never underestimate the power of human stupidity RAH

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #13

                  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 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.

                    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