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

Spaghetti code

Scheduled Pinned Locked Moved The Lounge
adobequestion
31 Posts 21 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.
  • I Ian Shlasko

    If you think the code we see here is bad, you should check out the IOCCC[^] :)

    Proud to have finally moved to the A-Ark. Which one are you in?
    Author of the Guardians Saga (Sci-Fi/Fantasy novels)

    R Offline
    R Offline
    Reelix
    wrote on last edited by
    #19

    http://www.ioccc.org/2011/dlowe/dlowe.c[^] I've heard of Zombie code, but this is ridiculous! (Read the actual code)

    -= Reelix =-

    1 Reply Last reply
    0
    • L Lost User

      There really ought to be a special punishment reserved for people (using the term people here loosely, as what I really think is not KSS) that go out of their way to write the most convoluted code that they can in an effort to make maintenance as painful as possible.

      Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

      B Offline
      B Offline
      BillMillerGTC
      wrote on last edited by
      #20

      The best way to get the best spaghetti coders this side of Naples Italy to stop is to have the code reviews performed by Catholic Nuns! Sister Mary Concurrent reviews the code, and if it resembles spaghetti at all she will whack you on the knuckles with a yard stick (or metre stick), or the dreaded wooden pointer that resembles a cane used in Singapore!

      1 Reply Last reply
      0
      • Z Zabuzamomochi

        Yuru yuri fans? where? :D

        L Offline
        L Offline
        lewax00
        wrote on last edited by
        #21

        Well the writer of this[^] for starters.

        Z 1 Reply Last reply
        0
        • F Fran Porretto

          Sometimes it's a misconceived attempt at self-glorification. Has anyone here ever run into the Code of the Real Programmer?

          One of the enduring fallacies of the younger (but not the youngest) folks in this trade is the belief that coding tricks are a demonstration of expertise. Oftentimes, they'll go out of their way to embed a tricky bit of code in a program, and then draw others' attention to it. "Look at me, I'm standing on my hands!"

          A beginning programmer doesn't know enough to do such things. His programs are relatively easy to read and debug.

          A well-seasoned programmer appreciates the virtues of simplicity. His stuff looks a lot like the beginner's code, and is about as easy to comprehend and debug.

          It's the intermediate guy, who's knocked off a couple of problems and has begun to "feel his oats," who causes most of the trouble.

          The hell of it is, nearly all of us go through that stage on our way to becoming "productive members of society."

          (This message is programming you in ways you cannot detect. Be afraid.)

          I Offline
          I Offline
          IndifferentDisdain
          wrote on last edited by
          #22

          Wow, that pretty much exactly describes where I'm at in my coding journey :^) Thanks, I needed that.

          This space intentionally left blank.

          1 Reply Last reply
          0
          • L Lost User

            There really ought to be a special punishment reserved for people (using the term people here loosely, as what I really think is not KSS) that go out of their way to write the most convoluted code that they can in an effort to make maintenance as painful as possible.

            Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

            F Offline
            F Offline
            Fabio Franco
            wrote on last edited by
            #23

            Don't worry, they will eventually die and burn in coder's hell.

            To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson ---- Our heads are round so our thoughts can change direction - Francis Picabia

            1 Reply Last reply
            0
            • L lewax00

              Well the writer of this[^] for starters.

              Z Offline
              Z Offline
              Zabuzamomochi
              wrote on last edited by
              #24

              What do we have to do to reach the level where we can write that kind of code :wtf:

              L 1 Reply Last reply
              0
              • Z Zabuzamomochi

                What do we have to do to reach the level where we can write that kind of code :wtf:

                L Offline
                L Offline
                lewax00
                wrote on last edited by
                #25

                Nightly sacrifices to the C gods.

                1 Reply Last reply
                0
                • Z zenwalker1985

                  Its a problem with every software every where. At start every thing turns out to be beautiful, but over years and due to preassure and stuffs people tends to get the feature out rather than thinking about code beautification/maintaenance/quality etc. Yes on the contrary to this, one developer should be good at his/her skills. I always consider doing the things good though i my output will be a bit delayed, i always concentrate over quality of my output than the quantity, which many of my colleagues think i am weird.

                  My cUr10U5 w0rlD

                  D Offline
                  D Offline
                  dg6yhw11
                  wrote on last edited by
                  #26

                  I agree about feature additions messing up "beautiful" code but I think everyone is missing the main reason spagetti code exists. That is QC. In our organization, if any change is made to an existing and tested block of code, the whole block has to be re-tested. This increases the costs and delays shipment. Anyone can write pretty code given the time. It takes a special skill set to modify existing code without breaking it. And if that results in spagetti code over time, so be it. It works. Just document the code so the next skilled worker knows what you did.

                  1 Reply Last reply
                  0
                  • A AspDotNetDev

                    Indeed. Many of the coworkers I've had over the years seem to think that building complex code is impressive. I don't think so. I think building simple code to support complex scenarios is impressive.

                    Thou mewling ill-breeding pignut!

                    C Offline
                    C Offline
                    C War
                    wrote on last edited by
                    #27

                    Here! Here!

                    1 Reply Last reply
                    0
                    • L Lost User

                      Ian Shlasko wrote:

                      we see here is bad

                      You should see the code I am stuck with.

                      Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

                      M Offline
                      M Offline
                      Member 4608898
                      wrote on last edited by
                      #28

                      Spaghetti code or Lasagne code, it is all the same. It is always more complex than it needs to be but it keeps us in a job. Think about it positively - if you can't fix it, it was the previous coders' fault, if you can fix it, you get the credit. You seldom get a win-win situation in this business!!

                      1 Reply Last reply
                      0
                      • R RogelioP EX DE HL

                        Wes Aday wrote:

                        ... go out of their way to write the most convoluted code that they can in an effort to make maintenance as painful as possible.

                        Code is not meant to be maintained, it is meant to be rewritten :cool: -- RP

                        Z Offline
                        Z Offline
                        zenwalker1985
                        wrote on last edited by
                        #29

                        In that case every firm dies faster.

                        My cUr10U5 w0rlD

                        1 Reply Last reply
                        0
                        • J jsc42

                          Wes Aday wrote:

                          There really ought to be a special punishment reserved for people ... that go out of their way to write the most convoluted code that they can

                          Over here, they get promoted to Management.

                          Z Offline
                          Z Offline
                          zenwalker1985
                          wrote on last edited by
                          #30

                          Hehehe true true. brainless, stupid 1s go high faster

                          My cUr10U5 w0rlD

                          1 Reply Last reply
                          0
                          • L Lost User

                            There really ought to be a special punishment reserved for people (using the term people here loosely, as what I really think is not KSS) that go out of their way to write the most convoluted code that they can in an effort to make maintenance as painful as possible.

                            Why is common sense not common? Never argue with an idiot. They will drag you down to their level where they are an expert. Sometimes it takes a lot of work to be lazy Please stand in front of my pistol, smile and wait for the flash - JSOP 2012

                            B Offline
                            B Offline
                            BrainiacV
                            wrote on last edited by
                            #31

                            You could like the guy who wrote this[^]. He was collecting $50,000.00/month in royalty checks. 1/3rd more than I was making a year to clean up his code.

                            Psychosis at 10 Film at 11 Those who do not remember the past, are doomed to repeat it. Those who do not remember the past, cannot build upon it.

                            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