Results 1 to 11 of 11

Thread: The ones you love

  1. #1

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860

    The ones you love

    You've all met them: That one bug in the program that takes 5 (with an upper case F, for good reasons) hours to track down. And it turns out you missed an "a" somewhere.

    Or maybe just the stupid stupid bugs that you write in without even realising in. (writing "For each A between 1 and 10" instead of For a = 1 to 10 comes to my mind, hehe)

    I just though I'd share some of the wonderful things I've had to find before.

    1: y\x -> int(y/x) (rounding is different )
    2: oops, forgot to put "a=a+1" in that "do while a < 100" loop with no doevents in it, hehe..
    3: No option explicit (WORST MISTAKE EVER)
    4: Hum, maybe I should've put a + instead of a ^.

    Go on... share.
    Don't pay attention to this signature, it's contradictory.

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    I've made some real royal cock ups in the past and will probably make many more in the future Here's a short list of just a few:
    • Why can't I SSH to my computer after I have disabled networking via SSH?
    • Why doesn't my DSL connect when the modem cable is unplugged?
    • Why doesn't my C program written in VB compile?
    • WHY THE HELL WON'T THIS WORK?
      VB Code:
      1. 'Public Function isWinNT() As Boolean
      2. '    Dim OSInfo As OSVERSIONINFO
      3. '    
      4. '    OSInfo.dwOSVersionInfoSize = Len(OSInfo)
      5. '    
      6. '    Call GetVersionEx(OSInfo)
      7. '    
      8. '    If OSInfo.dwPlatformId = VER_PLATFORM_WIN32_NT Then
      9. '        isWinNT = True
      10. '    Else
      11. '        isWinNT = False
      12. '    End If
      13. '    
      14. 'End Function
    • Why won't this computer with no hard disk boot up?
    • I wonder what mv /* does when logged in as root?
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  3. #3
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    For C++:
    Code:
    if (i = 0)
    {
        // Do stuff...
    }
    I think I was born to much to VB, I just can't handle this one it always gets me and is almost impossible for me to spot half the time.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    Code:
    then{
    this.readonly=true;
    }
    ****ing "O" is supposed to be capitalized.

  5. #5
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Originally posted by Electroman
    For C++:
    Code:
    if (i = 0)
    {
        // Do stuff...
    }
    I think I was born to much to VB, I just can't handle this one it always gets me and is almost impossible for me to spot half the time.

    That one always screws me over in PHP as well.
    Don't Rate my posts.

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109
    New to .NET. Just this morning I discovered that you can set a property on a button that makes it act like an OK button.

    Why in the world would you want to do that? If I wanted that F'in' functionality, I would write it myself

  7. #7
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    Originally posted by Shaggy Hiker
    New to .NET. Just this morning I discovered that you can set a property on a button that makes it act like an OK button.

    Why in the world would you want to do that? If I wanted that F'in' functionality, I would write it myself
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  8. #8
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051
    In C/C++
    Code:
    int a[5];
    a[5] = 7;
    Code:
    x=5
    y=2
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  9. #9
    Lively Member Xcoder's Avatar
    Join Date
    Jan 2004
    Posts
    120
    this happened to me and made me f***ing angry, not entirely related to VB but to the computer hosting the program I made...

    - If you have an ISA card (if there are any left in the world) never try joining the -12V line to GND. You'll need to find another power source...
    Last edited by Xcoder : 09-10-2001 at 12:45 AM.

  10. #10

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Is there ANY reason to EVER have a programming language be case sensitive?? Are you ever going to want two variables, called A, and a? Isn't that just confusing???

    I vote we make C++ case unsensitive!
    Don't pay attention to this signature, it's contradictory.

  11. #11
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Posted by alkatran
    I vote we make C++ case unsensitive!
    I second that.
    Then the intelisense should work properly even when you just type in lower case .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions

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



Click Here to Expand Forum to Full Width