Page 1 of 5 12345 LastLast
Results 1 to 10 of 46

Thread: Longest Function Ever ?

  1. #1
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846

    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. #2
    Maximum Bitrate Don 944 LA's Avatar
    Join Date
    May 2004
    Location
    San Diego / Los Angeles
    Posts
    679
    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 ???

  3. #3
    Variable Bitrate blurp's Avatar
    Join Date
    Sep 2003
    Location
    Hampshire, TN
    Posts
    349
    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

  4. #4
    Maximum Bitrate
    Join Date
    May 2004
    Location
    NJ
    Posts
    558
    Bad coding practice!
    Did you write it in COBOL?
    Am I supposed to beta test this Spaghetti for you?
    Here goes our reputation

  5. #5
    FLAC john1701's Avatar
    Join Date
    Mar 2004
    Location
    Fort Myers, Fl
    Posts
    1,193
    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

  6. #6
    Newbie
    Join Date
    Aug 2004
    Location
    Ottawa, ON, Canada
    Posts
    53
    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.

  7. #7
    Variable Bitrate blurp's Avatar
    Join Date
    Sep 2003
    Location
    Hampshire, TN
    Posts
    349
    Quote 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

  8. #8
    Maximum Bitrate mushin's Avatar
    Join Date
    Aug 2004
    Location
    SE Michigan
    Posts
    750
    Quote 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.

  9. #9
    I'm sorry, and you are....? frodobaggins's Avatar
    Join Date
    Jan 2003
    Location
    Ruston, LA
    Posts
    8,846
    Quote 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!

  10. #10
    Maximum Bitrate
    Join Date
    Jun 2003
    Location
    Atlanta/Augusta, GA
    Posts
    505
    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.

Page 1 of 5 12345 LastLast

Similar Threads

  1. Auto DJ function proposal.
    By kid320 in forum Media Engine
    Replies: 6
    Last Post: 07-26-2004, 06:35 PM
  2. Auto DJ function proposal... opinions?
    By kid320 in forum Software & Software Development
    Replies: 1
    Last Post: 07-26-2004, 11:07 AM
  3. Playlist function error
    By Mikesz in forum ME Archive
    Replies: 1
    Last Post: 02-02-2003, 12:10 AM
  4. never lose focus
    By marsjell in forum Software & Software Development
    Replies: 21
    Last Post: 08-12-2002, 02:18 PM
  5. Neat browser trick
    By g60 in forum Off Topic
    Replies: 6
    Last Post: 02-26-2002, 11:42 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •