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. Other Discussions
  3. The Weird and The Wonderful
  4. 10600 lines

10600 lines

Scheduled Pinned Locked Moved The Weird and The Wonderful
javascriptphpquestion
15 Posts 9 Posters 1 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.
  • L Lost User

    10600 lines of PHP. Not a single class. Just a single endless function. Countless parameters provide the only noticable structure:

    if(isset($somemeaninglessvariable))
    {
    // lots of spaghetti code
    }
    if(isset($someothermeaninglessvariable))
    {
    // more spaghetti
    }

    The purpose of that thing: To provide the data access and something like application logic for an entire web application. The last line:

    return $result;

    I don't want to know what happens if somebody would try to break this up into separate functions, not expecting the dependencies inside this little monstrosity.

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

    OriginalGriffO Offline
    OriginalGriffO Offline
    OriginalGriff
    wrote on last edited by
    #5
    1. Copy it all onto a floppy. 2) Attach plastic fangs. 3) Use as a Frisbee. Et voilà! Your very own Flying Spaghetti Monster!

    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

    "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

    Richard DeemingR 1 Reply Last reply
    0
    • OriginalGriffO OriginalGriff
      1. Copy it all onto a floppy. 2) Attach plastic fangs. 3) Use as a Frisbee. Et voilà! Your very own Flying Spaghetti Monster!

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      Richard DeemingR Online
      Richard DeemingR Online
      Richard Deeming
      wrote on last edited by
      #6

      The FSM is a lie! All hail Jibbers Crabst[^]! :-D


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

      1 Reply Last reply
      0
      • D DaveX86

        And yet, it works :laugh:

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

        That's what they all say, until one day a minor change lets the whole thing collapse.

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

        D 1 Reply Last reply
        0
        • L Lost User

          That's what they all say, until one day a minor change lets the whole thing collapse.

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

          D Offline
          D Offline
          DaveX86
          wrote on last edited by
          #8

          Ya, been there, done that :) I use this add on to Visual Studio, VS.PHP...comes in handy for close encounters :)

          1 Reply Last reply
          0
          • L Lost User

            10600 lines of PHP. Not a single class. Just a single endless function. Countless parameters provide the only noticable structure:

            if(isset($somemeaninglessvariable))
            {
            // lots of spaghetti code
            }
            if(isset($someothermeaninglessvariable))
            {
            // more spaghetti
            }

            The purpose of that thing: To provide the data access and something like application logic for an entire web application. The last line:

            return $result;

            I don't want to know what happens if somebody would try to break this up into separate functions, not expecting the dependencies inside this little monstrosity.

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

            B Offline
            B Offline
            Brisingr Aerowing
            wrote on last edited by
            #9

            Kill it! Kill it with fire!

            What do you get when you cross a joke with a rhetorical question? --- The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.

            L 2 Replies Last reply
            0
            • B Brisingr Aerowing

              Kill it! Kill it with fire!

              What do you get when you cross a joke with a rhetorical question? --- The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.

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

              Although you're talking about someones money, it would be the only rational reaction. Whatever has been invested into it should be considered wasted.

              Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

              L 1 Reply Last reply
              0
              • B Brisingr Aerowing

                Kill it! Kill it with fire!

                What do you get when you cross a joke with a rhetorical question? --- The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.

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

                Gladly, but I actually had to revive it a second time today. Being an interpreter, PHP does not know it's dead until it stumbles over an error in the code. And then this particular work of art simply died without any error message or anything. And then go ahead and find the little typo.

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

                B 1 Reply Last reply
                0
                • L Lost User

                  Although you're talking about someones money, it would be the only rational reaction. Whatever has been invested into it should be considered wasted.

                  Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

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

                  Very true, but this older application is in line to be replaced by a completely new one. First big thing in the coming year.

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

                  N 1 Reply Last reply
                  0
                  • L Lost User

                    Gladly, but I actually had to revive it a second time today. Being an interpreter, PHP does not know it's dead until it stumbles over an error in the code. And then this particular work of art simply died without any error message or anything. And then go ahead and find the little typo.

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

                    B Offline
                    B Offline
                    Brisingr Aerowing
                    wrote on last edited by
                    #13

                    :cringe:

                    What do you get when you cross a joke with a rhetorical question? --- The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.

                    1 Reply Last reply
                    0
                    • L Lost User

                      10600 lines of PHP. Not a single class. Just a single endless function. Countless parameters provide the only noticable structure:

                      if(isset($somemeaninglessvariable))
                      {
                      // lots of spaghetti code
                      }
                      if(isset($someothermeaninglessvariable))
                      {
                      // more spaghetti
                      }

                      The purpose of that thing: To provide the data access and something like application logic for an entire web application. The last line:

                      return $result;

                      I don't want to know what happens if somebody would try to break this up into separate functions, not expecting the dependencies inside this little monstrosity.

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

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

                      If it works then you have a spec, better than a beer coaster. You probably don't want to know the details of how such a dev achieved a result, just reverse engineer it!

                      Never underestimate the power of human stupidity RAH

                      1 Reply Last reply
                      0
                      • L Lost User

                        Very true, but this older application is in line to be replaced by a completely new one. First big thing in the coming year.

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

                        N Offline
                        N Offline
                        Nicholas Marty
                        wrote on last edited by
                        #15

                        Well... Good luck in figuring out what it currently does :laugh:

                        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