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. Why I hate your code

Why I hate your code

Scheduled Pinned Locked Moved The Lounge
rubycomfunctional
42 Posts 24 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.
  • D Dominic Burford

    No developer ever sets out to write bad code. Every developer writes the best code they can given the time, information and skills they have at the time. With hindsight, we can all look back at even our best work and see room for improvement.

    "There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare Home | LinkedIn | Google+ | Twitter

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

    When I look at what I'm currently working on, there must have been a contest over many years to write the worst and most unmaintainable code.

    The language is JavaScript. that of Mordor, which I will not utter here
    This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a fucking golf cart.
    "I don't know, extraterrestrial?" "You mean like from space?" "No, from Canada." If software development were a circus, we would all be the clowns.

    1 Reply Last reply
    0
    • K Kevin Marois

      Ya but did the plumber lay some pipe?

      If it's not broken, fix it until it is

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

      Roto. Rooter.

      Software Zen: delete this;

      1 Reply Last reply
      0
      • C Colin Mullikin

        I have recently, actually. One of our senior devs left the company for greener pastures and I moved into his team to pick up his work. His code is actually quite nice, and a lot of it is way beyond stuff I have ever done before, so his intuitive naming conventions and copious comments are quite helpful.

        The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

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

        You are dead, and you've gone to heaven. Lucky you.

        Software Zen: delete this;

        1 Reply Last reply
        0
        • M Marc Clifton

          I can succinctly state why I hate working on projects inherited from others, where a huge code base is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers, because quite frankly, those projects stay where they are because the client is happy!!!) It's because I'm spending my time debugging shit that isn't my shit, it's someone else's. And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's shit. [edit]And I tend to find the most stinkiest shit written by Ruby on Rails code monkeys.[/edit] Marc

          Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

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

          Been there, done that indeed. I inherited a moderate size body of code when the company 're-organized', and then spent about 40% of my time over the next two years re-writing every damned bit of it except for the visuals. It's part of a WPF app. The UI looked really nice, but the XAML creating the UI and the code-behind was absolutely wretched.

          Software Zen: delete this;

          1 Reply Last reply
          0
          • M Marc Clifton

            I can succinctly state why I hate working on projects inherited from others, where a huge code base is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers, because quite frankly, those projects stay where they are because the client is happy!!!) It's because I'm spending my time debugging shit that isn't my shit, it's someone else's. And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's shit. [edit]And I tend to find the most stinkiest shit written by Ruby on Rails code monkeys.[/edit] Marc

            Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

            Y Offline
            Y Offline
            Ygnaiih
            wrote on last edited by
            #25

            Working on trying to wade through a large application that was originally designed by persons who couldn't write "Hello World!" in HTML. Add to that a passing army of contractors who added droves of classes that have to be dissected before you can make small changes, like don't approve something that is marked failed.

            I just need a day off, way off!

            1 Reply Last reply
            0
            • M Marc Clifton

              I can succinctly state why I hate working on projects inherited from others, where a huge code base is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers, because quite frankly, those projects stay where they are because the client is happy!!!) It's because I'm spending my time debugging shit that isn't my shit, it's someone else's. And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's shit. [edit]And I tend to find the most stinkiest shit written by Ruby on Rails code monkeys.[/edit] Marc

              Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

              A Offline
              A Offline
              agolddog
              wrote on last edited by
              #26

              Marc Clifton wrote:

              And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's sh*t.

              Strange, that's one of the things I actually enjoy. I get a good feeling of accomplishment by making a system better. Sometimes, that means introducing new functionality, sometimes it means cleaning up the turds. I also think that's made me a better developer. You know, some people are only there to serve as an example to others sorta thing...seeing all that over the years makes me more aware of sh*t not to do.

              M 1 Reply Last reply
              0
              • A agolddog

                Marc Clifton wrote:

                And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's sh*t.

                Strange, that's one of the things I actually enjoy. I get a good feeling of accomplishment by making a system better. Sometimes, that means introducing new functionality, sometimes it means cleaning up the turds. I also think that's made me a better developer. You know, some people are only there to serve as an example to others sorta thing...seeing all that over the years makes me more aware of sh*t not to do.

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

                agolddog wrote:

                Strange, that's one of the things I actually enjoy. I get a good feeling of accomplishment by making a system better.

                Indeed, so do I. Unfortunately, there are numerous "garbage in, garbage out" situations that apply not just to data but to code, and there's really nothing I can contribute that makes a system better unless it were rewritten from scratch. And that's usually not realistic, so the cycle of bandaids and patches continues. Marc

                Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                1 Reply Last reply
                0
                • L Lost User

                  And of course your projects and code are perfect! Calm down dear, take a chill pill and thank your lucky stars you aren't shovelling shit for a living!

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

                  Paul S Wilcox wrote:

                  nd of course your projects and code are perfect!

                  Of course! :)

                  Paul S Wilcox wrote:

                  and thank your lucky stars you aren't shovelling sh*t for a living!

                  The amusing thing about that is I've actually volunteered on a farm school to muck out the stables and sheep pens. Marc

                  Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                  1 Reply Last reply
                  0
                  • D Dominic Burford

                    No developer ever sets out to write bad code. Every developer writes the best code they can given the time, information and skills they have at the time. With hindsight, we can all look back at even our best work and see room for improvement.

                    "There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies. The first method is far more difficult." - C.A.R. Hoare Home | LinkedIn | Google+ | Twitter

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

                    Dominic Burford wrote:

                    No developer ever sets out to write bad code.

                    On the other hand, there are developers that should have the self-introspection to step away from the keyboard. Marc

                    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                    1 Reply Last reply
                    0
                    • Z ZurdoDev

                      Marc Clifton wrote:

                      bad programmers

                      Also known as anyone other than one's self. :-\

                      There are only 10 types of people in the world, those who understand binary and those who don't.

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

                      RyanDev wrote:

                      Also known as anyone other than one's self.

                      Quite so, but I tend to rank myself in the "least bad" category. :) Marc

                      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                      1 Reply Last reply
                      0
                      • J jeron1

                        Have you ever inherited code from good programmers?

                        "the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle

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

                        jeron1 wrote:

                        Have you ever inherited code from good programmers?

                        No, because good code from good programmers usually doesn't result in the client getting pissed off at the development team and switching to another code house. Marc

                        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                        1 Reply Last reply
                        0
                        • S Slacker007

                          I have recently been advertising myself as a plumber. Plumbers fix systems, clogged with other people's shiit and that is what we do. If it wasn't clogged, they wouldn't be calling us.

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

                          Ernst Stavro Blofeld wrote:

                          Plumbers fix systems, clogged with other people's shiit and that is what we do.

                          Except usually a clog is just in one pipe. Sure, it may take a 50 foot snake to clear it, but then it's done, unless the pipe is infested with the roots of some tree downstream, then you usually call someone else. :) Point being, it's one pipe, one tool, and a lot of muck. Code shit is a maze of pipes, numerous tools, and the muck never seems to go away, it just gets pushed around to other pipes. Marc

                          Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                          1 Reply Last reply
                          0
                          • M Marc Clifton

                            I can succinctly state why I hate working on projects inherited from others, where a huge code base is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers, because quite frankly, those projects stay where they are because the client is happy!!!) It's because I'm spending my time debugging shit that isn't my shit, it's someone else's. And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's shit. [edit]And I tend to find the most stinkiest shit written by Ruby on Rails code monkeys.[/edit] Marc

                            Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                            D Offline
                            D Offline
                            Daniel R Przybylski
                            wrote on last edited by
                            #33

                            And it's even worse when the manager who handed you the hot steaming pile has no idea that the dev who wrote it whom he had hired who has recently left the company was a hack. (What are you talking about, 'bad code', that guy was brilliant!)

                            M 1 Reply Last reply
                            0
                            • D Daniel R Przybylski

                              And it's even worse when the manager who handed you the hot steaming pile has no idea that the dev who wrote it whom he had hired who has recently left the company was a hack. (What are you talking about, 'bad code', that guy was brilliant!)

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

                              Daniel R. Przybylski wrote:

                              What are you talking about, 'bad code', that guy was brilliant!)

                              I've heard that a few times recently. The guy was called "superman." I so wish I could put on my blog, in big screaming caps, DO NOT HIRE THIS IDIOT!!!! Marc

                              Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                              1 Reply Last reply
                              0
                              • C Colin Mullikin

                                I have recently, actually. One of our senior devs left the company for greener pastures and I moved into his team to pick up his work. His code is actually quite nice, and a lot of it is way beyond stuff I have ever done before, so his intuitive naming conventions and copious comments are quite helpful.

                                The United States invariably does the right thing, after having exhausted every other alternative. -Winston Churchill America is the only country that went from barbarism to decadence without civilization in between. -Oscar Wilde Wow, even the French showed a little more spine than that before they got their sh*t pushed in.[^] -Colin Mullikin

                                F Offline
                                F Offline
                                Forogar
                                wrote on last edited by
                                #35

                                Quote:

                                intuitive naming conventions and copious comments

                                ...is that the sound of the wings flapping on that flock of pigs flying by? Actually, I do that myself - but usually I am the only one that sees them. I still appreciate them six months, or more, later when coming back to the code.

                                - I would love to change the world, but they won’t give me the source code.

                                1 Reply Last reply
                                0
                                • M Marc Clifton

                                  I can succinctly state why I hate working on projects inherited from others, where a huge code base is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers, because quite frankly, those projects stay where they are because the client is happy!!!) It's because I'm spending my time debugging shit that isn't my shit, it's someone else's. And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's shit. [edit]And I tend to find the most stinkiest shit written by Ruby on Rails code monkeys.[/edit] Marc

                                  Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                  _ Offline
                                  _ Offline
                                  _WinBase_
                                  wrote on last edited by
                                  #36

                                  I used to hate it too, but when the company I worked for went bust 25 yrs ago and I decided to start my own business, there were several legacy systems and no-one to maintain them, so while I couldn't quite write my own cheque I did pretty well out of it, and it kept me afloat until id developed my own commercial apps, and I still have the odd customer from long ago who puts new business my way - ever cloud !! GL

                                  1 Reply Last reply
                                  0
                                  • M Marc Clifton

                                    I can succinctly state why I hate working on projects inherited from others, where a huge code base is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers, because quite frankly, those projects stay where they are because the client is happy!!!) It's because I'm spending my time debugging shit that isn't my shit, it's someone else's. And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's shit. [edit]And I tend to find the most stinkiest shit written by Ruby on Rails code monkeys.[/edit] Marc

                                    Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                    M Offline
                                    M Offline
                                    Member_5893260
                                    wrote on last edited by
                                    #37

                                    Concur! (welcome to my fucking world).

                                    1 Reply Last reply
                                    0
                                    • M Marc Clifton

                                      I can succinctly state why I hate working on projects inherited from others, where a huge code base is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers, because quite frankly, those projects stay where they are because the client is happy!!!) It's because I'm spending my time debugging shit that isn't my shit, it's someone else's. And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's shit. [edit]And I tend to find the most stinkiest shit written by Ruby on Rails code monkeys.[/edit] Marc

                                      Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                      J Offline
                                      J Offline
                                      jschell
                                      wrote on last edited by
                                      #38

                                      Marc Clifton wrote:

                                      is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers

                                      That is the way the real world works. Projects that are inherited have a history of programmers - plural. If there was in fact a single programmer then it is unlikely that one would inherit it, either because no one ever works on it or because the original programmer still works on it. So it becomes more likely that a an inherited application has been touched by several people. And people, including programmers, following a normal distribution curve. And despite claims at company meetings in all likelihood, by betting on the odds, the company is in fact average and is never above average. So the code is going to have, at best, good parts and bad parts.

                                      Marc Clifton wrote:

                                      And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's sh*t.

                                      Myself I strive towards insuring, to the best of my ability, that people that follow me, which will happen for any company that is successful which employes me, will enjoy looking at and working on my code. Since I have been a manager and have absolutely no desire to do that again, that is the best that I will be giving to the world.

                                      1 Reply Last reply
                                      0
                                      • M Marc Clifton

                                        I can succinctly state why I hate working on projects inherited from others, where a huge code base is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers, because quite frankly, those projects stay where they are because the client is happy!!!) It's because I'm spending my time debugging shit that isn't my shit, it's someone else's. And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's shit. [edit]And I tend to find the most stinkiest shit written by Ruby on Rails code monkeys.[/edit] Marc

                                        Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                        C Offline
                                        C Offline
                                        clientSurfer
                                        wrote on last edited by
                                        #39

                                        Well said... Made me remember this article: [^] Dicks and idiots

                                        "... having only that moment finished a vigorous game of Wiff-Waff and eaten a tartiflet." - Henry Minute  "Let's face it, after Monday and Tuesday, even the calendar says WTF!" - gavindon   Programming is a race between programmers trying to build bigger and better idiot proof programs, and the universe trying to build bigger and better idiots, so far... the universe is winning. - gavindon

                                        1 Reply Last reply
                                        0
                                        • M Marc Clifton

                                          I can succinctly state why I hate working on projects inherited from others, where a huge code base is inherited from bad programmers (and I have yet to work on a project where I have not inherited code from bad programmers, because quite frankly, those projects stay where they are because the client is happy!!!) It's because I'm spending my time debugging shit that isn't my shit, it's someone else's. And very few things piss me off more than having to spend even a miniscule fraction of my time on this planet fixing other people's shit. [edit]And I tend to find the most stinkiest shit written by Ruby on Rails code monkeys.[/edit] Marc

                                          Imperative to Functional Programming Succinctly Contributors Wanted for Higher Order Programming Project!

                                          C Offline
                                          C Offline
                                          ClockMeister
                                          wrote on last edited by
                                          #40

                                          So what else is new? I have never met a developer who had anything good to say about code he inherited from someone else. We're all individually God's gift to coding are we not? Everybody else's stuff is crap! ;-)

                                          If you think hiring a professional is expensive wait until you try an amateur! - Red Adair

                                          D 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