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. Why VB is popular in America!

Why VB is popular in America!

Scheduled Pinned Locked Moved The Lounge
c++phpvisual-studiocom
75 Posts 34 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.
  • D Dr Walt Fair PE

    So what do they do with buildings built on the side of a hill? Here there's a ground floor entrance on the basement, the first floor and the second floor (US). The main office is at the second floor ground entrance.

    CQ de W5ALT

    Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software

    P Offline
    P Offline
    Paul M Watt
    wrote on last edited by
    #26

    It probably depends on what side of the building you are on...

    1 Reply Last reply
    0
    • N Nish Nishant

      PIEBALDconsult wrote:

      I don't see what that has to do with BASIC.

      It's a CodeProject meme from a few years ago where some of us (mostly John, CG and myself) would joke about C/C++ guys 0-indexing in real life vs VB guys who'd use 1-based indexing. :)

      Regards, Nish


      My technology blog: voidnish.wordpress.com

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

      Nishant Sivakumar wrote:

      VB guys who'd use 1-based indexing

      The guys might, but the language doesn't. One could just as easily use 1-based indexing in C/C++.

      N C 2 Replies Last reply
      0
      • N Nish Nishant

        I realized this as I was explaining the 1s floor vs 2nd floor differences[^] between UK and American english. In the UK (and India, Australia) floors are 0-indexed. The ground floor is 0, the first floor above ground is 1, and so on. The basement is usually -1. In the US (and I believe Canada too), floors are 1-indexed. The ground floor is 1, the next floor is 2 and so on. I don't think negative numbering is used for sub-ground levels. May explain why a lot of the C/C++ aficionados are European. While VB and BASIC are essentially American inventions.

        Regards, Nish


        My technology blog: voidnish.wordpress.com

        H Offline
        H Offline
        Hans Dietrich
        wrote on last edited by
        #28

        Waytogo Nish. Expect ten more people to close their accounts here because you've disrespected VB!

        Best wishes, Hans


        [Hans Dietrich Software]

        N 1 Reply Last reply
        0
        • P PIEBALDconsult

          Nishant Sivakumar wrote:

          VB guys who'd use 1-based indexing

          The guys might, but the language doesn't. One could just as easily use 1-based indexing in C/C++.

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #29

          PIEBALDconsult wrote:

          The guys might, but the language doesn't.

          The language culture encourages it. Dim a as int(10) means a 11-item array indexed from 0 to 10. int a[10] means a 10-item array indexed from 0 to 9. Can't change that. People can always work around this (but that's not the point here).

          Regards, Nish


          My technology blog: voidnish.wordpress.com

          S 1 Reply Last reply
          0
          • H Hans Dietrich

            Waytogo Nish. Expect ten more people to close their accounts here because you've disrespected VB!

            Best wishes, Hans


            [Hans Dietrich Software]

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #30

            Hans Dietrich wrote:

            Expect ten more people to close their accounts here because you've disrespected VB!

            :laugh: That's funny but when you add the fact that it's a Hans-quote, you try and look at its inner meaning and then you have that ahhh-moment! 5!

            Regards, Nish


            My technology blog: voidnish.wordpress.com

            1 Reply Last reply
            0
            • L Lost User

              Depends on the building. I think most buildings define a ground level (the entry) or a Lobby and use a letter for the definition on the elevator. My sisters apartment Building has it as such B (Basement) G (Ground) 1 (First Floor) 2 etc etc [EDIT] I use my sisters apartment as an example cause my place of living is even more complicated (yet simple). It is a split entry house. So I have upstairs and downstairs :-D

              Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

              N Offline
              N Offline
              Nish Nishant
              wrote on last edited by
              #31

              Collin Jasnoch wrote:

              It is a split entry house. So I have upstairs and downstairs

              Same here. It's a multi-level (5 actual levels if you include the basement) :-)

              Regards, Nish


              My technology blog: voidnish.wordpress.com

              1 Reply Last reply
              0
              • N Nish Nishant

                I realized this as I was explaining the 1s floor vs 2nd floor differences[^] between UK and American english. In the UK (and India, Australia) floors are 0-indexed. The ground floor is 0, the first floor above ground is 1, and so on. The basement is usually -1. In the US (and I believe Canada too), floors are 1-indexed. The ground floor is 1, the next floor is 2 and so on. I don't think negative numbering is used for sub-ground levels. May explain why a lot of the C/C++ aficionados are European. While VB and BASIC are essentially American inventions.

                Regards, Nish


                My technology blog: voidnish.wordpress.com

                M Offline
                M Offline
                Matt Meyer
                wrote on last edited by
                #32

                Well, much like VB itself, our elevators are not designed for programmers... :-D

                1 Reply Last reply
                0
                • N Nish Nishant

                  I realized this as I was explaining the 1s floor vs 2nd floor differences[^] between UK and American english. In the UK (and India, Australia) floors are 0-indexed. The ground floor is 0, the first floor above ground is 1, and so on. The basement is usually -1. In the US (and I believe Canada too), floors are 1-indexed. The ground floor is 1, the next floor is 2 and so on. I don't think negative numbering is used for sub-ground levels. May explain why a lot of the C/C++ aficionados are European. While VB and BASIC are essentially American inventions.

                  Regards, Nish


                  My technology blog: voidnish.wordpress.com

                  S Offline
                  S Offline
                  Slacker007
                  wrote on last edited by
                  #33

                  if you are on the ground floor, isn't that floor 1? and the floor above you would be floor 2? most hospitals have the base floor as floor 1 and the G is the garage. My reasoning is that how can you be on floor 0? it makes no sense...to me at least. Then again, I'm just a silly American who started off programming with VB. :-D

                  Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                  "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                  N B 2 Replies Last reply
                  0
                  • N Nish Nishant

                    PIEBALDconsult wrote:

                    The guys might, but the language doesn't.

                    The language culture encourages it. Dim a as int(10) means a 11-item array indexed from 0 to 10. int a[10] means a 10-item array indexed from 0 to 9. Can't change that. People can always work around this (but that's not the point here).

                    Regards, Nish


                    My technology blog: voidnish.wordpress.com

                    S Offline
                    S Offline
                    Slacker007
                    wrote on last edited by
                    #34

                    Nishant Sivakumar wrote:

                    The language culture encourages it. Dim

                    When I started programming, I learned with VB but always took notice of the "Dim" statement. It always reminded me of "dim witted". :)

                    Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                    "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                    1 Reply Last reply
                    0
                    • P PIEBALDconsult

                      Nishant Sivakumar wrote:

                      VB guys who'd use 1-based indexing

                      The guys might, but the language doesn't. One could just as easily use 1-based indexing in C/C++.

                      C Offline
                      C Offline
                      CPallini
                      wrote on last edited by
                      #35

                      But then you smell of FORTRAN and have to publish a book about numerical methods. :rolleyes:

                      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                      [My articles]

                      1 Reply Last reply
                      0
                      • N Nish Nishant

                        harold aptroot wrote:

                        VB doesn't skip 13 though

                        Are you saying VB pre-dates Christianity? :rolleyes:

                        Regards, Nish


                        My technology blog: voidnish.wordpress.com

                        C Offline
                        C Offline
                        CPallini
                        wrote on last edited by
                        #36

                        Romans didn't know 0 as well multithreading, I believe.

                        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                        [My articles]

                        N 1 Reply Last reply
                        0
                        • S Slacker007

                          if you are on the ground floor, isn't that floor 1? and the floor above you would be floor 2? most hospitals have the base floor as floor 1 and the G is the garage. My reasoning is that how can you be on floor 0? it makes no sense...to me at least. Then again, I'm just a silly American who started off programming with VB. :-D

                          Just along for the ride. "the meat from that butcher is just the dogs danglies, absolutely amazing cuts of beef." - DaveAuld (2011)
                          "No, that is just the earthly manifestation of the Great God Retardon." - Nagy Vilmos (2011)

                          N Offline
                          N Offline
                          Nish Nishant
                          wrote on last edited by
                          #37

                          Slacker007 wrote:

                          if you are on the ground floor, isn't that floor 1? and the floor above you would be floor 2?

                          In the US, yes. In the UK, India, Australia that'd be floor-0 and the floor above is floor-1.

                          Slacker007 wrote:

                          Then again, I'm just a silly American who started off programming with VB.

                          And here I am, an Indian origin dude living in America (also started with Basic, GWBASIC though not VB) wondering how you can substract 3 from 2. What is all this negative integer stuff anyway? I don't get it. :-D

                          Regards, Nish


                          My technology blog: voidnish.wordpress.com

                          1 Reply Last reply
                          0
                          • C CPallini

                            Romans didn't know 0 as well multithreading, I believe.

                            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
                            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
                            [My articles]

                            N Offline
                            N Offline
                            Nish Nishant
                            wrote on last edited by
                            #38

                            CPallini wrote:

                            Romans didn't know 0 as well multithreading, I believe.

                            :laugh:

                            Regards, Nish


                            My technology blog: voidnish.wordpress.com

                            1 Reply Last reply
                            0
                            • B Bert Mitton

                              That's easy. The rest of the world likes C languages, so we have to like VB just to be obstinate. :laugh:

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

                              Bert Mitton wrote:

                              just to be obstinate.

                              You typical American. :-)

                              I 1 Reply Last reply
                              0
                              • N Nish Nishant

                                I realized this as I was explaining the 1s floor vs 2nd floor differences[^] between UK and American english. In the UK (and India, Australia) floors are 0-indexed. The ground floor is 0, the first floor above ground is 1, and so on. The basement is usually -1. In the US (and I believe Canada too), floors are 1-indexed. The ground floor is 1, the next floor is 2 and so on. I don't think negative numbering is used for sub-ground levels. May explain why a lot of the C/C++ aficionados are European. While VB and BASIC are essentially American inventions.

                                Regards, Nish


                                My technology blog: voidnish.wordpress.com

                                C Offline
                                C Offline
                                clientSurfer
                                wrote on last edited by
                                #40

                                In Russia, array indexes you!

                                "... having only that moment finished a vigorous game of Wiff-Waff and eaten a tartiflet." - Henry Minute  "...who gives a tinker's cuss?" - Dalek Dave

                                1 Reply Last reply
                                0
                                • N Nish Nishant

                                  I realized this as I was explaining the 1s floor vs 2nd floor differences[^] between UK and American english. In the UK (and India, Australia) floors are 0-indexed. The ground floor is 0, the first floor above ground is 1, and so on. The basement is usually -1. In the US (and I believe Canada too), floors are 1-indexed. The ground floor is 1, the next floor is 2 and so on. I don't think negative numbering is used for sub-ground levels. May explain why a lot of the C/C++ aficionados are European. While VB and BASIC are essentially American inventions.

                                  Regards, Nish


                                  My technology blog: voidnish.wordpress.com

                                  M Offline
                                  M Offline
                                  mikemar
                                  wrote on last edited by
                                  #41

                                  I don't get your point. VB.NET is base zero only. Classic VB used base zero by default although you could set an option to make it base one. I've always thought base zero was stupid for any language that doesn't make pointers and arrays synonamous. Personally though I'd like to see most languages let you pick the base so this argument is ended and because there are occasional times when numbers other than zero or 1 would be handy. In fact most languages before C and a few that came after that weren't influenced by C had this feature but this is one area that computer science has gone backwards IMHO due mostly to the influence of C.

                                  N P S 3 Replies Last reply
                                  0
                                  • N Nish Nishant

                                    I realized this as I was explaining the 1s floor vs 2nd floor differences[^] between UK and American english. In the UK (and India, Australia) floors are 0-indexed. The ground floor is 0, the first floor above ground is 1, and so on. The basement is usually -1. In the US (and I believe Canada too), floors are 1-indexed. The ground floor is 1, the next floor is 2 and so on. I don't think negative numbering is used for sub-ground levels. May explain why a lot of the C/C++ aficionados are European. While VB and BASIC are essentially American inventions.

                                    Regards, Nish


                                    My technology blog: voidnish.wordpress.com

                                    C Offline
                                    C Offline
                                    Chris Maunder
                                    wrote on last edited by
                                    #42

                                    I'm passing this on to all my mates back home :D

                                    cheers, Chris Maunder The Code Project | Co-founder Microsoft C++ MVP

                                    1 Reply Last reply
                                    0
                                    • M mikemar

                                      I don't get your point. VB.NET is base zero only. Classic VB used base zero by default although you could set an option to make it base one. I've always thought base zero was stupid for any language that doesn't make pointers and arrays synonamous. Personally though I'd like to see most languages let you pick the base so this argument is ended and because there are occasional times when numbers other than zero or 1 would be handy. In fact most languages before C and a few that came after that weren't influenced by C had this feature but this is one area that computer science has gone backwards IMHO due mostly to the influence of C.

                                      N Offline
                                      N Offline
                                      Nish Nishant
                                      wrote on last edited by
                                      #43

                                      mikemarquard wrote:

                                      I don't get your point. VB.NET is base zero only. Classic VB used base zero by default although you could set an option to make it base one

                                      Okay, the original post was meant as humor (hence the joke icon). That said, it's also a CodeProject meme from a few years ago where some of us (mostly John, CG and myself) would joke about C/C++ guys 0-indexing in real life vs VB guys who'd use 1-based indexing. Dim a as int(10) means a 11-item array indexed from 0 to 10. int a[10] means a 10-item array indexed from 0 to 9. So typically Basic devs would just treat it as a 10-item collection indexed from 1 to 10 (ignoring the 0th element).

                                      Regards, Nish


                                      My technology blog: voidnish.wordpress.com

                                      1 Reply Last reply
                                      0
                                      • M mikemar

                                        I don't get your point. VB.NET is base zero only. Classic VB used base zero by default although you could set an option to make it base one. I've always thought base zero was stupid for any language that doesn't make pointers and arrays synonamous. Personally though I'd like to see most languages let you pick the base so this argument is ended and because there are occasional times when numbers other than zero or 1 would be handy. In fact most languages before C and a few that came after that weren't influenced by C had this feature but this is one area that computer science has gone backwards IMHO due mostly to the influence of C.

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

                                        mikemarquard wrote:

                                        let you pick the base

                                        Untested:

                                        public partial class Array<T>
                                        {
                                        protected T[] array ;

                                        public Array
                                        (
                                          int BaseIndex
                                        ,
                                          int Capacity
                                        )
                                        {
                                          this.BaseIndex = BaseIndex ;
                                        
                                          this.array = new T \[ Capacity \] ;
                                        
                                          return ;
                                        }
                                        
                                        public virtual int BaseIndex { get ; private set ; }
                                        
                                        public virtual int Capacity 
                                        {
                                          get
                                          {
                                            return ( this.array.Length ) ;
                                          }
                                        }
                                        
                                        public virtual T
                                        this
                                        \[
                                          int Index
                                        \]
                                        {
                                          get
                                          {
                                            return ( this.array \[ Index + this.BaseIndex \] ) ;
                                          }
                                        
                                          set
                                          {
                                            this.array \[ Index + this.BaseIndex \]  = value ;
                                        
                                            return ;
                                          }
                                        }
                                        

                                        }

                                        B 1 Reply Last reply
                                        0
                                        • L Lost User

                                          I would think that is only the case in those building. Like in my sisters apartment building she lives on floor 3. You go to the elevator and press 3 or walk up the stairs till you see 3. If someone told you level 4, well they are... How to a put this delicately. "An idiot". I have stayed in hotels that have Lobby as the main. In fact there are no rooms on the main floor (conference rooms etc, but no sleeping rooms). These in particular define the "1st" floor as that above the lobby. If the conceirge tells you, "Your room is on floor 3" and you press three but really he meant 2 (cause he thinks of the lobby as 1), he should be fired or atleast given a good lashing. However, with that said there are plenty of hotels (in particual motels are this way) that have the "1st" floor defined as the ground level. Just have to be observant I think. I do see how getting a "1st" floor room might end up confusing in the states. Because in some cases it is ground and some not. So one thinks its ground and goes looking for the room and then realizes they are on the "G" level or "L" level. But any other level you need to use stairs or an elevator regardless so you quickly realize where you are and where you need to be.

                                          Computers have been intelligent for a long time now. It just so happens that the program writers are about as effective as a room full of monkeys trying to crank out a copy of Hamlet.

                                          B Offline
                                          B Offline
                                          BobJanova
                                          wrote on last edited by
                                          #45

                                          What I remember of US hotels is that they often number 'L, 2, 3 ...'.

                                          L 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