Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Option Strict

Option Strict

Scheduled Pinned Locked Moved The Lounge
csharpvisual-studiobusinesshelp
8 Posts 7 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    rriegel
    wrote on last edited by
    #1

    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.

    L M B 3 Replies Last reply
    0
    • R rriegel

      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.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      eigerguy wrote:

      Learn to code or get out of the business!

      Always happy that surgeons have a different approach to learning their trade than developers.

      Bastard Programmer from Hell :suss: If you can't read my code, try converting it here[^]

      1 Reply Last reply
      0
      • R rriegel

        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.

        M Offline
        M Offline
        Marc Clifton
        wrote on last edited by
        #3

        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

        R 1 Reply Last reply
        0
        • M Marc Clifton

          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

          R Offline
          R Offline
          rriegel
          wrote on last edited by
          #4

          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.

          R P B 3 Replies Last reply
          0
          • R rriegel

            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.

            R Offline
            R Offline
            Ranjan D
            wrote on last edited by
            #5

            Quote:

            If PHP could create desktop apps, windows services, etc. I wouldn't need Visual Studio.

            If this is the case then you won't be titled as .NET Programmer. You will be a PHP guy :)

            Ranjan.D

            1 Reply Last reply
            0
            • R rriegel

              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.

              P Offline
              P Offline
              PIEBALDconsult
              wrote on last edited by
              #6

              eigerguy wrote:

              You can do the same with both of them

              Not everything.

              1 Reply Last reply
              0
              • R rriegel

                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.

                B Offline
                B Offline
                Brisingr Aerowing
                wrote on last edited by
                #7

                PHP CAN do GUIs!![^] Why? Because they can!

                Gryphons Are Awesome! ‮Gryphons Are Awesome!‬

                1 Reply Last reply
                0
                • R rriegel

                  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.

                  B Offline
                  B Offline
                  bVagadishnu
                  wrote on last edited by
                  #8

                  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?

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups