View Poll Results: Option Strict, used often?

Voters
30. You may not vote on this poll
  • Use it ALL the time!

    21 70.00%
  • I HAVE used it and may again.

    2 6.67%
  • I DONT use it AT ALL!

    7 23.33%
Results 1 to 27 of 27

Thread: Who uses OPTION STRICT in their code?

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Nov 2003
    Posts
    1,489

    Question Who uses OPTION STRICT in their code?

    I'd like to know how many reading this poll, actually use the option STRICT parameter.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    I do all the time now but didn't start using it until a couple of weeks ago. I was pretty good about type safety before so it wasn't too terrible a transition. Still all the casting can be a pain in the ass sometimes, but I suppose it's worth it.

  3. #3
    Addicted Member Hole-In-One's Avatar
    Join Date
    Mar 2003
    Location
    Minnesota
    Posts
    195
    I do most of the time.

    Although I do agree with this:


    Still all the casting can be a pain in the ass sometimes, but I suppose it's worth it.
    Its kinda funny though, almost all of the books I've read from M$ don't even mention it!

    I first heard of it here in the forums.

  4. #4
    Frenzied Member dynamic_sysop's Avatar
    Join Date
    Jun 2003
    Location
    Ashby, Leicestershire.
    Posts
    1,142
    everyone that uses C# has no choice but to use Option Strict , vb.net tends to make people a little lazy.
    ~
    if a post is resolved, please mark it as [Resolved]
    protected string get_Signature(){return Censored;}
    [vbcode][php] please use code tags when posting any code [/php][/vbcode]

  5. #5
    Lively Member JAtkinson's Avatar
    Join Date
    Feb 2004
    Location
    Richmond, VA
    Posts
    68
    Originally posted by Hole-In-One
    ...I first heard of it here in the forums.
    Good point, what is it?

  6. #6
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by dynamic_sysop
    everyone that uses C# has no choice but to use Option Strict , vb.net tends to make people a little lazy.
    yeah, I use it all the time cuz of this
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  7. #7
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Originally posted by dynamic_sysop
    everyone that uses C# has no choice but to use Option Strict , vb.net tends to make people a little lazy.
    It's true which make it strongly typed lang by default more than VB . With Option Strict on , it guarantees that no illegal conversion is attempted . More often , I have it on .

  8. #8
    Lively Member
    Join Date
    Jan 2002
    Posts
    105
    I always have this set to On and i agree with Edneeis it IS a pain in the ass.

  9. #9
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Wallabie
    I always have this set to On and i agree with Edneeis it IS a pain in the ass.
    well if you're saying that you're basically saying programming is a pain in the ass
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  10. #10
    PowerPoster hellswraith's Avatar
    Join Date
    Jul 2002
    Location
    Washington St.
    Posts
    2,464
    Originally posted by Wallabie
    I always have this set to On and i agree with Edneeis it IS a pain in the ass.
    Only makes you a better .Net developer when you have to understand the types better in order to cast to what is expected.

  11. #11
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950
    Never have, but if Edneiss, Pirate & Hellswraith vouch for it, maybe it's a good idea. Most of the authors I've read generally avoid it.

  12. #12
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    I always use it. When I first tried VB.NET, sometimes my projects would do strange things and using Option Strict made everything work correctly.

    You're a communist if you don't use Option Strict

  13. #13
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by salvelinus
    Most of the authors I've read generally avoid it.
    I'd say most people learning VB.NET are probably moving from VB6 and so the authors do it that way to make them feel more comfy. Or the authors simply are stupid
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  14. #14
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    To me it seems like the compiler should be smart enough to figure it out and cast it for me, BUT since this is not the case and I don't want any casting errors at runtime then Option Strict it is.

  15. #15
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    i use it all the time, unless im mucky about with variables so much that somet wont work with it in (which usually indicates im doing bad code and it never works out in the end anyway)

    But really, i recommend using it. i can get annoying now and again but it makes you have nice correctly written code in the end, without any nasty conversions and stuff.

    i likes it myself always have it on

  16. #16
    yay gay PT Exorcist's Avatar
    Join Date
    Apr 2002
    Location
    . . . my reason of shame
    Posts
    2,729
    Anyone with a IQ above 90 should really do it in any project...
    \m/\m/

  17. #17
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Who likes to see a 3-month old thread all over again ?????

  18. #18
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    Originally posted by Pirate
    Who likes to see a 3-month old thread all over again ?????
    I guess pirate does since he replied yeah good point
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  19. #19
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    Originally posted by Pirate
    Who likes to see a 3-month old thread all over again ?????
    lol that was my fault, i searched option strict in thread titles and got it up, so i thought i wud post

    Anyone with a IQ above 90 should really do it in any project...
    I don't know what my IQ is... be funny if it was under 90 like it probably is hahaha, well probably aint.

  20. #20
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    lol i just said that i used option strict to a friend, and he said "I don't" and i laughed and said "Thats because you dont use .NET" it was kinda funny at the time lol

    oh, and he says somet about this iq thing, "Isn't 90 sub-human intelligence?" dont ask me....

  21. #21
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682
    Hmm, just turned Option Strict on halfway through a project, rebuilt project...20 errors in program!

    Turned it off again, 0 errors

    Ignorants are blis.

    Mensa said I have an IQ of 87 but gave me 3 extra points for completing my test in crayon. 91, Yeah!
    I don't live here any more.

  22. #22
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    Originally posted by wossname
    Hmm, just turned Option Strict on halfway through a project, rebuilt project...20 errors in program!

    Turned it off again, 0 errors

    Ignorants are blis.

    Mensa said I have an IQ of 87 but gave me 3 extra points for completing my test in crayon. 91, Yeah!
    congratulations! however i hope that wasnt due to maths, because you added 4 *laughs* instead of 3 *falls off chair*

    anyways, i luv the idea of using crayon

  23. #23
    Member
    Join Date
    May 2004
    Location
    Where i am
    Posts
    38
    Originally posted by LITHIA
    congratulations! however i hope that wasnt due to maths, because you added 4 *laughs* instead of 3 *falls off chair*

    anyways, i luv the idea of using crayon
    He did fall off his chair *sigh* and was told to get up *sigh*

    Statement - "ICT is boring"

  24. #24
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    Originally posted by machinist
    He did fall off his chair *sigh* and was told to get up *sigh*

    Statement - "ICT is boring"
    ahhh nooooo my friend signed up!!!

    yeah ict sucks bad..... it be crappy!!! *falls off chair again*

    Edit: Congratulations machinist for your first post!!!!

  25. #25
    Member
    Join Date
    May 2004
    Location
    Where i am
    Posts
    38
    Originally posted by LITHIA
    ahhh nooooo my friend signed up!!!

    yeah ict sucks bad..... it be crappy!!! *falls off chair again*

    That was my first post *slaps lithia* stop stating the obvious oh he stayed in his chair this time.

  26. #26
    Fanatic Member LITHIA's Avatar
    Join Date
    Dec 2002
    Location
    UK, England
    Posts
    575
    should we take this to chit chat? im afraid that the mods may not like this.... *falls off chair*

    no more from me now.... unless its got somet to do with option strict heheh

    wow 20 mins left of ict, then an hour of biology... *sighs*

  27. #27
    Member
    Join Date
    May 2004
    Location
    Where i am
    Posts
    38
    Maybe i should try option strict? Yes i think i will.... Later in biology the teacher leaves computers on. *Picks lithia up and slaps him and drops him*

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