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. Send me some Tomato Sauce

Send me some Tomato Sauce

Scheduled Pinned Locked Moved The Lounge
career
12 Posts 10 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.
  • S Offline
    S Offline
    Slow Eddie
    wrote on last edited by
    #1

    I have taken over someone else's code as part of my new job. It is such a major piece of Spaghetti code that I am about to pull my hair out!:mad::confused::mad: I really can't complain because I know I have written code just as bad in a previous job. X| X| Sorry, I just needed to vent to someone, while I wait for his reply to my email. BTW: Not only is the code like a huge ball of pasta just from being boiled, but none of the variable names are remotely descriptive of what they are used for. I feel a little better now.

    Keep Calm and Carry On.

    P J S D A 5 Replies Last reply
    0
    • S Slow Eddie

      I have taken over someone else's code as part of my new job. It is such a major piece of Spaghetti code that I am about to pull my hair out!:mad::confused::mad: I really can't complain because I know I have written code just as bad in a previous job. X| X| Sorry, I just needed to vent to someone, while I wait for his reply to my email. BTW: Not only is the code like a huge ball of pasta just from being boiled, but none of the variable names are remotely descriptive of what they are used for. I feel a little better now.

      Keep Calm and Carry On.

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

      Can't find the pesto?

      S 1 Reply Last reply
      0
      • P PIEBALDconsult

        Can't find the pesto?

        S Offline
        S Offline
        Slow Eddie
        wrote on last edited by
        #3

        Don't care for pesto much. Now olive oil and butter is really my favorite....

        ed

        D 1 Reply Last reply
        0
        • S Slow Eddie

          I have taken over someone else's code as part of my new job. It is such a major piece of Spaghetti code that I am about to pull my hair out!:mad::confused::mad: I really can't complain because I know I have written code just as bad in a previous job. X| X| Sorry, I just needed to vent to someone, while I wait for his reply to my email. BTW: Not only is the code like a huge ball of pasta just from being boiled, but none of the variable names are remotely descriptive of what they are used for. I feel a little better now.

          Keep Calm and Carry On.

          J Offline
          J Offline
          jmaida
          wrote on last edited by
          #4

          I've had such coding jobs, in the past. Since I wasn't permitted to change variable names en masse, I created a list of the major variables from declarations, etc. and provided a description and where used. it was list that grew real time. grrr

          "A little time, a little trouble, your better day" Badfinger

          1 Reply Last reply
          0
          • S Slow Eddie

            I have taken over someone else's code as part of my new job. It is such a major piece of Spaghetti code that I am about to pull my hair out!:mad::confused::mad: I really can't complain because I know I have written code just as bad in a previous job. X| X| Sorry, I just needed to vent to someone, while I wait for his reply to my email. BTW: Not only is the code like a huge ball of pasta just from being boiled, but none of the variable names are remotely descriptive of what they are used for. I feel a little better now.

            Keep Calm and Carry On.

            S Offline
            S Offline
            Super Lloyd
            wrote on last edited by
            #5

            Lucky you, you can't feel productive just refactoring code! :) Here where I am now, refactoring is difficult, all public & protected method are "possibly in use" by internal customers... And it is strongly recommended not to remove or rename any.... :(

            A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

            J 1 Reply Last reply
            0
            • S Slow Eddie

              I have taken over someone else's code as part of my new job. It is such a major piece of Spaghetti code that I am about to pull my hair out!:mad::confused::mad: I really can't complain because I know I have written code just as bad in a previous job. X| X| Sorry, I just needed to vent to someone, while I wait for his reply to my email. BTW: Not only is the code like a huge ball of pasta just from being boiled, but none of the variable names are remotely descriptive of what they are used for. I feel a little better now.

              Keep Calm and Carry On.

              D Offline
              D Offline
              Daniel Pfeffer
              wrote on last edited by
              #6

              My sympathies. I can only suggest sacrificing either a cat or the previous programmer to the Gods of programming. :)

              Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

              O 1 Reply Last reply
              0
              • S Super Lloyd

                Lucky you, you can't feel productive just refactoring code! :) Here where I am now, refactoring is difficult, all public & protected method are "possibly in use" by internal customers... And it is strongly recommended not to remove or rename any.... :(

                A new .NET Serializer All in one Menu-Ribbon Bar Taking over the world since 1371!

                J Offline
                J Offline
                jsc42
                wrote on last edited by
                #7

                Create a new method with a 'good' name and copy (or, if you can, refactor) the old method to it. Then change the 'bad' name method to just call the 'good' name method and add an attribute of Deprecated / Obsolete (depending on the language and environment). Then you can use the 'good' name and the minor overhead will only be felt by the old users. I have often wanted a feature to alias / synonym a method / routine. The only environment that I use that has this feature is SQL Server.

                0 1 Reply Last reply
                0
                • J jsc42

                  Create a new method with a 'good' name and copy (or, if you can, refactor) the old method to it. Then change the 'bad' name method to just call the 'good' name method and add an attribute of Deprecated / Obsolete (depending on the language and environment). Then you can use the 'good' name and the minor overhead will only be felt by the old users. I have often wanted a feature to alias / synonym a method / routine. The only environment that I use that has this feature is SQL Server.

                  0 Offline
                  0 Offline
                  0x01AA
                  wrote on last edited by
                  #8

                  c++ will support that also ;)

                  J 1 Reply Last reply
                  0
                  • D Daniel Pfeffer

                    My sympathies. I can only suggest sacrificing either a cat or the previous programmer to the Gods of programming. :)

                    Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                    O Offline
                    O Offline
                    obermd
                    wrote on last edited by
                    #9

                    The cat was probably innocent in this case, unless of course it walked on the keyboard. [https://i.pinimg.com/originals/24/15/59/2415597bfc09f0d80f695d5502a5d6fb.jpg\](https://i.pinimg.com/originals/24/15/59/2415597bfc09f0d80f695d5502a5d6fb.jpg)

                    1 Reply Last reply
                    0
                    • S Slow Eddie

                      Don't care for pesto much. Now olive oil and butter is really my favorite....

                      ed

                      D Offline
                      D Offline
                      davecasdf
                      wrote on last edited by
                      #10

                      Slow Eddie wrote:

                      Now olive oil and butter is really my favorite....

                      Add freshly chopped parsley, cilantro, and basil and/or oregano ( or fennel for a switch ) ( but then I had to add sautaed onions and 'shrooms ).

                      1 Reply Last reply
                      0
                      • 0 0x01AA

                        c++ will support that also ;)

                        J Offline
                        J Offline
                        jsc42
                        wrote on last edited by
                        #11

                        I suspected that C++ would allow it as it is designed to be upwards compatible with C. But as I have not used C++, I was reluctant to put my head on the block. Actually, I wasn't even confident that C# supported it; but I have just tested and it does.

                        1 Reply Last reply
                        0
                        • S Slow Eddie

                          I have taken over someone else's code as part of my new job. It is such a major piece of Spaghetti code that I am about to pull my hair out!:mad::confused::mad: I really can't complain because I know I have written code just as bad in a previous job. X| X| Sorry, I just needed to vent to someone, while I wait for his reply to my email. BTW: Not only is the code like a huge ball of pasta just from being boiled, but none of the variable names are remotely descriptive of what they are used for. I feel a little better now.

                          Keep Calm and Carry On.

                          A Offline
                          A Offline
                          Andreas Mertens
                          wrote on last edited by
                          #12

                          I have a similar situation with an app using MS tech that is no longer available. Using references to this library all through the code, with no attempt at segregating it from the main logic, etc. No attempt at SOLID. Since I have to look at how to update (if possible) or replace this library, first job is pull all of this code into its own module. To be honest, this could be fun in its own right... 😉

                          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