Announcement

Collapse
No announcement yet.

Longest Function Ever ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Longest Function Ever ?

    I just finished a function. ONE Function....

    Its 1793 lines long !

    Frodo

    .
    [H]4 Life
    My next generation Front End is right on schedule.
    It will be done sometime in the next generation.
    I'm a lesbian too.
    I am for hire!

  • #2
    something to make you breakfast on the way to work ?????

    The " X-Ray Feature " for that hottie driving next to you ????

    The " By the way officer, you are being recorded on 6 camera's " button ???

    (edit ) Binary display of speed ???? Hex Display of speed ???

    Comment


    • #3
      Nice. I love big functions. They don't usually grow to that kind of size without plenty of error handling.
      www.bradleyjacobs.com

      There is more stupidity than hydrogen in the universe, and it has a longer shelf life. -- Frank Zappa

      Comment


      • #4
        Bad coding practice!
        Did you write it in COBOL?
        Am I supposed to beta test this Spaghetti for you?
        Here goes our reputation

        Comment


        • #5
          Disney World has 1794 lines.....
          The MC of Florida Car PC Meets
          CAR:2001 Ford Crown Victoria
          PC: Acer EEE 900HA with Win7 with CF 2.0.
          Memory:1G
          Drives:160gig
          WI-FI:Cingular
          GPS:IG2k9
          Screen:Xenarc 700TSV
          The Florida Meets Thread

          Comment


          • #6
            Hahah, COBOL, nightmares from college!!
            I like programming but there is a limit,
            GREAT PROGRAM by the way, (frodoplayer), I'm using it in my car as soon as i get my screen.

            Comment


            • #7
              Originally posted by kingtut
              Bad coding practice!

              Wrong. Some functions require lots of code. I've had more than one with over 2000 lines. Of course, these were talking to PLC's, SQL databases, and the controller for an RFID tag read/write head to write 8k to a tag one word at a time. Many times this is the only way to code.
              www.bradleyjacobs.com

              There is more stupidity than hydrogen in the universe, and it has a longer shelf life. -- Frank Zappa

              Comment


              • #8
                Originally posted by blurp
                Wrong. Some functions require lots of code. I've had more than one with over 2000 lines. Of course, these were talking to PLC's, SQL databases, and the controller for an RFID tag read/write head to write 8k to a tag one word at a time. Many times this is the only way to code.
                I agree with kingtut. There are of course exceptions to everything, so I can't comment on yours or Frodo's case, but for the most part functions shouldn't be that long.

                Comment


                • #9
                  Originally posted by mushin
                  I agree with kingtut. There are of course exceptions to everything, so I can't comment on yours or Frodo's case, but for the most part functions shouldn't be that long.
                  That's why I posted it. It was WAY out of the ordinary.
                  [H]4 Life
                  My next generation Front End is right on schedule.
                  It will be done sometime in the next generation.
                  I'm a lesbian too.
                  I am for hire!

                  Comment


                  • #10
                    The linux kernel has some very long functions. Its primarily for performance reasons though.

                    I've made a few larges functions in the past. It was for a Perl CGI project that had some lengthy HTML embedded within it. I'm not sure of the exact line count, but I wouldn't be surprised if it was up there with Frodos.
                    -TJ
                    Smart Playlists Plugin for RoadRunner
                    CarPC - 05 Acura TL Navi (pics soon)
                    Retired CarPC - 03 Infiniti Qx4

                    Comment


                    • #11
                      Originally posted by tejesh83
                      The linux kernel has some very long functions. Its primarily for performance reasons though.

                      I've made a few larges functions in the past. It was for a Perl CGI project that had some lengthy HTML embedded within it. I'm not sure of the exact line count, but I wouldn't be surprised if it was up there with Frodos.
                      My function is full of HTML and XML.
                      [H]4 Life
                      My next generation Front End is right on schedule.
                      It will be done sometime in the next generation.
                      I'm a lesbian too.
                      I am for hire!

                      Comment


                      • #13
                        Frodo, I think I came across as an A$$, I was actually kidding, please don't take it seriously, I appreciate your effort.

                        Comment


                        • #14
                          Originally posted by Enforcer
                          Oh except when I wrote Breakout in Z80 code.
                          Haha. When I was in HS, I coded tetris on my TI-85 (or 81 maybe, can't remember). Good times.
                          '03 Escape 4WD:
                          -iTox mini-itx mobo, Core 2 Duo Mobile 1.66Ghz; 2GB, 80GB 2.5" HD, DS-ATX
                          -Transflective 8.4"
                          -XM, iG4, OBD-II (BR-3)
                          -Rearview camera with auto-switching (modified cheesbox)
                          -Slim Slot DVD+RW
                          -RR, DFX 4

                          Comment


                          • #15
                            I don't like long functions. When I have functions, I just shove them into my extras.pas file were all of my key commans are stored. If I need to loop a command, I just give it a for 0 to x statement isntead of copying and pasting code
                            PowerVoice v1 | NaviVoice Source
                            GammaControl v2.4
                            SKINbedder v3

                            1995 Lexus SC300

                            Comment

                            Working...
                            X