Results 1 to 31 of 31

Thread: most common errors

  1. #1

    Thread Starter
    Addicted Member señorbadger's Avatar
    Join Date
    Oct 2003
    Location
    Mud pools of wellingborough
    Posts
    193

    most common errors

    what are the most common programming errors you make

    mine are

    inifinate while loops (forgetting to increment counter var)
    forgetting ; in php
    misspelling response in asp

  2. #2
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906
    I always use too many or too few brackets . I also make a lot of spelling mistakes in variable names. I therefore always make sure I turn notices on in PHP and use Option Explicit in VB.
    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
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    I sometimes incorrectly declare an overloading protected function, forgetting that it and the original cannot only differ by return type.

    How silly of me.
    I don't live here any more.

  4. #4
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    I usually just make silly errors like not puting i = i + 1 when needed etc.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  5. #5
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    Logic mistakes, when I go back and edit code I forget to retest it.

    This usually ends in massive errors (or at least appearing so, I only need to change one line to fix it)
    Don't pay attention to this signature, it's contradictory.

  6. #6
    Frenzied Member Acidic's Avatar
    Join Date
    Sep 2003
    Location
    UK
    Posts
    1,090
    I don't do the little things any more like forgetting the ; in PHP, although I do still sometimes forget that variables start with a $ in PHP. Mainly it's that I don't know how to do something.

    Quite a few times I've re-inveted the whell because I didn't know a function existed so I made it from other functions. That's annoying. In things like JavaScript though, it's suprising how much works first time for me. I even made a little search engine thingy which almost worked first time. I had a typo in one place. I fixed that and it worked.
    Have I helped you? Please Rate my posts.

  7. #7
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    the most common error is my use of vb

  8. #8

  9. #9
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Mmmmm...misteak :gurgle:
    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  10. #10
    Lively Member rotcrules's Avatar
    Join Date
    Mar 2004
    Location
    SD
    Posts
    113
    Originally posted by MartinLiss
    I don't make misteaks.
    sure you don't, so you are saying you never forgot to put an End If or mispelt a variable
    [Vbcode]If YourOpinion = WindowsIsCrap Then
    Kill Wndows
    Open Linux
    ElseIf YourOpinion = WindowsIsGreat Then
    Unload Me
    Else
    Get MSNTV
    End If[/vbcode]

  11. #11

  12. #12
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    I think most of us have made the annoying mistake of not writing a program that we can sell to MS for £10,000,000.

    I make that mistake with my every keystroke.
    I don't live here any more.

  13. #13
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Originally posted by SteveCRM
    the most common error is my use of vb
    Damn. I was going to say something like that when I saw the thread title

    Mine's doing silly things like:
    Code:
    for(int i = 0; blah[i] = 4; ++i) { /* ... */ }
    (the = rather than ==).
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  14. #14
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    haven't seen you round these parts too much.

  15. #15
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,427
    Originally posted by parksie
    Damn. I was going to say something like that when I saw the thread title

    Mine's doing silly things like:
    Code:
    for(int i = 0; blah[i] = 4; ++i) { /* ... */ }
    (the = rather than ==).
    That because you use that silly language.

  16. #16
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Now where's my handbag
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  17. #17
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    Trying to program.

  18. #18
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    Originally posted by MartinLiss
    I don't make misteaks.
    mmmm misteaks.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  19. #19
    Lively Member rotcrules's Avatar
    Join Date
    Mar 2004
    Location
    SD
    Posts
    113
    the only mistake i ever make is the when i thought i made a mistake!
    [Vbcode]If YourOpinion = WindowsIsCrap Then
    Kill Wndows
    Open Linux
    ElseIf YourOpinion = WindowsIsGreat Then
    Unload Me
    Else
    Get MSNTV
    End If[/vbcode]

  20. #20

  21. #21
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by Nightwalker83
    mmmm misteaks.
    Dunderpate.

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  22. #22
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263
    Chit Chat - sometimes I can't tell if it's real or implants

    How many of you step through code in the immediate window while developing it to see how it behaves?

    Or is that too serious a question

  23. #23
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344
    Originally posted by MartinLiss
    Of corse that was firmly tung in cheak
    Of course.

    Originally posted by crptcblade
    Dunderpate.

    Moron.
    when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
    If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
    https://get.cryptobrowser.site/30/4111672

  24. #24
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Posted by rotcrules
    sure you don't, so you are saying you never forgot to put an End If or mispelt a variable
    Em I think its rather hard to mis out an "End If", a } is alot easier to miss than a whole "End If". That reminds me i always forget the ; after the } when creating a class .

    And now parksie mentions it I always make the mistake of using = when i mean to use ==.
    Also for C++ the Variable names are case sensitive so i always make the mistake of just typing them in lower case and expecting the IDE to change the case for me .
    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.

  25. #25
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,427
    Originally posted by szlamany
    Chit Chat - sometimes I can't tell if it's real or implants

    How many of you step through code in the immediate window while developing it to see how it behaves?

    Or is that too serious a question
    All the time.

  26. #26
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Posted by szlamany
    How many of you step through code in the immediate window while developing it to see how it behaves?
    Is that when you use Debug.Print, yea? Well I normally would just use break points but when playing with DirectX breakpoints cause loads of trouble so then I use Debug.Print all the time.

    BTW does anyone know if C++ has any kind of equivelent to this? Cause I do have to say i really miss it when i use C++ .
    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.

  27. #27
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861
    Forgetting the "New" keyword when instantiating objects in .NET
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  28. #28
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Originally posted by parksie
    Damn. I was going to say something like that when I saw the thread title

    Mine's doing silly things like:
    Code:
    for(int i = 0; blah[i] = 4; ++i) { /* ... */ }
    (the = rather than ==).
    I hate that!! Do it in PHP all the time. Its always great when you do something like,

    $user = badperson;
    if ($user = goodperson) {
    destroyworldfunction();
    }

    Don't Rate my posts.

  29. #29
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    I step-through code ALL THE TIME.

    I had no idea before that F8 was "read next line" so I used 50 break points .

    But you know what? I've actually hit into lines of code that work when you step-through but don't if you run-through.

    Or they act differently after being compiled.

    VERY annoying.
    Don't pay attention to this signature, it's contradictory.

  30. #30
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263
    We actually have a DEBUG.PRINT at the top of each and every function, event, sub - everything. I use dual monitors and keep the immediate window fully max'd on the second monitor.

    As we run/step/break through code, the trace-path appears in the immediate window.

    We have extra DEBUG.PRINT's peppered throughout the code - showing important values/status/etc.

    We use F8 and ctrl/shift/F8 (step out of function/sub) extensively.

    We also have run into "behaves differently while stepping around in the IDE" vs executable issues. Those are tough bugs to find - DEBUG.PRINT helps the most in those cases.

  31. #31
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    Originally posted by alkatran
    I step-through code ALL THE TIME.

    I had no idea before that F8 was "read next line" so I used 50 break points .

    But you know what? I've actually hit into lines of code that work when you step-through but don't if you run-through.

    Or they act differently after being compiled.

    VERY annoying.
    Generally I blame the code running to fast, and find DoEvents will do the trick to slow it down.
    Don't Rate my posts.

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