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. VB = Very Best

VB = Very Best

Scheduled Pinned Locked Moved The Lounge
csharp
35 Posts 25 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.
  • T Tesfamichael G

    Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

    N Offline
    N Offline
    Nemanja Trifunovic
    wrote on last edited by
    #18

    tmik wrote:

    Is there any one who can pin point the things VB can't do while other languages can do.

    Eh, where do I start? You can't write a Linux device driver with VB and you can with some other programming languages. You can't write an OS kernel with VB and you can with some other programming languages. You can' write any real-time software with VB and you can with some other programming languages. You can't write a Chrome extension with VB and you can with some other programming languages. You can't extend the syntax of VB with VB and you can extend syntax of some other languages using those languages.

    utf8-cpp

    G 1 Reply Last reply
    0
    • T Tesfamichael G

      Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #19

      tmik wrote:

      Is there any one who can pin point the things VB can't do while other languages can do.

      Surely I cannot: In my opinion, VB programmers can do all the weirdest things I'm not even able to imagine.

      Veni, vidi, vici.

      In testa che avete, signor di Ceprano?

      1 Reply Last reply
      0
      • R Ranjan D

        Quote:

        VB can't do while other languages can do

        Tell me how to perform unsafe code in VB.NET ? Thanks,

        Ranjan.D

        N Offline
        N Offline
        Nicholas Marty
        wrote on last edited by
        #20

        write a C# dll with the unsafe methods or code parts and reference it? ;P

        1 Reply Last reply
        0
        • T Tesfamichael G

          Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

          N Offline
          N Offline
          Nicholas Marty
          wrote on last edited by
          #21

          I currently use both VB.Net and C# at work. Newer projects are all C#. However one feature I sometimes miss: VB.Net shows you Error pretty much as soons as you write them. For C# you have to recompile the whole lot before you even know that you have errors :sigh: Still I like c# way more. Especially Linq and Lambda Expresseions are a PITA in VB.Net.

          1 Reply Last reply
          0
          • N Nemanja Trifunovic

            tmik wrote:

            Is there any one who can pin point the things VB can't do while other languages can do.

            Eh, where do I start? You can't write a Linux device driver with VB and you can with some other programming languages. You can't write an OS kernel with VB and you can with some other programming languages. You can' write any real-time software with VB and you can with some other programming languages. You can't write a Chrome extension with VB and you can with some other programming languages. You can't extend the syntax of VB with VB and you can extend syntax of some other languages using those languages.

            utf8-cpp

            G Offline
            G Offline
            GuyThiebaut
            wrote on last edited by
            #22

            Nemanja Trifunovic wrote:

            You can't extend the syntax of VB with VB and you can extend syntax of some other languages using those languages.

            Not sure what you mean by 'Extend' but I have this in all my VB code so that I don't need to use delegates with cross thread calls:

            Module Extensions

                 \_
                Sub SynchronisedInvoke(synchMe As ISynchronizeInvoke, action As Action)
            
                    If Not synchMe.InvokeRequired Then
            
                        action()
            
                    Else
            
                        synchMe.Invoke(action, New Object() {})
            
                    End If
            
                End Sub
            

            End Module

            “That which can be asserted without evidence, can be dismissed without evidence.”

            ― Christopher Hitchens

            N 1 Reply Last reply
            0
            • G GuyThiebaut

              Nemanja Trifunovic wrote:

              You can't extend the syntax of VB with VB and you can extend syntax of some other languages using those languages.

              Not sure what you mean by 'Extend' but I have this in all my VB code so that I don't need to use delegates with cross thread calls:

              Module Extensions

                   \_
                  Sub SynchronisedInvoke(synchMe As ISynchronizeInvoke, action As Action)
              
                      If Not synchMe.InvokeRequired Then
              
                          action()
              
                      Else
              
                          synchMe.Invoke(action, New Object() {})
              
                      End If
              
                  End Sub
              

              End Module

              “That which can be asserted without evidence, can be dismissed without evidence.”

              ― Christopher Hitchens

              N Offline
              N Offline
              Nemanja Trifunovic
              wrote on last edited by
              #23

              GuyThiebaut wrote:

              Not sure what you mean by 'Extend'

              I mean like with Lisp macros. For instance, Scheme doesn't offer any out-of-the box support for object oriented programming, but because it has Lisp-type macros, people wrote extensions (such as ScmObj[^]) that turn Scheme into an OOP language. A nice explanation of Lisp macros can be found here: http://lists.warhead.org.uk/pipermail/iwe/2005-July/000130.html[^]

              utf8-cpp

              G 1 Reply Last reply
              0
              • T Tesfamichael G

                Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

                E Offline
                E Offline
                Ennis Ray Lynch Jr
                wrote on last edited by
                #24

                Do you want a pointer on what vb can't do. Some times it is hard to point out specifics. Maybe some of the C++ guys will chime in with a few pointers.

                Need custom software developed? I do custom programming based primarily on MS tools with an emphasis on C# development and consulting. "And they, since they Were not the one dead, turned to their affairs" -- Robert Frost "All users always want Excel" --Ennis Lynch

                1 Reply Last reply
                0
                • N Nemanja Trifunovic

                  GuyThiebaut wrote:

                  Not sure what you mean by 'Extend'

                  I mean like with Lisp macros. For instance, Scheme doesn't offer any out-of-the box support for object oriented programming, but because it has Lisp-type macros, people wrote extensions (such as ScmObj[^]) that turn Scheme into an OOP language. A nice explanation of Lisp macros can be found here: http://lists.warhead.org.uk/pipermail/iwe/2005-July/000130.html[^]

                  utf8-cpp

                  G Offline
                  G Offline
                  GuyThiebaut
                  wrote on last edited by
                  #25

                  I see what you mean :thumbsup: I was looking at Haskell recently(can't claim I understood it).

                  “That which can be asserted without evidence, can be dismissed without evidence.”

                  ― Christopher Hitchens

                  1 Reply Last reply
                  0
                  • T Tesfamichael G

                    Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #26

                    tmik wrote:

                    Is there any one who can pin point the things VB can't do while other languages can do.

                    Is that the differentiating factor you use to guage whether one language is better than another? If so, then no answer will suffice.

                    "One man's wage rise is another man's price increase." - Harold Wilson

                    "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

                    "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

                    1 Reply Last reply
                    0
                    • C Chris Maunder

                      Ranjan.D wrote:

                      unsafe code

                      Ranjan.D wrote:

                      VB.NET

                      Isn't that a tautology? (OK, cheap shot! - I've written enough VB in my time)

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

                      It's not possible to write in VB.NET and peoples simply don't except the truth :laugh: Unsafe code - http://msdn.microsoft.com/en-us/library/aa664769(v=vs.71).aspx[^]

                      Ranjan.D

                      1 Reply Last reply
                      0
                      • T Tesfamichael G

                        Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

                        S Offline
                        S Offline
                        Silvabolt
                        wrote on last edited by
                        #28

                        VB: Dim num As Integer C#: int num; For every integer I declare, I have to press ~10 more keys in VB than C#. It gets worst as my code becomes longer and you end up seeing a ton of Dims and unnecessary text. It takes longer to read through, iffy looking syntax... What exactly is a 'Dim' anyways? If you research the answer to this, you will realize that it's definition is not intuitive anymore and wrongly used based on what it's supposed to mean.

                        1 Reply Last reply
                        0
                        • T Tesfamichael G

                          Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

                          D Offline
                          D Offline
                          Dave Kreskowiak
                          wrote on last edited by
                          #29

                          That's easy, C/C++/C# style "pointers". That alone makes image processing SOOOO much easier.

                          A guide to posting questions on CodeProject[^]
                          Dave Kreskowiak

                          1 Reply Last reply
                          0
                          • M Marc Clifton

                            tmik wrote:

                            Is there any one who can pin point the things VB can't do while other languages can do.

                            There's a few good (actually good) discussions I've seen out there that demonstrate some of VB's problems. I don't remember where they are though, as I stay away from VB because the pay rate for VB developers is lower, the majority of VB jobs that I've seen are coding, no architecture or design involved in the job, and quite frankly, most of the VB stuff seem to be filled by junior developers. Case in point, the management at a large communication satellite manufacturer that I was working at wanted to know why we didn't write the code in VB (we were using C#) and cited that VB programmers were cheaper and more readily available and that "everyone" could understand VB. While cheaper and more available is true, "everyone could understand VB" is a huge misconception that many managers seem to have - because the language is supposedly easier to understand, the code therefore is supposedly easier to write and maintain. Marc

                            Day 1: Spider Database Navigator Unit Testing Succinctly

                            M Offline
                            M Offline
                            Mycroft Holmes
                            wrote on last edited by
                            #30

                            Marc Clifton wrote:

                            VB programmers were cheaper and more readily available

                            I have found there are more skilled resources in c#, and the fact that 80% of all articles and examples seem to be in c# was enough for me to take the team from vb to c#.

                            Never underestimate the power of human stupidity RAH

                            1 Reply Last reply
                            0
                            • T Tesfamichael G

                              Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

                              V Offline
                              V Offline
                              Vark111
                              wrote on last edited by
                              #31

                              Here's one I run into almost everyday: When I override Equals(), I must also override GetHashCode(). Most Hashcode calcs require math that will quickly overflow an integer. No worries, I can simply turn off overflow checking and let it overflow - the function still performs properly. Here's the rub: in C# I can leave the assembly as checked, and just mark my GetHashcode() method as unchecked. Can't do that in VB. You can only mark the entire assembly as checked or unchecked. At least, that's the way it was in 2008. Stopped using VB at that point.

                              1 Reply Last reply
                              0
                              • M Marc Clifton

                                tmik wrote:

                                Is there any one who can pin point the things VB can't do while other languages can do.

                                There's a few good (actually good) discussions I've seen out there that demonstrate some of VB's problems. I don't remember where they are though, as I stay away from VB because the pay rate for VB developers is lower, the majority of VB jobs that I've seen are coding, no architecture or design involved in the job, and quite frankly, most of the VB stuff seem to be filled by junior developers. Case in point, the management at a large communication satellite manufacturer that I was working at wanted to know why we didn't write the code in VB (we were using C#) and cited that VB programmers were cheaper and more readily available and that "everyone" could understand VB. While cheaper and more available is true, "everyone could understand VB" is a huge misconception that many managers seem to have - because the language is supposedly easier to understand, the code therefore is supposedly easier to write and maintain. Marc

                                Day 1: Spider Database Navigator Unit Testing Succinctly

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

                                Marc Clifton wrote:

                                VB programmers were cheaper and more readily available

                                And larger about the chestal region. :cool:

                                1 Reply Last reply
                                0
                                • T Tesfamichael G

                                  Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

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

                                  Several; the limitation that comes to mind first is that in VB.net you can't define an event based on a delegate that returns a value. The only places I see VB.net as better than C# is in how to declare an Extension Method and VB.net's support of method-scoped static variables. VB.net has a lot of historical baggage that weight it down. C# is better than VB.net because C is better than BASIC.

                                  1 Reply Last reply
                                  0
                                  • T Tesfamichael G

                                    Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

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

                                    VB can do anything other languages can do, only worse. Actually, the real problem isn't the language. It's the people who tend to use it because it's "easy." Using spray paint is easy too, as long as you don't use it well.

                                    1 Reply Last reply
                                    0
                                    • T Tesfamichael G

                                      Am I wrong to declare VB .Net is the best programing language ever. Is there any one who can pin point the things VB can't do while other languages can do.

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

                                      Curly braces

                                      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