Option Strict
-
Why in the world in VS2012 is the VB default "option strict off". We are long way from writing VB6 style code. And as a developer I'm not going to declare a variable as an int and assign it a string (I've seen this in projects I've worked on). I'm currently developing in C# more than VB but still have old projects to maintain. Where I work now I've had to make modifications to some VB apps. I turned option strict ON on one of them and there was over 100 errors! (the error list in VS just said there was more didn't tell me how many more) Learn to code or get out of the business! Ok, just had to rant about this.
-
Why in the world in VS2012 is the VB default "option strict off". We are long way from writing VB6 style code. And as a developer I'm not going to declare a variable as an int and assign it a string (I've seen this in projects I've worked on). I'm currently developing in C# more than VB but still have old projects to maintain. Where I work now I've had to make modifications to some VB apps. I turned option strict ON on one of them and there was over 100 errors! (the error list in VS just said there was more didn't tell me how many more) Learn to code or get out of the business! Ok, just had to rant about this.
-
Why in the world in VS2012 is the VB default "option strict off". We are long way from writing VB6 style code. And as a developer I'm not going to declare a variable as an int and assign it a string (I've seen this in projects I've worked on). I'm currently developing in C# more than VB but still have old projects to maintain. Where I work now I've had to make modifications to some VB apps. I turned option strict ON on one of them and there was over 100 errors! (the error list in VS just said there was more didn't tell me how many more) Learn to code or get out of the business! Ok, just had to rant about this.
eigerguy wrote:
VB
eigerguy wrote:
Learn to code
Need anything else be said? ;) Marc
Testers Wanted!
Latest Article: User Authentication on Ruby on Rails - the definitive how to
My Blog -
eigerguy wrote:
VB
eigerguy wrote:
Learn to code
Need anything else be said? ;) Marc
Testers Wanted!
Latest Article: User Authentication on Ruby on Rails - the definitive how to
My BlogI'm not saying that VB.NET is a great language, but if I'm getting paid to maintain VB programs I'll do it :) I'm not getting on a C# vs VB.NET argument. You can do the same with both of them, the .NET libraries are the same. I was frustrated because I'm working on code that people obviously have no clue the difference between variable types. LOL. Anything new I do in .NET is C# because I have a background in C language and I like that style :) If I didn't get paid to use it, I'd never use a Microsoft technology ever. 5 laptops and a server in my home all run Linux, I use virtualbox for my Windows needs. If PHP could create desktop apps, windows services, etc. I wouldn't need Visual Studio.
-
I'm not saying that VB.NET is a great language, but if I'm getting paid to maintain VB programs I'll do it :) I'm not getting on a C# vs VB.NET argument. You can do the same with both of them, the .NET libraries are the same. I was frustrated because I'm working on code that people obviously have no clue the difference between variable types. LOL. Anything new I do in .NET is C# because I have a background in C language and I like that style :) If I didn't get paid to use it, I'd never use a Microsoft technology ever. 5 laptops and a server in my home all run Linux, I use virtualbox for my Windows needs. If PHP could create desktop apps, windows services, etc. I wouldn't need Visual Studio.
-
I'm not saying that VB.NET is a great language, but if I'm getting paid to maintain VB programs I'll do it :) I'm not getting on a C# vs VB.NET argument. You can do the same with both of them, the .NET libraries are the same. I was frustrated because I'm working on code that people obviously have no clue the difference between variable types. LOL. Anything new I do in .NET is C# because I have a background in C language and I like that style :) If I didn't get paid to use it, I'd never use a Microsoft technology ever. 5 laptops and a server in my home all run Linux, I use virtualbox for my Windows needs. If PHP could create desktop apps, windows services, etc. I wouldn't need Visual Studio.
eigerguy wrote:
You can do the same with both of them
Not everything.
-
I'm not saying that VB.NET is a great language, but if I'm getting paid to maintain VB programs I'll do it :) I'm not getting on a C# vs VB.NET argument. You can do the same with both of them, the .NET libraries are the same. I was frustrated because I'm working on code that people obviously have no clue the difference between variable types. LOL. Anything new I do in .NET is C# because I have a background in C language and I like that style :) If I didn't get paid to use it, I'd never use a Microsoft technology ever. 5 laptops and a server in my home all run Linux, I use virtualbox for my Windows needs. If PHP could create desktop apps, windows services, etc. I wouldn't need Visual Studio.
PHP CAN do GUIs!![^] Why? Because they can!
Gryphons Are Awesome! Gryphons Are Awesome!
-
Why in the world in VS2012 is the VB default "option strict off". We are long way from writing VB6 style code. And as a developer I'm not going to declare a variable as an int and assign it a string (I've seen this in projects I've worked on). I'm currently developing in C# more than VB but still have old projects to maintain. Where I work now I've had to make modifications to some VB apps. I turned option strict ON on one of them and there was over 100 errors! (the error list in VS just said there was more didn't tell me how many more) Learn to code or get out of the business! Ok, just had to rant about this.
eigerguy wrote:
And as a developer I'm not going to declare a variable as an int and assign it a string
That is why they have this VariantType[^] It can be almost anything :suss::suss:
Schenectady? What am I doing in Schenectady?