|
-
Jul 23rd, 2004, 09:14 AM
#1
Option Strict On
Do you guys use it? I read in a VB.NET book that its highly recommended because it just makes for better code. It is somewhat of a pain in the ass because you have to convert values constantly from string to integer etc.
I have been using it just because of the general rule that its good practice. I would have to image most people DONT use it though
-
Jul 23rd, 2004, 09:28 AM
#2
I don't use it because I feel that VB wasn't meant to be strict. If I want to deal with all the casting and conversion stuff, I use C#. If I just need to put something together and prove that it will work, I use VB without Option Strict.
Laugh, and the world laughs with you. Cry, and you just water down your vodka.
Take credit, not responsibility
-
Jul 23rd, 2004, 09:34 AM
#3
well being that im not a C# programmer, would you suggest using it for at least the production apps i build?
I agree if im just doing something for fun or for testing I wouldnt bother
-
Jul 23rd, 2004, 09:38 AM
#4
I use, and I'd recomment using.... same with Option Explicit On.... but to each their own.
TG
-
Jul 23rd, 2004, 09:42 AM
#5
Hyperactive Member
I use Option explicit but not option strict, also if often I try to write code as if option strict was ON. I prefer to be free to choose. Sometime is too comfortable don't have to respect that rigid rule!
Live long and prosper (Mr. Spock)
-
Jul 23rd, 2004, 10:17 AM
#6
Hyperactive Member
I don't always use it because I have apps that use late binding to an Excel COM object and you can't late bind with Option Strict ON.
-
Jul 23rd, 2004, 10:43 AM
#7
well its at the moduler level right? not the project level. so you could turn it off in a module that needed late binding or something like that
-
Jul 23rd, 2004, 10:44 AM
#8
Frenzied Member
I use it because it helps me understand/learn .Net better by forcing me to realize some of the mechanics of what's going on.
-
Jul 23rd, 2004, 10:54 AM
#9
Lively Member
I use option strict on.
It just makes my code better and cleaner.
Do you think my life is easy?
Do you think it's good to win?
do you think it's nice to kill?
Do you think learning is a must?
Do you think computers are nothing?
Do you think this post is stupid?
Do ypu think we're really humen?
DO YOU THINK IT'S GOOD TO THINK AT ALL? ? ? ! ! !
-
Jul 23rd, 2004, 06:37 PM
#10
PowerPoster
I always use Option Strict On, even though it can sometimes be a royal pain. It all helps with the learning process, and you get better code at the end IMHO.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|