Slashdot Mirror


Visual Basic 2005 Jumpstart

Graeme Williams writes "The tag line for Visual Basic Jumpstart is, 'Make Your Move Now from VB 6 to VB 2005', but the book also includes introductory and summary material rather than staying focused on VB 6 users. The book has a few good examples and some useful information about Visual Basic 2005, but the information, including links to the Internet, doesn't seem complete or up-to-date. This book isn't the help you need." Read the rest of Graeme's review. Visual Basic 2005 Jumpstart author Wei-Meng Lee pages xiv + 197 publisher O'Reilly Media rating 5 reviewer Graeme Williams ISBN 0-596-10071-X summary A useful but flawed snapshot of Visual Basic 2005 without a clear audience

My current (small) applications are in Access and Visual Basic for Applications rather than VB 6, but with that caveat I'm part of the audience for this book, since I'm actively considering moving them to Visual Basic 2005. I want to like this book more than I do. Part of my confusion is that all of the chapters are useful, but I don't think they're useful to the same people.

I have no idea who the audience is for Chapter 2, "Programming with Visual Basic". Some of the information is useful and relevant, with specifics on differences between VB6 and VB2005, but some of it just seems plain silly: "Just as in VB 6, in VB 2005, you make decisions using the If-Then-Else construct". The wording is sometimes odd, too. The fact that parentheses in function calls are now mandatory in VB 2005 is explained backwards: "VB 6 Tip: In VB 6, you can call the PrintMessage subroutine without using parentheses to enclose the parameter list." The chapter could have been collapsed into a very clear and not very large table giving the differences between VB 6 and VB 2005.

In VB 2005, Microsoft has introduced a new bag of functions under the My. namespace. It's not a very big bag – it feels like the product manager wrote down the first four or five functions he thought of. For example, My.Computer.Network contains just five elements: IsAvailable, DownloadFile, UploadFile, Ping, and the NetworkAvailabilityChanged event. Jumpstart describes it as " ... one of the most useful and unique additions to VB 2005 ... The aim of the My namespace is to provide direct access to commonly used libraries in the .NET framework that were previously difficult to access." I'm sorry, that just sounds too much like a press release.

If you're really interested in the status of a network interface, for example, you need to look in the 30+ classes in the System.Net.NetworkInformation namespace. But this is not included in the list of "some other useful namespaces in the .NET framework" (p61). Also, Example 4-3 (p117) uses the System.Net.HttpWebRequest and System.Net.HttpWebResponse classes to download an image, not any of the classes mentioned in Chapter 3.

On the face of it, Chapter 3, "Putting Object-Oriented Programming to Work", provides a very clear and thorough introduction to the object-oriented programming constructs in VB 2005. Unfortunately, it's not complete. Microsoft has a summary of "Object-Oriented Programming for Visual Basic 6.0 Users" which points out that the Binary Compatibility option from VB6 is no longer supported in VB 2005, but this is not mentioned in Jumpstart.

If you're moving from VB6 to VB2005, you're also moving to NET 2.0, but the book has only the most cursory introduction to NET 2.0. Part of the problem is that the book needs to be either more or less reliant on online information. If it was less reliant on online information, it would be more useful as a stand-alone resource. If it was more thoroughly linked to the estimable resources at Microsoft.com, it would be more complete and up-to-date.

Jumpstart mentions two MSDN Help Topics: "Programming Element Support Changes Summary" and "Help for Visual Basic 6.0 Users". The former is very useful, perhaps more useful than found in this book, although it's organized in MSDN's one fact per page style. The latter can only be found via Google, since it is now part of MSDN2, the "new MSDN" for Visual Studio 2005 and SQL Server 2005. MSDN2 is not mentioned in the book, nor is VBRun, the Visual Basic 6.0 Resource Center, which has a boatload of information on moving to VB 2005.

The database application in Chapter 4, "Developing a Windows Application" is useful and clearly presented. It's a nice example of the new SplitContainer control. But it's no better than examples in other introductions to Visual Basic, and it's a little hard to see how it's suited to the stated purpose of this book – of introducing developers with an existing Visual Basic 6 code base to Visual Basic 2005.

The term "jumpstart" cuts both ways. The goal of the book is to give VB6 programmers a rapid introduction to Visual Basic 2005. But the book itself was published rapidly – before Visual Basic 2005 was released – and some of that speed shows. On page 126, Jumpstart instructs you how to configure Windows XP to run IIS, but on page 139 points out that this isn't possible in XP Home.

Chapter 5, "Building Web Applications", explains that Visual Studio includes its own web server, so you don't need to run IIS, but the fact that Visual Basic 2005 Express doesn't include this feature is mentioned only in the preface (page xi). To provide IIS, you need either Windows XP Professional, or Visual Studio Standard or above, or Visual Web Developer 2005 Express. Wouldn't it make sense to explain the various combinations of operating systems and Visual Studio editions in one place, at the beginning of the chapter where they're relevant?

I'm not an ASP programmer, but I feel as though the 35 pages devoted to ASP probably aren't enough to give the topic a decent introduction, which perhaps deserves a separate book. For example, authentication is covered in just three short paragraphs. The 35 pages could have been devoted to something more central to the topic, such as more details on .NET 2.0. Obviously, there are other books on .NET 2.0, but while you can use Visual Basic 2005 without ASP, you can't use it without .NET 2.0.

If we take the book's tagline seriously, Chapter 6, "Moving from VB 6 to to VB 2005", should be the core of book, but it seems like more of an afterthought. Much of the content is from Artinsoft. Rather than reading about about it third-hand in this book, or second-hand on MSDN, I recommend you go to the the Artinsoft web site, where they have plenty of information for download.

It's hard to put a numerical rating on a book like this, which doesn't seem focused or particularly thorough, but still contains a lot of useful information. The book could have been better if it had been linked more systematically to Microsoft's online resources. It might have seemed better if the audience had been clearer. A rating of 5 ("Neither terrible nor terribly good") seems about right. By all means buy the book if you think it will be worth the money to have the information and examples in book form. Just don't expect too much."

You can purchase Visual Basic 2005 Jumpstart from bn.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page

169 comments

  1. VB? by guyfromindia · · Score: 0, Flamebait

    You jump "startled" me :)

  2. Don't switch to VB.Net - Switch to C# by EraserMouseMan · · Score: 3, Insightful

    VB.Net is syntactically a lot different from classic VB. If you're going to make the switch, you might as well learn C#. Then you will also be familiar with C/C++ style coding.

    Ditch the Dim!

    1. Re:Don't switch to VB.Net - Switch to C# by netkid91 · · Score: 1, Funny

      Public Main (e EventArgs) {
      Stupid Microsoft = new stupid();
      Stupid.GoBankruptIn = 100;
      Stupid.Start();
      }
      Public On_Bankrupt (e EventArgs) {
      Linux Ubuntu = new Linux();
      Linux.DominatePlanet();
      }
      //The domination of Linux written in C#

      --
      NO~, I read Slashdot because I think it's stupid.....
    2. Re:Don't switch to VB.Net - Switch to C# by Helios1182 · · Score: 1

      I agree. I just started in C# because a colleague had a large base of code we needed in the language already. It is actually quite a nice language. The most painful part was installing Windows for the first time in years.

    3. Re:Don't switch to VB.Net - Switch to C# by amliebsch · · Score: 1
      Stupid Microsoft = new stupid(); Stupid.GoBankruptIn = 100; Stupid.Start();

      Shouldn't that be:

      Stupid Microsoft = new stupid();
      Microsoft.GoBankruptIn = 100;
      Microsoft.Start();

      Also:

      Linux Ubuntu = new Linux();
      Ubuntu.DominatePlanet();

      --
      If you don't know where you are going, you will wind up somewhere else.
    4. Re:Don't switch to VB.Net - Switch to C# by netkid91 · · Score: 0

      Yeah, I messed up, my /coding skills are sucking recently.

      --
      NO~, I read Slashdot because I think it's stupid.....
    5. Re:Don't switch to VB.Net - Switch to C# by GoatMonkey2112 · · Score: 1

      mono

    6. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 1, Interesting
      I disagree. With VB.Net, there's _zero_ reason to switch to C# - since thanks to the CLR the languages are just as powerful; with VB having a slightly more agile syntax. For the grandparent's opinion about becoming familiar with C/C++ -- learn C or C++ to augment your VB.

      Personally, I think C# and Java (which I've invested almost a decade learning/using) are pretty much never the best solution anymore. Anything I can do in Java I can do better with a mix of Python (or Ruby) and C. Java (and C#) are mediocre compromises of languages that aren't as well suited for high-level programming as Python; not as good at OO as Ruby/Lisp; and not as good for low-level tasks as C. IMHO the only reason they're used is when a middle-manager wants to force a single-language-for-everything because Sun or Microsoft took him to lunch.

      Use the right tool for the job.

      In the windows world, I'd recommend VB + C++.
      In the *nix world, I'd recommend Python + C.

    7. Re:Don't switch to VB.Net - Switch to C# by angel'o'sphere · · Score: 1

      I second that!
      And I even third that (if that makes sense) ;D !

      But I wonder: is there a /. reader who admits he is coding in VisualBasic, and for whom it makes sense to read such a book review?

      angel'o'sphere

      (P.S. I regullary don't admit I program in C# .... and the actual project is my first and hopefully my last C# project, never saw so much stupidity on one place concentrated)

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    8. Re:Don't switch to VB.Net - Switch to C# by RingDev · · Score: 2, Interesting

      I disagree. VB.Net is symanticly very similar to VB6. Almost identical. Vb.Net is Object Oriented, and it's design considerations are vastly different from VB6. The problem most VB6 developers run into is that they know the syntax and they expect it to work a specific way. What I tell most people who talk about learning VB.Net is to take a Java or C# class, becuase they are both OO languages that will remove the expectations you have from knowing the syntax. Once you can wrap your head around OO design, jump back to VB.Net and things will make much more sence.

      -Rick

      --
      "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
    9. Re:Don't switch to VB.Net - Switch to C# by GoatMonkey2112 · · Score: 1

      I disagree. Either vb.net or c# are virtually the same thing. If you've learned one you can pick up the other in a few days pretty easily. Remember the vb.net to c#.net conversion software works pretty well. If a computer can convert it that easily then it's also pretty easy for a person to learn the other.

      The main reasons to learn C# over vb.net is that the samples available are usually written in C#, and the jobs available usually have a snobby attitude that C# developers are somehow superior because it says C* in the name of the language, so it must be WAY betterer right?!? Therefore, C# jobs pay more and seem to be more abundant. Even though its the exact same stuff with the names changed to protect the innocent.

    10. Re:Don't switch to VB.Net - Switch to C# by GoatMonkey2112 · · Score: 1

      Damn, I hit reply on the wrong thread.

    11. Re:Don't switch to VB.Net - Switch to C# by RandoX · · Score: 2, Funny

      If a computer can convert it that easily then it's also pretty easy for a person to learn the other.

      The computer converts source code to binary pretty easily, too.

    12. Re:Don't switch to VB.Net - Switch to C# by P3NIS_CLEAVER · · Score: 0

      My main problem is that the vb.net is compiled into c# and then into runtime. Even with the most stringent compiling I find many programming mistakes are not picked up by the compiler. It makes problem solving a real chore, not to mention vb syntax is hideous.

      --
      Please sign petition to restore sanity to our banking system!!!

      http://financialpetition.org/
    13. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0
      Here is a nickel kid, buy yourself a dictionary.

      symanticly => semantically
      it's => its
      becuase => because
      sence => sense

    14. Re:Don't switch to VB.Net - Switch to C# by P3NIS_CLEAVER · · Score: 0

      How the heck is it agile? Wordy syntax makes it agile? Having to call a function to cast objects makes it agile? No ternery operator? Errors constantly missed by the compiler?
      Please enlighten me!

      --
      Please sign petition to restore sanity to our banking system!!!

      http://financialpetition.org/
    15. Re:Don't switch to VB.Net - Switch to C# by stupidfoo · · Score: 1

      mono is a joke
      I spit on mono.

    16. Re:Don't switch to VB.Net - Switch to C# by Helios1182 · · Score: 1

      I'm looking into it. It is a rather small project, possibly with huge ramifications if it works, so a simple solution is best. And I got XP SP2 & Visual Studio 2005 for free with the right academic license .

    17. Re:Don't switch to VB.Net - Switch to C# by EraserMouseMan · · Score: 1

      Wow so, attend a real OO class to learn a real OO language (C# or Java). Then go back to the old VB syntax just so you're back in your comfort zone? It's much better to go totally OO. Not OO-ified VB. It's just weird man, just weird.

      I used to do significant projects in classic VB. Now I use C# and cringe anytime I see people doing VB.Net. It's just so unnatural. It's like restoring a classic car's engine without restoring the body. It's never going to win anything at a classic car show. People will look at it and say, "What's up with that ugly old car?" Yea but it's got a new engine!! It still looks like the same old rusted out car though.

      If you're going to go OO, pick the appropriate langage too. I know a company doing RPG.Net. How absurd is that?!?!?!?!?

    18. Re:Don't switch to VB.Net - Switch to C# by RingDev · · Score: 1

      VB.Net is not compiled to C#. VB.Net (and C#) are both compiled to CLR, then compiled to Native at the first run on the actual machine.

      The only problems I have found with programming mistakes not being picked up by the compiler are late binding issues where elements are access by string/integer identifiers and the debugger picks those up as expected. I mean, the compiler doesn't know that my database has a table with a column names "Value1" at compile time, so If I fat finger "Valeu1" into an identifier, the Compiler has no way of validating that. I'm sorry you feel the VB syntax is so bad, but it is the most popular syntax in the world (or at least was, it has been a few years since I say the world wide estimates)

      -Rick

      --
      "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
    19. Re:Don't switch to VB.Net - Switch to C# by helix400 · · Score: 1

      VB.Net is syntactically a lot different from classic VB. If you're going to make the switch, you might as well learn C#. Then you will also be familiar with C/C++ style coding.

      I disagree. If you have a VB 6 project with hundreds of thousands of lines of code, and the code is clean enough, then you can use a code converter utility to move almost all of your code to VB.NET. In most business environments, it is much better to be quickly up and running on VB.NET, than it is to rewrite hundreds of thousands of lines in C#.

    20. Re:Don't switch to VB.Net - Switch to C# by Giometrix · · Score: 1

      ..what kind of stupidity? Blanket statements like that don't help anyone.

      --
      Download free e-books, lectures, and tutorials at bookgoldmine.com
    21. Re:Don't switch to VB.Net - Switch to C# by P3NIS_CLEAVER · · Score: 0

      At least when I was using it a few years ago when I would write a function the compiler wouldn't pick up if I forgot to return a value. It is a common mistake for me and very frustrating when a function returns null and it 'should' be impossible. Yes, the syntax is very popular in a Britney Spears kind of way.

      --
      Please sign petition to restore sanity to our banking system!!!

      http://financialpetition.org/
    22. Re:Don't switch to VB.Net - Switch to C# by RingDev · · Score: 1

      "Wow so, attend a real OO class to learn a real OO language (C# or Java). Then go back to the old VB syntax just so you're back in your comfort zone?"

      Uhh, Vb.Net IS real OO. VB6 is not. And why should you make developers learn an entirely new syntax when they are already proficient in one? Especially in a system like .Net where compiling different syntaxes is trivial. VB, Java, C#, PHP, you can do it all in .Net! The whole point was that you could use what ever language syntax you are familiar with and use the framework to its fullest.

      As for C# dominating the mainstream over VB.Net? Do some google searches: "VB.Net Samples" results in 5.96m results, "C# Samples" results in 4.75m. VB.Net and C# both max Monster.com's job search out at 1000 results. So whether you like it or not, it is hardly a second class language.

      -Rick

      --
      "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
    23. Re:Don't switch to VB.Net - Switch to C# by RingDev · · Score: 1

      By default (only God and Bill Gates know why) option explicit and strict are turned off. With them off you can get away with sloppy things like not returning values. With them turned on the compiler will spit out an error.

      -Rick

      --
      "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
    24. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 1, Informative

      Uh, no. VB and VB.NET have similar syntax. They are different only because of the .NET framework. If you learn c# you will NOT know c/c++ they are NOT similar. Java and c# have similar syntax. If you are trying to get a com object to work, you have to put a wrapper on it. .NET compiles com+, which VB6,VFP cant interop with, so you have to add a com wrapper, which is simply clicking a checkbox. Now, trying to put a com object into a .NET app is not so fun, but if you know the language, you can build your own com+ objects that will work with legacy VB apps. There are a ton of articles on this subject, look up com+ of .NET remoting, good stuff if you're interested in N-Tier solutions.

    25. Re:Don't switch to VB.Net - Switch to C# by Unnngh! · · Score: 2, Interesting
      I think the main reason that vb.net is so popular is due to the hordes of vb6 programmers who are moving to .NET. There is a technet article (can't find the url now) about how MS documentation is moving more towards vb.net-only code examples. The company found that a) there are way more vb.net programmers than c# programmers and b) c# programmers are more likely to be willing to look at and understand vb.net code than the other way around.

      I cannot see that vb syntax, for someone coming in with no prior experience, would be better than c# syntax. VB.NET has more than twice the number of reserved words than C#, with no added functionality that I have been able to tell. The "Basic" in Visual Basic has long since been obliterated.

    26. Re:Don't switch to VB.Net - Switch to C# by oliverthered · · Score: 1

      If your going to suggest learning C# then you may as well suggest switching to Java because .
      1: It makes Javascript easier.
      2: It makes c# easier
      3: It makes C/C++ style coding easier.
      4: You are no longer locked into a single vendor on a single platform.

      Oh and it's free or you can pay for JRockit, and the IDE (Eclipse) is free, or you can use JBuilder foundation or pay for a better version of JBuilder or even maybe a Microsoft product etc....

      --
      thank God the internet isn't a human right.
    27. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0

      While c# and vb.net compile to the same language CLR, and they both have access to the same framework, VB.NET is considered more RAD (rapid application development) because certain functions can be written with less code then c#, the downside is that you get less control of your objects,variables, whatever. In c# you get more control but will have to write more code. IMHO.

    28. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0

      What use is a dictionary if you cannot spell? How the hell as you supposed to find anything in a dictionary if you don't know how to spell it?

    29. Re:Don't switch to VB.Net - Switch to C# by oliverthered · · Score: 1

      "Vb.Net IS real OO. VB6 is not."

      That's odd, I thought there was some restriction on extending base objects because they are basically wrappers around Windows API.

      --
      thank God the internet isn't a human right.
    30. Re:Don't switch to VB.Net - Switch to C# by oliverthered · · Score: 1

      Is that real search results or just something you pulled off the top of your head, because as of today the stats for the UK are:
      vb.net : 139
      C# 449
      Java 770

      --
      thank God the internet isn't a human right.
    31. Re:Don't switch to VB.Net - Switch to C# by GoatMonkey2112 · · Score: 1

      Now that's funny. My comment actually applies to this thread too.

    32. Re:Don't switch to VB.Net - Switch to C# by MioTheGreat · · Score: 1

      That isn't C#. That isn't C# at all... It's like a horrible mix of VB, C#, and who knows what. //Now this.... public static void main() { stupid microsoft = new stupid(); microsoft.Bankrupt = new EventHandler(on_Bankrupt); microsoft.GoBankruptIn = 100; microsoft.Start(); Application.Run(); } public void on_Bankrupt(object sender, EventArgs e) { linux Ubutunu = new linux(); linux.DominatePlanet(); (sender as stupid).Dispose(); } There we go.

    33. Re:Don't switch to VB.Net - Switch to C# by moe.ron · · Score: 2, Insightful

      The company found that a) there are way more vb.net programmers than c# programmers ...bell curve with C# > VB, there, I said it and b) c# programmers are more likely to be willing to look at and understand vb.net code than the other way around. ...more likely to understand the basic core programming concepts in most languages? Or less dependant on Microsoft's lame and over-simplified code examples to learn how to use their API's? Ok, I am biased towards C#, so what?

    34. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0
      as => are

      Good point. I'd just give up if I were you.

    35. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0

      1) How?

      2) ok, i went from java to c#, so yes learning or knowing java will make c# easier, at least the syntax but you still have to learn the framework.

      3) How?

      4) You're not with c# either, mono, borland, if you're real good any text editor.

      But in terms of saving money going from VB6 to vb.net is your best bet. IMHO.

    36. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0

      That's just not true. It's one of those urban myths that gets built up and up.

      There are minor syntactic differences, certainly nothing on the same scale as switching to C#

    37. Re:Don't switch to VB.Net - Switch to C# by RingDev · · Score: 2, Informative

      Nope, VB.Net is just a syntax option for coding in CLR. Just like C#, J# and PHP.Net

      -Rick

      --
      "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
    38. Re:Don't switch to VB.Net - Switch to C# by I_Want_This_ID · · Score: 1

      It's also those same environments that don't give a damn about getting it right as long as they can get it fast. I shouldn't complain, a significant portion of my livlihood comes from quickly made excel/access/VB solutions the business created

    39. Re:Don't switch to VB.Net - Switch to C# by oliverthered · · Score: 1

      1) The syntax is similar (point of the original post)
      3) See #1
      4) Mono doesn't support everything that .net does, J2EE (everything Java does) is supported on may platforms and JBOSS and Tomcat support EJB and JSP as do many other proprietary vendors.

      Java has a hell of a lot less (if any) lockin.

      Also, does MONO support recient version of .net?

      --
      thank God the internet isn't a human right.
    40. Re:Don't switch to VB.Net - Switch to C# by EastCoastSurfer · · Score: 1

      Exactly, which is why I wonder why go to VB.Net at all. If you're making the switch to .net you might as well go to c#. All the things that made the VB 6 quick and easy are gone or have been migrated to c# in addtion to VB.

    41. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0

      1) Yeah the syntax is similar, but there are still large differences. Scripting vs OOP.

      3) Eh, you could say that about a lot any programing language, i mean java has classes c++ has stuctures and unions. Public,private dont mean the same thing. I think the transition from c++ to java is a lot less dificult than the other way around.

      4) Not positive but a new version I think is coming out to support the 2.0 framework. And right it doesnt support every library, like the windows libraries, but its got the importatn ones like ado.net and xml. It also has unix and gnome libraries.

      At the end of the day it comes down to what you know and what your boos or clients are willing to pay for. So really its whatever you can code and compelete a project fastest in. Actually for me (this will get a laugh) its Visual Fox Pro.

    42. Re:Don't switch to VB.Net - Switch to C# by oliverthered · · Score: 1

      1) Yeah the syntax is similar, but there are still large differences. Scripting vs OOP.

      You can write OO Javascript (it's fun too!!!), writing OO VB 6 is even more fun that that.

      3) Basic C++ and Java are fairly similar, and you shouldn't really be doing 'complex' C++ 90% of the time and about 50%+ of the time Java style C++ is perfectly fine (You should only be using 'complex' C++ (tones of templates, operator overloading, inner classes etc....) when writing libraries that are going to be reused and hopefully well tested)

      C++ to Java can be tricky, especially if your used to templates, multiple inheritance, pointers etc....

      BTW: Wow, that's the second time I've seen fox pro being used, the other time was in an atomic weapons facility! It seems quite good, but totally different, I hope it's not too buggy (for the sake of the people who live near the atomic weapons place)

      --
      thank God the internet isn't a human right.
    43. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0

      WTF did your comment have to do with the post you responded to?
      Visual Basic's syntax is nothing like C,C++,C#,Java or most languages.
      How is it more agile?

      The fact that you can rapidly put together a GUI is a function of an IDE not a programming language's syntax.

    44. Re:Don't switch to VB.Net - Switch to C# by P3NIS_CLEAVER · · Score: 0

      I don't know what I am doing wrong but this compiles with no warning....

      Option Explicit On
      Option Strict On

      Module Module1

              Sub Main()

                      Console.WriteLine(Test())
              End Sub

              Function Test() As String

              End Function

      End Module

      --
      Please sign petition to restore sanity to our banking system!!!

      http://financialpetition.org/
    45. Re:Don't switch to VB.Net - Switch to C# by angel'o'sphere · · Score: 1

      70% of C# is copying the good stuff from Java.
      5% of C# is making minor improvements.
      15% is removing the stuff that makes Java superior.
      10% is adding braindead stuff which does not work as you would expect.

      If you want, I make you a list ;D

      Just some short examples:
      * why does System.Int21.Parse("0x0abcd1234", System.Globalization.NumberStyles.HexNumber) not work?
          But: uint hex = 0x0abcd1234; does work?
      * why are all things upper case letters? Classes, Methods, Properties? (brain dead naming convention, every country where upper case at the begining of a word makes a difference laughs ... every country whre you write lower case for everythign shakes heads as well)
      * why does the IDE not automatically add '(' or even '(' and ')' when you access a method via intellisense (so you do not always mix up if its a property or a method)?
      * For all important stuff, like file and network access, the exceptions are not checked exceptions. Hm, does C# even distinguish between checked and unchecked Exceptions? Forgot ... hehe, no, they not even have checked exceptions!!
      * why is double mapped to System.Double but float to System.Single (and not System.Foat, which does not exist)?
      * similar: why is it int and uint but byte and sbyte?
      * why does Hashtable have an Add() instead of a Put() Method? Why is there no method to read an object from the Hashtable but you need to use [ and ] ... it would make sense if you only could use [ and ] (for write and read access). OTOH: why does intellisense not show that you can use [ and ]?
      * suppose you define some enumerations, like enum Stuff : byte { } and enum Bigger : short { } and you call BinaryWriter.Write ... which method is called for an argument of type Stuff, and whcih for an argument of type Bigger? and WTF: WHY? (hint: no its not the one you would expect).

      This is stuff from my mind .... I find every day a reason why I program Java and use a Mac, MS sucks so big time if you "know somethign thats better" ....

      VisualStudio is such a shitty IDE even Open Source stuff like Eclipse is far far far better. Not to mention stuff like IDEA's IntelliJ and Omnicores CodeGuide.

      Yeah, the last topics are not C# (the language) but IDE/tools problems.

      However the productivity drop by using C# is HUGHE .... as you are more or less bound to use MS tools.

      angel'o'sphere

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    46. Re:Don't switch to VB.Net - Switch to C# by P3NIS_CLEAVER · · Score: 0

      His point was that most of the classic OO texts are in a c style language.

      --
      Please sign petition to restore sanity to our banking system!!!

      http://financialpetition.org/
    47. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0

      I was not aware of OO in java script, I might have to check that out.

      Well my route was c++ --> java --> c#, foxpro when time is a factor.

      I found going from c++ to java was not that bad, but I thought the other way would be a lot harder, as I always see java as being more OO then c++, IMHO.

      You know Visual FoxPro, kinda like vb6 syntax, minus the "dims" is not that bad. Very fast developmetn time, and it can be buggy, but once you learn it you can do things very quickly in it. Granted its a windows desktop development program but its pretty fast. For exmaple: you pull someting from a db into a local cursor in FoxPRo, you can do sql select statements off the cursor. So when running through a cursor of data you can fly through it using that method with very little code. You cant do that in c# or java(i think). Its is for sure the red headed step child of MS, they pay no attention to it.

    48. Re:Don't switch to VB.Net - Switch to C# by Doctor+Faustus · · Score: 1

      I cannot see that vb syntax, for someone coming in with no prior experience, would be better than c# syntax.
      Some of us like words better than symbols, and I hate all the ways C and its descendants encourage people to combine multiple lines of code into one.

      On the other hand, I also like lines that end with semicolons, so unless Pascal makes a comeback, I'm probably SOL for general-purpose languages. For specialized languages, PL/SQL is okay, but it would be nice if they had decided whether they wanted a BASIC If/End If style, or a Pascal Begin/End style.

    49. Re:Don't switch to VB.Net - Switch to C# by shutdown+-p+now · · Score: 1

      VB.Net is syntactically closer to VB6, but semantically it is an almost exact copy of C#, so much so that you can convert 95% of all code out there back and forth with a couple of regular expressions.

    50. Re:Don't switch to VB.Net - Switch to C# by colmore · · Score: 1

      Your comment pretty well illustrates why anything "VB" sends off all kinds of bells and whistles and alarms.

      There's nothing wrong with VB per se. It's a decent language for prototyping and quick fixes. And it's flexibility is an asset that might make it a reasonable consideration for some large projects.

      But as anyone who has ever written code for a living will tell you. There's not actually such a thing as a "quick hack" or "quick fix" and all too frequently, a prototype becomes a release product when the deadline hits. VB is a programming language for people who don't want to become real programmers. Now, there's nothing actually wrong with that... really. But the culture surrounding the language is one that encourages laziness, cut-and-paste solutions, and a general throw together whatever works mentality. Now if it were my hobby to sit around on message boards and debate the abstract advantages of language X over language Y, this would probably piss me off more than it does. In the real world, people who aren't software engineers have to write code.

      The problem with VB seems to me to be that something in the culture strongly discourages people from learning the "right" way to do things after they've done the quick fix to get things in on time. VB developers, more so than those in just about any other language (well... maybe not Perl, but that's a smiliar problem that comes from a very different angle though) seem to be happy to leave unmaintainable code sitting around and never learning better practices to write better code in the future, to say nothing of fixing what they've done.

      Of course there's a million counter examples. But there's still a highly disproportionate amount of ugly VB code in production environments out there, and someone will (and already does) have to maintain it. Other side of the coin: really learning your shit in VB.net will probably guarantee you work for the next two decades. Microsoft will move on, or their power will decline. The amateurs will learn a later version, or something new, and yet, there's still going to be this mountain of bad code doing work out there, and they're going to need to hire someone, and probably someone local, to fix it up and keep it running.

      Same reason COBOL and FORTRAN can still land you a nice job.

      Of course my other major objection to VB.net, and .net in general is that it encourages vendor lock-in. not to even go in to debating the specific vendor here, any language that's going to leave you up a creek when someone buys your employer out and tells you to move everything onto their machines which are not only on another OS, but on another hardware base alltogether should just simply not be used. For anything other than coding end-user applications and processor specific tasks (compilers, kernels...) you're asking for trouble if you're working in a language that isn't supported on many platforms. Really in any situation where you can write in a language that either has cross-platform support for interpereters or bytecode execution, you should go with that language even when there are large reasons to consider something else. VB, and .net in general, is badly future-vulnerable.

      --
      In Capitalist America, bank robs you!
    51. Re:Don't switch to VB.Net - Switch to C# by NutscrapeSucks · · Score: 1

      VB.NET silently does a lot of data-coversion which C# doesn't do. This moves an entire class of bugs from complie-time to run-time. Your example is just one of these.

      For example, this code:

            Console.WriteLine( 2 + Test() )

      I think would work with your example and actually return "2" rather than Null Pointer Exception or whatever. Gack.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    52. Re:Don't switch to VB.Net - Switch to C# by NutscrapeSucks · · Score: 1

      Him >> the syntax is similar, but there are still large differences. Scripting vs OOP.

      You > You can write OO Javascript (it's fun too!!!)

      I agree about Javascript being fun, but the OO syntax (and underlying functionality) is completely different thatn Java's. You beat your own argument.

      --
      Whenever I hear the word 'Innovation', I reach for my pistol.
    53. Re:Don't switch to VB.Net - Switch to C# by Anonymous Coward · · Score: 0

      I only read a portion of your rant, and they seem valid - I've probably ran into same stuff you did. However, if you're writing Windows-specific application, .NET library saves you lotsa work in hooking up with Win32/Windows API calls, certainly less work than calling them directly in C (in many cases), or even worse, laying the JNI layer for Java interop.

    54. Re:Don't switch to VB.Net - Switch to C# by jbplou · · Score: 1

      This arguement makes no sense. You imply that C# is somehow better than VB.NET, they compile to the same code if you set your compile options correctly. What good does knowing C/C++ style coding do for you? A person who knows VB6 and C# is not going to be able to program in C they will know nothing of memory management. VB.NET syntatically is actually very similar to VB6 what is different is the object orientation is now complete. But in the end whats important is that you train up for your job, if your job is using VB.NET than learn VB.NET as your primary .NET lang if C# is used by your work use C# as your primary. If your good you can atleast read both languages well and be able to write one of them well.

    55. Re:Don't switch to VB.Net - Switch to C# by angel'o'sphere · · Score: 1

      if you're writing Windows-specific application

      True. Besides the fact that I don't write OS specific software nevertheless MS could have made lots of stuff less contra intuitive ;D

      IMHO you should not need to use the Windows API if you program in .NET .... and Mono should have a similar widget API like Windows has.

      My list was just a short list from my mind about stuff I stumbled over the last days ... I can surely make one with over 100 points ... but its kinda pointless as no one will fix anything on it.

      angel'o'sphere

      --
      Cost free eBook I read (by iBook/Kobo/Amazon/ObookO/Gutenberg etc.): "The Green Odyssey" by Philip Jose Farmer.
    56. Re:Don't switch to VB.Net - Switch to C# by rp · · Score: 1

      What is more, tools such as Lutz Roeder's Reflector (free) allow you to generate C#, VB.NET, Delphi and Python source code from a CLR .exe or .dll, in other words, 100% automatic translation between them.

    57. Re:Don't switch to VB.Net - Switch to C# by P3NIS_CLEAVER · · Score: 0

      Ugg. You reminded me about another thing I hate about vb.net. The OO syntax is ghey beyond belief. 'static' makes sense to me, but 'shared'? I have forgottten the rest of the OO syntax but from what I remember it was just as clumsy.
      must override? WTF!

      --
      Please sign petition to restore sanity to our banking system!!!

      http://financialpetition.org/
  3. Sounds like R. Shamms Mortier's MO for authoring. by Orrin+Bloquy · · Score: 2, Interesting

    Pick a subject you learned yourself hastily, then find a publisher known for editors unfamiliar enough with your subject to accept it as gospel because the manuscript is long and *looks* intelligent.

    Look up Amazon reviews of Mortier's books on 3D design applications and you'll see almost the same reviews as above.

    --
    "Made up/misattributed quote that makes me look smart. I am on /. and I must look smart."
  4. How about "why"? by DogDude · · Score: 3, Interesting

    I think that the book should start off by trying to explain to me WHY I should move from VB6 to VB2005. From everything I've read, there's little reason to make the jump. I've got probably a dozen, working, mission-critical VB6 apps right now, and I just don't see the point.

    --
    I don't respond to AC's.
    1. Re:How about "why"? by Gr8Apes · · Score: 2, Funny

      There's your problem. "Mission Critical" and "VB" in the same sentence.

      Alarms sound, red lights flash.

      --
      The cesspool just got a check and balance.
    2. Re:How about "why"? by Anonymous Coward · · Score: 1, Funny

      Don't mess with 'em, DogDude! It's just too dangerous!

      My dog's wiping his ass on my carpet!

      I must help you, but my MISSION CRITICAL cash register JUST BLUE SCREENED! Oh no! Why did we upgrade? How will we now make this sale of MISSION CRITICAL deworming medicine?!


      Best stick with what works. You're just too damned important to risk upgrading your little VB scripts.

    3. Re:How about "why"? by Maury+Markowitz · · Score: 2, Informative

      I considered making the jump. I jumped back.

      Basically the .net libs are not nearly as nice as I had expected them to be. Many are surprisingly simplistic. The whole forms/dataset system really feels like a lashup to me. These will improve, I'm sure, but the paucity of 3rd party solutions and the general whimpyness as-supplied made my trivially simple project a lot of work.

      But to add to the frustration, I use an external COM plugin for data gathering. Trying to get this working with .net was nightmareish. The documentation from MS is simply way too vague, and doesn't offer even remotely enough examples. I had to hunt all over and talk to people on the 'net to try to get it working, and when it didn't you get a completely generic result.

      But the worst problem is that .net is still very much a bolt-on to Windoes. When you load the system, .net does not load. In fact, many of the machines in the office didn't even have it installed. What this means is that when you start your (my) 32k compiled app, it takes about 15-20 seconds for the libs to load up. That doesn't work well for my application, which runs for less than 5 seconds and then exits.

      I'll be sticking with VB6. I see no compelling reason to change.

    4. Re:How about "why"? by DogDude · · Score: 1

      Thanks for the good info. That's some of the first real feedback I've gotten about it. I definitely use all kinds of 3rd party COM objects, and if they're not going to plug in seamlessly, then I'm already losing time/money. And if .NET objects are *easier*, then there's really no need. I've never really run into any problems with the plain ol' vanilla OLE DB stuff except for vendor-supplied drivers (I found one from Oracle where they switched the order of parameters in some important functions that contradicted the documentation). Thanks for the info. It sounds like there's no real reason to make the jump.

      --
      I don't respond to AC's.
    5. Re:How about "why"? by Val314 · · Score: 1

      >I'll be sticking with VB6. I see no compelling reason to change.

      this may not matter to you, but VB6 isnt supported by MS anymore. (or will be soon?)

      i'm doing my work now with C# (2005 Edition) and most likely will never go back to VB5/6

    6. Re:How about "why"? by moofmonkey · · Score: 1

      Because you're still hopelessly tied in to a steaming pile of hack-prone, virus-ridden shit called Windows. Now if you move to a .NET VB platform, the nice people at the Mono project have provided you with a solution which allows you to run on a decent operating system, providing your VB code doesn't reference a laundry-list of broken, insecure COM objects (in which case you should rewrite your code on a platform used by Real Men, like J2EE etc.)

      At least with mono, you are able to regain some of your manliness by running your VB.NET code on an operating system in which you can't get Administrator privilege and run random code simply by looking at the wrong kind of image metafile.

      Unless cleaning up after broken software and virus infestations is how you earn your $$$.

    7. Re:How about "why"? by stanmann · · Score: 2, Informative

      And for a long List of reasons for and against switching, Here, HAND. Enjoy the reading.

      --
      Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
    8. Re:How about "why"? by RobinH · · Score: 2, Interesting

      We use VB6 for some specialized tasks... basically a nice colorful user interface where we need the use of a PC to store some data. The actual mission critical stuff is usually performed by some underlying real time control system. In that respect, what vb6 gives us is a rapid GUI development that can do all the things that LabView and Citect can do but has a lot more user support on the internet, and can integrate better with everything else. It's a good fit.

      Then we tried moving to VB .NET. I didn't have much problem with it since I have a hardware/software background, but most of the engineers around here are more focused on hardware and even though they "get" object oriented programming, see no need for it when all they want is a few pretty buttons on a screen for the user to start and stop some process.

      The nice thing about VB6 was anything I wrote could be debugged by someone with a basic level of programming knowledge. The stuff we wrote in VB .NET was more cryptic, and took longer to write. Even the concept of references confuses some people. We've had a very hard time switching over.

      Now if we only wrote desktop applications or shrinkwrapped software, I never would have suggested using VB6 in the first place, but for what we do, VB6 is a perfect fit, and VB .NET completely fails to fill that niche that we've been using it for (rapid GUI development). We've gone back to VB6 now, and we're keeping our eyes open for alternatives. ...and honestly, if we had to go to .NET, I'd rather switch to C#. I see no reason to have both VB .NET and C# .NET as separate languages - they're almost identical!

      --
      "I have never let my schooling interfere with my education." - Mark Twain
    9. Re:How about "why"? by CodeBuster · · Score: 1

      Did you try using ngen.exe? This can also been run from windows installer via a custom action.

      NGen Revs Up Your Performance with Powerful New Features

    10. Re:How about "why"? by RetroGeek · · Score: 2, Interesting

      What this means is that when you start your (my) 32k compiled app, it takes about 15-20 seconds for the libs to load up.

      Which is the main complaint about Java. That it takes too long for the JVM to start up.

      And from a post below:

      all the .NET apps I have run so far start up in 1-4 seconds.

      Which is my experience with Java.

      --

      - - - - - - - - - - -
      I am a programmer. I am paid to produce syntax not grammar. Deal with it.
    11. Re:How about "why"? by emeshuris · · Score: 1

      Hi, Wow. Let me know where I am wrong: 1. You and yours migrated from pascal or foxpro to vb6. 2. You never acquired formal education regarding a well designed application. Let me know how many lines of code it would take for you to create an xml file from a sql query which contains a few tables with relationships. You are exactly why MS and the developers that use their software are the brunt of most conversations here. Thanks!

    12. Re:How about "why"? by RobinH · · Score: 1

      Hi, Wow. Let me know where I am wrong: 1. You and yours migrated from pascal or foxpro to vb6. 2. You never acquired formal education regarding a well designed application. Let me know how many lines of code it would take for you to create an xml file from a sql query which contains a few tables with relationships. You are exactly why MS and the developers that use their software are the brunt of most conversations here. Thanks!

      1. I used pascal once. I have a strong C background, but have used Perl, assembly, a little BASIC back in high school before I worked here. Most of what our industry does is proprietary GUI stuff like LabView, Citect, or panelviews/RSView. I definitely have more programming knowledge than what the job requires, but that gives me an edge.

      2. I have a computer engineering degree from the Univeristy of Waterloo. I specialized in power systems and control system theory, and about 50% of my job is hardware, 50% is software (but pretty simple stuff - GUI, ASP, PHP, SQL, the odd embedded application, tons of ladder logic and flowchart stuff, and definitely some proprietary motion control and other languages out of germany that your adolescent brain couldn't even conceive of). I used to work for QNX. I have written a USB driver for an obscure operating sytem that's no longer in use.

      While you're busy writing hash tables and optimizing a sort algorithm that saves 0.18 milliseconds for a user whose machine runs the idle process for 99.999% of the time, I'm designing the electrical and software control systems for machines that automate the handling 2 ton cartons of product, paint car parts, convey engines, track downtime, store federally mandated safety information, and generally cost upwards of $5000 per minute when they don't work right. So why don't you go kiss my maple leaf emblazoned ass?

      --
      "I have never let my schooling interfere with my education." - Mark Twain
    13. Re:How about "why"? by EastCoastSurfer · · Score: 1

      Because he used the best tool for the job at the time? VB 6 was very good at making data entry screens that backed up to mssql. It's quick and easy to use at that doing that job. You wouldn't use it to write real time performance software the same way you wouldn't use something like C to parse files.

      You are showing your lack of formal education by implying that the language you use has any bearing on if the application is 'well designed'. Well designed apps have been written in assembly on up.

      Creating an xml file from a sql query? That's it? MSSQL (and I'm sure Oracle does too) has tools built in to convert query results right to xml.

    14. Re:How about "why"? by 0kComputer · · Score: 2, Informative

      But to add to the frustration, I use an external COM plugin for data gathering. Trying to get this working with .net was nightmareish.

      I've been using .net for over 4 years now and I've never had an issue inegrating w/ existing COM components. Actually Visual Studio does all the work for you, and if for some reason you need to do something it can't handle or need to override something theres plenty of info on it (Hint: search for interop). You are either spreading FUD, or just dont know how to find the answer to some IMO pretty easy questions.

      --
      Top 10 Reasons To Procrastinate
      10.
    15. Re:How about "why"? by Doctor+Faustus · · Score: 1

      I think that the book should start off by trying to explain to me WHY I should move from VB6 to VB2005.
      Probably because you'd like to get another job sometime.

    16. Re:How about "why"? by LifesABeach · · Score: 1

      There are many compelling reasons to change from VB. "Cost to Market" is the biggest factor. "Time to Market" is what I call the "Bonus Paid Factor". VB? I shake my head an wonder why. Recently I was given a reason why, the herd knowedge base of my client's software staff was not capable of understanding AJAX, which I believe is more easy to understand than VB. Some people still think OO solutions are beyond their grasp, and their budgets. These people should fear the word "Off-Shoring" the most.

    17. Re:How about "why"? by DogDude · · Score: 1

      Probably because you'd like to get another job sometime.

      Good point. The hamster-wheel career of programming that requires a new skill set, and another $1000 worth of books every 6 months was a real PITA (that was part of the reason I left that career). If I were still a professional developer, I would have learned .NET already.

      --
      I don't respond to AC's.
    18. Re:How about "why"? by DogDude · · Score: 1

      There are many compelling reasons to change from VB. "Cost to Market" is the biggest factor. "Time to Market" is what I call the "Bonus Paid Factor". VB? I shake my head an wonder why.

      Why? Because if you want to slap a GUI onto a database, along with some business logic, there's nothing faster or easier. What's so difficult to grasp about that? I can make a program, that conforms to all Windows windowing standards (something that most Linux programs still can't do, even with whole teams of developers), and still *does* something, and have it compiled, and functioning in under 60 seconds.

      --
      I don't respond to AC's.
    19. Re:How about "why"? by emeshuris · · Score: 1

      Hi, Righto, I had wrong guesses, and so do you. I write services for manufacturing and shipping companies. So everything that you have mentioned in your design process, minus the hardware part of it, I do. And altough it doesnt cost $5000 per minute for downtime, it costs plenty. I can also write an application that will consume all of the systems resources, but I dont, and I am unsure as to what that had anything to do with. It seems that what you specialize in is procedural programming. I would like to see what you use for an interface between your objects use to communicate with each other... err, you dont have interfaces... or objects... Basically what Vb.net has to offer is some more of what the java and c++ coders have had for ages. But, hey, your maple emblazoned ass is riding pretty on that bike without the seat. BTW, the bikes a schwin.

    20. Re:How about "why"? by emeshuris · · Score: 1

      Hi,
      This is true, vb6 was very good at writing dataentry screens.
      And if you try to understand what goes on behind the covers in .net, you will see that the entry screens created with it are by far superior.
      I never said that a program written in any language is a well designed program.
      What I meant was that a program should be reusable.
      With vb6 it is very hard to write applications that are reusable.
      I understand that I can attach FOR XML to a sql query and it will return XML, with the advent of yukon, there are alot greater features.
      Thats not the point, we are not talking about RDB's, we are talking about programming languages.
      So for one second, imagine you needed to create an xml document from a query that is connected to an old RDB.
      How many lines of code would it take you then?
      noodge

    21. Re:How about "why"? by RobinH · · Score: 1

      I really don't know what your problem is with me. Somehow my choice of programming tools offends you. That's pretty sad.

      Before you young'ins had objects everywhere, we did the same thing but we called it modular programming. It's how Linux got written actually... no C++ needed.

      We had a guy at work like you... you got him in a meeting and he went on and on and on about architecture, interfaces, objects, API's, whatever, and the reason he's fired is that he was too dumb to realize that you actually had to get something done. The language is to the product as the hammer is to the house.

      I hope you make it back to the real world soon.

      --
      "I have never let my schooling interfere with my education." - Mark Twain
    22. Re:How about "why"? by Anonymous Coward · · Score: 0

      The biggest reason we're moving to ASP.NET is because the new SQL Server Reporting Services require it, which will help us to migrate away from Crystal Reports. Seagate requires a per-browser license for any Crystal Reports after version 8 or so, their IDE is a major pain (gridlines help), and version 8 cannot be used on Windows Server 2003.

      ASP.NET also has an interesting page structure where you only have controls in the aspx file, and then program all your events into the associated asps.vb file. It seems this will help reduce the spaghetti tangle of VB/HTML. Time will tell.

      One drawback is it's really difficult to figure out how CodeBehind and SharePoint come together. If you want to add custom js or vb file to an aspx file, they seem to make it hard to understand in this way.

    23. Re:How about "why"? by Joey+Vegetables · · Score: 1

      For starters, because future "upgrades" to Windows or other software may eventually break the DLL environment upon which VB6 and/or your VB6 apps depend. We've already started to see this at the company I work for, and are scrambling to figure out ways to move this stuff (including very old versions of Apex controls, Crystal Reports, etc.) into a slightly more modern environment.

    24. Re:How about "why"? by ErikZ · · Score: 1

      "I considered making the jump. I jumped back."

      So, not only didn't you jump, the system was so horrible that merely contemplating it made you go back to your previous language of choice?

      Impressive.

      --
      Democrats or Republicans. They are both taking us to the same place and they are not afraid of us anymore.
    25. Re:How about "why"? by Doctor+Faustus · · Score: 1

      If anything pushes me out, I think it's going to be coding standards that I disagree with. I *hate* writing ugly code.

    26. Re:How about "why"? by oaksong · · Score: 1

      We're going to move from VB6 to VB.NET because we write applications for a diverse set of organizations where the applications have a lot of commonalities. We're looking for objects to support code reuse amongst the applications, all of which are in VB. That way we get an instant maintenance reduction by eliminating all of the redundancy in the various applications.

    27. Re:How about "why"? by RobinH · · Score: 1

      What I meant was that a program should be reusable.
      With vb6 it is very hard to write applications that are reusable.


      I guess I'm just really really good at it then, because I consider it easy to create reusable code in any language. It's called modular programming. We did it before object oriented was all the rage with the tweenies.

      --
      "I have never let my schooling interfere with my education." - Mark Twain
    28. Re:How about "why"? by emeshuris · · Score: 1

      Hi,
      You are absolutely correct!
      OOP is just a phase!
      GoTo statements rock!
      Of course your applications are solid and debugging them is easy.
      And Oh they are so reusable, just copy and paste it into another project.

      -Edward

    29. Re:How about "why"? by RobinH · · Score: 1

      Dude, too much caffeine there...

      In VB6 they have these things called "modules", and also things called "class modules" if you can't pry yourself away from objects, and they have user controls. All of which can be part of a shared library or shared repository of code, especially since it integrates just fine with source safe or whatever version control system you want to tack on, like CVS. You don't have to put any of your business logic in the forms.

      You obviously don't know what you're talking about. Why don't you stop embarrassing yourself and stick to topics you know. So you picked up a "Learn .NET in 21 Days" book and now you're a one trick pony... congrats!

      I can tell by your attitude that you're going to get along really well with the middle/upper management types. Guess what: you WIN a mundane career with no chance of advancement, because you keep trying to dazzle the CEO at the Xmas party with how important polymorphism is to the company's future success.

      --
      "I have never let my schooling interfere with my education." - Mark Twain
  5. This should be a subscription, not a book... by dpbsmith · · Score: 2, Funny

    ...because at the rate Microsoft keeps coming up with new and incompatible versions of VB, it seems a foregone conclusion that by the time you absorb the book and have Made Your Move Now from VB 6 to VB 2005, it will be time to buy VB Jumpstart 2006: Make Your Move Now from VB 2005 to 2006, and then VB Jumpstart 2007, VB Jumpstart 2008, etc.

    For the lucky author, it gives a new meaning to the phrase .NET profit.

    1. Re:This should be a subscription, not a book... by AlvySinger · · Score: 1

      What versions are these? What incompatibilities? VB6 to VB.Net, yes. But what else? If you mean 16-32 bit in VB4 that was a while ago. I'd call FUD but I might have missed something.

    2. Re:This should be a subscription, not a book... by stanmann · · Score: 1

      VB5 was an incomplete implementation of 6... Things were broken from 4, DIFFERENTLY than they would be broken from 4 to 6. Further, things that worked in 5 did not work the same way in 6. With the jump from 6 to .NET, there was a post on google groups/deja about the vast list of things where the entire logical context changed. So YEAH, Every version change since 4.

      --
      Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
    3. Re:This should be a subscription, not a book... by segedunum · · Score: 1

      I'd mod the parent insightful to be honest, because that's exactly what is happening. I've seen a few companies who were looking to buy into .Net just throw their hands up at all the bullshit and stick with what they have, or move some of their stuff to web apps - not running ASP.Net.

    4. Re:This should be a subscription, not a book... by rp · · Score: 1

      The problem of new versions and compatibility is real, but not unique to VB.

      Nobody on this forum ever criticized Sun, or let's say Borland, for introducing new and incompatible versions of their development toolset (previously focueed on C++ when they introduced support for Java. The leap from VB6 or Microsoft C++ version 6 to VB.NET / C# is essentially the same as the leap from C or C++ to Java, except that .NET has much better compatibility with previous tools and techniques. Nobody forces you to use .NET (although Microsoft has plans to discontinue support for VB6); nobody forces you to use the language/platform developer's own development tools (Visual Studio) when developing for them. The suggestion that .NET was just a gratuitious update of Microsoft software to force people to buy the latest version of their tools is just ludicrously uninformed.

      The suggestion makes slightly more sense for the 2.0 version of .NET, which is comparable to Java 1.5, introducing generics and similar language extensions. It is arguable that performing such language "upgrades" is a bad idea, but .NET certainly falls within the normal pattern for computer languages: this happens to any popular language, just think of Java, C, C++, FORTRAN, Perl, Python, SQL, HTML, or XSLT. However, compatibility is a major issue, and .NET 2.0 scores rather poorly in this aspect. .NET 1 applications do not run on the .NET 2.0 runtime, and they cannot be automatically upgraded; when .NET 1.1 source code (e.g. C# or VB.NET) is fed through a 2.0 compiler, many manual corrections are required. This is very bad; none of the other languages I mentioned is spotless in this area (except perhaps FORTRAN), but they tend to do better.

      So overall, it is totally ludicrous to state that "Microsoft keeps coming up with new and incompatible versions of VB", andMicrosoftt certainly doesn't release versions every year (there are over 3 years between .NET 1 and 2), but you do have a point in that compatibility could have been better.

  6. Debugged version by EraserMouseMan · · Score: 0

    Public Main (e EventArgs) {
    Stupid Microsoft = new stupid();
    Microsoft.GoBankruptIn = 100;
    Microsoft.Start();
    }
    Public On_Bankrupt (e EventArgs) {
    Linux Ubuntu = new Linux();
    Ubutnu.DominatePlanet();
    }

    There, now maybe Linux can dominate the world.

    1. Re:Debugged version by 0kComputer · · Score: 1

      Your parameter types are backwards, also you need to attach your event handler to receive events. More like...

      public void Main (EventArgs e) {
          Stupid microsoft = new Stupid();
          microsoft.GoBankruptIn = 100;
          microsoft.OnBankrupt += new EventHandler(On_Bankrupt);
          microsoft.Start();
      }
      Public void On_Bankrupt (EventArgs e) {
      Linux ubuntu = new Linux();
      ubuntu.DominatePlanet()}

      --
      Top 10 Reasons To Procrastinate
      10.
  7. Visual Fred by vadim_t · · Score: 4, Insightful

    No such thing as a migration from VB6 to .NET. VB.NET is simply .NET with a VB-like syntax. Anything at all larger than a few lines is best rewritten from the beginning.

    IMO, it's pointless to try to convert a VB6 program to .NET, it'll end up being a lot more effort than just writing it from scratch.

    This is the risk you take when coding using closed tools. There's no more support for VB6, and no real migration path.

    1. Re:Visual Fred by DogDude · · Score: 2, Insightful

      his is the risk you take when coding using closed tools. There's no more support for VB6, and no real migration path.

      So, what's the problem, *exactly*? I hear OSS zealots saying this all of the time, but all of my VB6 apps still work just fine...

      --
      I don't respond to AC's.
    2. Re:Visual Fred by Changa_MC · · Score: 1
      all of my VB6 apps still work just fine...

      A specific example for you.

      MS stopped supporting MS Proxy server, but that was no problem, we just kept using it because it worked. Then last year shortly after I was hired, it just stopped working.

      I tried to reinstall it, only to find it was installed under windowsNT4, and then the server was upgraded to windows2000. MS Proxy cannot be installed under windows2000, you would need the windows2000 version that never existed.

      We have a linux based proxy server now.

      --
      Changa hates change.
    3. Re:Visual Fred by stanmann · · Score: 1

      So why didn't you replicate the install chain?? For debugging purposes only of course.

      --
      Food not Bombs is a nice platitude but it breaks down when you notice that the Bombees are usually well fed
    4. Re:Visual Fred by vadim_t · · Score: 1

      They work now. Nothing guarantees they'll continue working in Windows 2007 or whatever. MS can easily break say, something in ADO, and all the programs using it will be screwed.

      Another pretty major thing is that there's no upgrade path. VB3 code worked with VB4, and so on until VB6. But not anymore. This is a deadend. Compare with C, invented in 1970 and compilers are still being developed. It works, so people happily continue using it.

      This also means all 3rd party providers are switching to the new infrastructure, and since VB programming largely consists of stringing together 3rd party components, it means it's quite likely the programmer will run into a wall sooner or later.

    5. Re:Visual Fred by MrSteveSD · · Score: 1

      So, what's the problem, *exactly*? I hear OSS zealots saying this all of the time, but all of my VB6 apps still work just fine... Because they will slowly die, bit by bit. You may find weird errors using Vista or the next radically different OS pumped out by Microsoft. You many notice oddities under a 64 bit OS. There are lots of horrible possibilities. Also if your customers know your applications are in VB6, they may start to worry too.

    6. Re:Visual Fred by Anonymous Coward · · Score: 0

      Maybe you could have looked further than your nose is long, and seen that the upgrade is called ISA Server ?

    7. Re:Visual Fred by DogDude · · Score: 1

      They work now. Nothing guarantees they'll continue working in Windows 2007 or whatever. MS can easily break say, something in ADO, and all the programs using it will be screwed.

      Why does everybody feel the need to upgrade every piece of software that comes out? I've never understood that. We use W2K and VB6. It all works. It does it's job. When (IF) we need more functionality out of our software, then I'll look at upgrading as a possiblity. I've been in computers in one way another my whole life, and I always thought that people who jumped on every upgrade were the same kind of suckers that lease their vehicles, and switch vehicles every year, just so they have the newest.

      I'm certainly not spending hard earned time and money out of fear, that one day, for no good reason, my software may just stop working. That simply doesn't happen. That's why we have hard drives.

      --
      I don't respond to AC's.
    8. Re:Visual Fred by Hiro+Antagonist · · Score: 1

      Which requires, of course, that they learn to configure the new system, because it sure as hell won't use the old configuration file format, and because the old system isn't even installable, they had to make a very quick set of decisions about upgrades.

      A sendmail.cf file that is five years old still works. Ditto for qmail and postfix configurations, and BIND, and Samba, and Squid, and Apache...do you know why? Because there was no reason to make them not work. Even massive improvements to a piece of stable software should *never* require rewriting a configuration file; you should have to add or modify directives to invoke new features, but you should never have a system just 'stop working' because of an upgrade.

      More importantly, should I, for some asinine reason, require a BIND 4 (read: prehistoric) name server on, oh, a Linux 2.0.11 kernel, it'll take me a few hours to build. What do I do if I need a WindowsNT installation but don't have install media? Oh, well, I guess I'm screwed, because I can't get it from Microsoft anymore.

      --

      --
      I Hit the Karma Cap, and All I Got Was This Lousy .sig.
    9. Re:Visual Fred by Changa_MC · · Score: 1

      So why didn't you replicate the install chain?

      That did cross my mind, but I don't have a copy of NT4 anymore. And any copies I did have would've actually been my former employers, so using them would've been illegal.

      --
      Changa hates change.
    10. Re:Visual Fred by Changa_MC · · Score: 1

      I didn't want a new product, but since I had to have one, I went with the one I could download immediately: debian.

      --
      Changa hates change.
  8. VB by Anonymous Coward · · Score: 0

    "The venerial disease of languages."

  9. Re:How about "why"? - Product Support by yhamade · · Score: 1

    While this may not be a general concern for some developers, Microsoft has moved Visual Basic 6 out of "Mainstream Support" (as of 3/31/2005) and into "Extended Support". Extended support is set to end 3/31/2008. How does that affect you? If your application is working now, what's going to cause it to break? Well, it may not, but some companies (or individuals) have policies put in place as a CYA that you may not be able to develop using tools that are no longer supported by the vendor. It gives them someone to hold liable (read "blame") if something breaks.

    Then again... you are using Visual Basic on a Windows platform...

    (Queue the music as we wait for people to bash MS, VB, or Windows...)

    Visual Basic Product Lifecycle: http://support.microsoft.com/lifecycle/search/?sor t=PN&alpha=Visual+Basic

  10. mod parent UP by Anonymous Coward · · Score: 0

    i'd do it but here i am without mod points

  11. Your sig by Anonymous Coward · · Score: 0

    Put in a space before the / in your sig, otherwise rm won't work.

  12. VB book titles. by funkmeister · · Score: 3, Funny

    I love all the titles the VB authors use for their "insights" into this decrepit language. Like "VB Unleashed!" as if VB is some rabid animal, or "Hidden VB secrets" just dug up from King Tuts tomb.

    I see a nice spot on my bookshelf for this book, beside my kids "Jumpstart Toddlers" CD's.

    1. Re:VB book titles. by stupidfoo · · Score: 1

      Those titles you just mentioned are from book series that cover tons of different topics.

      Unleashed is one of Sams' major series. 48 books total

    2. Re:VB book titles. by caffeineHacker · · Score: 0, Troll

      Thank you...I looked at the article just to see how long it would be till someone said that VB is for retards(And rightly so). Sadly, most of the top posts of people using VB for projects and dealing with incompatibilities. Really sad...

      VB is a language for morons who can't be bothered to learn to code properly...period. No debate, no saving grace. VB is only in use in a professional environment today so management can hire the lowest rung of the IT totem pole in order to save money.

      Mod me a troll if you want, but no-one on a Linux centered tech forum should care much about migrating from VB.

    3. Re:VB book titles. by MrSteveSD · · Score: 1

      I have about 2 feet worth of now obsolete VB5 and VB6 books. The best was definately "Hardcore Visual Basic" by Bruce McKinney!

  13. VB to Python by scorp1us · · Score: 4, Interesting

    VB is the whipping boy of Microsoft. Every iteration changes the language in some crazy way. I started pre-VB, but for the VB line, I started at VB1.0. I've watched it "grow" (I perfer mutate) over the years. I now still do about 90% VB. But I have tired of the language changing every few years. I've fallen in love with Python. It is cross-platform and easier. The only thing needed is a good GUI. I prefer Qt, (which is GPL or commercial). The effort of supporting more than windows in one platform is trivial with python, which opens up the MacOSX market (and linux too.)

    Even if you don't need crossplatform, Python has all that COM support and is highly integrated into the Windows OS. To me, it is worth my time to learn python because the languages changes very little. It also is 'cleaner'.

    Ruby fans don't flame me. I know the two are close, but I can only recommend what I have used extensively.

    --
    Slashdot's rate-of-post filter: Preventing you from posting too many great ideas at once.
    1. Re:VB to Python by RonMcMahon · · Score: 2, Interesting
      Your comment; "Every iteration changes the language in some crazy way. I started pre-VB, but for the VB line, I started at VB1.0. I've watched it "grow" (I perfer mutate) over the years. I now still do about 90% VB. But I have tired of the language changing every few years." is very odd. It has me questioning if you are being entirely honest.

      As a VB developer since 1993 (and a commercial software developer since 1983), I can say that the language (pre .NET) hasn't changed in the way you present that it has. The only significant variant in the VB 'Family' was VB for DOS (yes, I'm one of a select few who actually built apps with this before it was killed off by Microsoft), but even then the product was vastly superior to any other DOS-based language editor that I'd ever encountered. In general I can take an application that I coded in VB 2 and open it with VB 6 and it will run without complaint. This is an accomplishment that your comments ignore - if you really are a programmer who builds 90% of your product in VB (pre .NET I assume), I'd think that you'd have to admit that the language did remain remarkably backward compatible. .NET isn't VB and therefore it really isn't fair to try to measure language evolution when the species tree is jumped rather than extended.

      As someone who continues to make a living in the VB 6 / VBA world, I'm very interested in learning about VB 2005 because I can see that the life of VB6, while still currently healthy, is beginning to wind down. My corporate clients won't be going to Python or Ruby or any other OSS-based platform anytime soon. These multinational businesses don't worry about the peanut costs of an OS, nor do they worry about the hegemony of Microsoft. If anything, the dominance of Microsoft is a comfort, as it helps to give them assurance that the company will be around for the foreseeable future, therefore betting on Microsoft technology will likely result in a win. Betting on marginal (from a business perspective) language like Ruby or Python et. al. is a sure-fire way to be fired as a technology manager. I'm not saying that this is how I like it, but more that this is the reality that I see around me in the Oil and Natural Gas sector in Canada.

      The source of innovation and transference to a new computing platform will not begin with large corporations, but will only (through financial necessity) begin within smaller cost aware businesses. Perhaps once all of the mice are on OSS will the fat cats begin to notice?

    2. Re:VB to Python by killjoe · · Score: 1

      I call bullshit.

      I too have programmed in VB from the old days and I can tell you emphatically that any VB2 application you had was using VBX controls and will no longer work. Furthermore you can no longer find VBX controls nor get the ones you were using upgraded.

      The migration from VBX to OCX cost me over two thousand dollars as I replaced all the controls I was used to using. I paid the money because I had to, I didn't enjoy it and I tried my best to pass the cost on to my customers who ended up with the shaft.

      By the way if any "enterprise" is using VB.NET now they are run by idiots and won't be business long. Most clueful enterprises are adopting either C# or Java. The only ones using VB.NET are the ones trying to extend the life of some VB apps. VB.NET is the COBOL of our generation. It won't ever go away but it will slowly fade into the background.

      --
      evil is as evil does
    3. Re:VB to Python by a.d.trick · · Score: 1

      As far as a gui is concerned it would make more sense (to me) to use something like wxWigets. Then you can support just about anything under the sun without much work.

    4. Re:VB to Python by scorp1us · · Score: 1

      wx is my 2nd choice. Qt goes much farther than wx in terms of functionality. Its been a while since I used it though. (3 years)

      --
      Slashdot's rate-of-post filter: Preventing you from posting too many great ideas at once.
  14. Re:VB anything stings my eyes by SpacePunk · · Score: 2, Insightful

    There are no crappy languages, but there are a lot of crappy programmers.

  15. Don't waste your time by Anonymous Coward · · Score: 0

    VB.NET and C# are basically equals in the .NET world and both are RAD, etc. You can develop just as quickly in C# as VB.NET. However VB.NET has no benefits outside of .NET whereas C# does. If you learn C# you can switch to C or C++ or Java easily (much easier than a VB programmer switching to one of those languages). VB is just MS whereas C# has a syntax used by many other languages. Do yourself a favour and ditch VB now and learn C#.

    Learn VB is like learning a language that only one village uses when they also speak another language which almost the whole world speaks.

  16. Well, that's off my Amazon Wishlist, but... by shumacher · · Score: 1

    I write in VB.NET 2005. I feel like it's all stagnant. The welcome page in the application hasn't updated since November, most code examples are referring to VB6, what little I can find on VB.NET 2005 is about the public beta, and recent posts to boards regarding the language reveals that many think the software is still in beta even though it was released about five months ago.

    Clickonce deployment is one of the most exciting things I've seen in ages, but aside from a couple little exercises I wrote, I've only seen one application deploy with it. I love the idea of deploying trusted Windows apps in much the way Java is used today. Clickonce apps run in a sandbox. The Clickonce security handler needs help - if you run a program that tries to use permissions it hasn't asked declared needing, instead of prompting the user to approve the higher trust level (the behavior shown in the documentation) the Clickonce handler crashes!

    Frankly, I'm tired of trying to find decent documentation. I have yet to get COM code that works - the samples on the site are pockmarked with errors. It seems like I'm almost working in a vacuum. I need a book that doesn't suck.

    1. Re:Well, that's off my Amazon Wishlist, but... by Anonymous Coward · · Score: 0

      Maybe you should try a real language. VB* == ghey.

  17. Re:VB anything stings my eyes by helix_r · · Score: 5, Insightful

    Why do people use it?

    Because it works. It is simple. It gets the job done fast.

    It works most effectively for smallish one-off projects and, I admit, there are better tools to use for anything that requires a software engineering effort, but VB fills a lot of needs.

    The "sister" language, VBA, is ideal for vendors who want to provide rich, user-accessible scripting interface to their hardware or software products.

  18. Re:VB anything stings my eyes by mochan_s · · Score: 2, Insightful

    Because vbscript works with excel, word, access - learning vb gets you to work with almost every microsoft product from asp server scripting to making vb6 windows applications to client side vbscript coding to office to scripting for other apps.

    It gets the job done a lot of times coz you have 1 week to process this data or 1 week to make a quick system for the local auction.

  19. Re:VB anything stings my eyes by sl0cb · · Score: 0

    /NOD

    --
    Ready for HD DVDs? http://hd-dvd.buy-on-sale.com
  20. what a bunch of FUD by dnaumov · · Score: 0, Flamebait
    "But the worst problem is that .net is still very much a bolt-on to Windoes. When you load the system, .net does not load. In fact, many of the machines in the office didn't even have it installed. What this means is that when you start your (my) 32k compiled app, it takes about 15-20 seconds for the libs to load up."

    What a ridiculous bunch of FUD. What machines are you using, Pentium 166 ? My machine is rather dated by today's standards, a 1 Ghz Athlon with 512mb or ram and all the .NET apps I have run so far start up in 1-4 seconds.
    1. Re:what a bunch of FUD by segedunum · · Score: 1

      1 - 4 seconds is still way too long. It depends on what his apps are doing, but I've seen apps that can take four to five times as long to start than a native C++ or VB version.

  21. VB2005 - Top Language by Toreo+asesino · · Score: 1

    You know the 'beep' command works just as faithfully as it did, way back in the glory days of BASIC?

    Yes, but better (or worse depending on how you look at it).....

    "on error resume next" is still alive and kicking! w00t!

    --
    throw new NoSignatureException();
    1. Re:VB2005 - Top Language by jbplou · · Score: 1

      "on error resume next" is still alive and kicking! w00t!

      Thats just a hold over for converted code and coders who don't understand good error handling. Try/Catch is the recommended method.

  22. VB "Users" by Tsugumi · · Score: 1
    It's a trite comment, and it's the reviewers words, but it kinda sums it up:

    the book also includes introductory and summary material rather than staying focused on VB 6 users

    Users, not developers?

  23. Re:VB anything stings my eyes by Anonymous Coward · · Score: 0

    Crappy programmers make crappy languages and thus we have VB.

  24. Sounds like a reasonable compendium by jerryodom · · Score: 1

    One of those books you purchase just because you may stumble upon an explanation to a problem you're not finding in your more robust guides.

    --
    For some reason I refuse to use either spell check or the spacebar properly.
  25. I LOVE it !!! by EraserMouseMan · · Score: 1

    That's the perfect way to put it. . . "VB syntax is very popular in a Britney Spears kind of way."

    Brilliant! It appeals to a self-taught programmer's basic instincts to feel comfortable with an English-like language. But like everything in life, it comes with trade-offs.

  26. OMG what are you doing? 20 seconds?!!! by Tominva1045 · · Score: 1

    (my) 32k compiled app, it takes about 15-20 seconds for the libs to load up.


    We've written two VB.Net applications- one about 15,000 lines and another abour 35,000 lines and the larger one even allocates a 3,000,000 long integer hash table.

    On the 1GB Ram/2.7Ghz machine neither takes more than 4 seconds to come up.

    On a 256MB Ram/800Mhz laptop the larger one takes 20 seconds.

    Is it the machine or is it the code?

    --
    Cogito Ergo Sum
    1. Re:OMG what are you doing? 20 seconds?!!! by Tlosk · · Score: 1

      "Is it the machine or is it the code?"

      As a software developer I just love telling my customers to buy a new computer so they can run the new version of my software that does the same thing as the old version. They never fail to applaud my programming and business acumen.

      I develop in both, but when there's no compelling reason to use NET I continue to use VB6, there's a wider installed base of the runtimes and better resource use/performance.

  27. Re:VB anything stings my eyes by tehshen · · Score: 1

    There are no crappy languages, but there are a lot of crappy programmers.

    Sorry, what? There are too crappy languages. As an extreme example, let's see you code a web application in Brainfuck. It's hard to read, takes ages to write, and is a pain to set up. But it can't be the fault of the language, because there are no crappy languages, of course.

    --
    Guy asked me for a quarter for a cup of coffee. So I bit him.
  28. Save $5.23! by Anonymous Coward · · Score: 0

    Save yourself $5.23 by buying the book here: Visual Basic 2005 Jumpstart. And if you use the "secret" A9.com discount, you can save an extra 1.57%!

  29. Re:VB anything stings my eyes by CodeBuster · · Score: 1

    The problem comes when the intrepid young VB developer, flush with his previous VB success, hooks his Honda Civic up to the 18 wheel trailer and wonders why the clutch just blew out when his Honda encountered a "load". The main problem with VB is that it frequently does not scale up when the need arrisses and managers have a difficult time understanding why something that has worked fine for years begins having problems when the number of simultaneous users begins to move into the double digits. Try explaining to that same manager why that wonderful little VB application that was so fast and cheap to build suddenly needs to be scrapped because it cannot scale up. The non-technical person will have a very difficult time wrapping their brains around that problem, they usually assume that they can just "troubleshoot" and get the whole thing working for how ever many users and whatever new features they want to throw at it. When you see his eyes glaze over and he starts nodding his head and saying yeah, uh-huh, sure, and right then you know that you have reached this point.

  30. Tried it by vmcto · · Score: 1

    Loved it, then hated it...

    I did a large application long ago starting with VB 2.0 thru VB 6. That was an "interesting" progression with each version. As some have pointed out MS threw in some crazy changes along the way, but for the most part each version built on the previous version. The notable exception being the data libraries... DAO, RDO, ADO, etc... Each time re-inventing the wheel, but by version 6 with ADO it seemed like MS had hit upon a good compromise of power and accessibility.

    Than came .Net... It wasn't that I was not receptive to all the really cool new OO and "advanced" capabilities (threading being a big one) it was the total lack of any "nod" toward the previous VB developers.

    I remember being on the phone with a buddy from MS, after trying the .Net version of VB, telling him how I was never going to switch and the bagillion other VB programmers probably wouldn't either. He basically said that MS knew they had threw the VB coder base under the bus but didn't care much either way.

    So I stayed away. I don't write a lot of code anymore and in the intervening period I've used a smidge of C, a bit of python (which I like a lot), a little Perl, and a decent amount of PHP.

    Then came Visual Studio 2005 in the MSDN pack... I figured, what the heck. I had a little app that I had an itch to write and surmised that a clean start would be a good thing.

    I loved it! The IDE is beautiful, it really is very nice to use. The controls provide a huge selection, the syntax is familiar enough to be comforting, and it just seemed to work. I was pleasantly suprised.

    I then I tried to access some data. Not your run of the mill CRUD but some slightly advanced scenarios. I tried to fight my way through the new "datasource" wizard thingy and all the funky objects it creates.

    I couldn't do it. It reminded me of Access in the ways that it makes incredibly simple things seem incredibly difficult. So I fought it for a few days trying to understand a sane approach to accessing data that would provide the sugary goodness of data bound controls with the clean simplicity of controlling the behind-the-scenes data access plumbing with code.

    I failed miserably. On about the 4th day, I did something evil that Visual Studio didn't like. All of the sudden, my controls were gone from my main form. They had just disappeared. I still don't understand exactly what I did, but something made the IDE yak... No error messages, no warnings, just gone. I immediately deleted all my project files, including the svn archived versions that I could have went back to.

    VB 6 gives me everything I need to build my little app, which is what I use VB for now anyway. For anything consequential we will continue to use LAMP, Java, or C++.

    In the long run MS did me a favor by bitch slapping me away from their development tools and hence windows systems in general. I wonder how much that has to do with the fact that we run 80% linux boxes...

    Hopefully a lot! :-)

    1. Re:Tried it by Anonymous Coward · · Score: 0

      It reminded me of Access in the ways that it makes incredibly simple things seem incredibly difficult. So I fought it for a few days trying to understand a sane approach to accessing data that would provide the sugary goodness of data bound controls with the clean simplicity of controlling the behind-the-scenes data access plumbing with code.

      Few days? Access takes a couple of months before you start feeling comfortable about how to get things done in it. It pays itself off eventually. You'll be able to join, sort, filter, and manipulate information 100 times faster than 95% of the population.

  31. Sorry, I'm American by RingDev · · Score: 1

    I searched Monster.Com for all jobs, I didn't limited to geographic scope because there are hot spots for both languages. My home town for example, the UW Madison CS degree focuses heavily on Java, so we have an absurdly large number of skilled Java developers in the area, which in turn leads to a lot of Java based work. But the head hunters I've been talking to recently say that the Java market is much tighter in Chicago while .Net is on fire.

    -Rick

    --
    "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
  32. Help you need by Lucas.Langa · · Score: 1

    If you use Visual Basic, this book is definitely not the help you need.

    --
    Build a tool even an idiot can use and only an idiot will want to use it. -S.O.B.
  33. Don't Flush Your Investment Down the Loo Again! by MrSteveSD · · Score: 1

    I work for a company whose main product is a VB6 app that has had hundreds of thousands of pounds invested in it over many years. When .Net came out we quickly realised there was no way to simply convert the code to VB.NET. The upgrade wizard is a joke. The only way to move to .NET is to do a rewrite, but we don't have the time or money to do that. I suspect many companies are in this position, but they don't want to make to much of a fuss as they do not want their customers to know about the problem. Even if we had £400,000 to invest in a rewrite, would it make sense to do in in C# or VB.NET? After all, what is to stop Microsoft from screwing us again? I find myself wishing we had written it in Java from the beginning. It would have been cross-platform and would not now require a re-write. Has anyone else out their been screwed in this way too? P.S. You can forget Mono, that will never be able to keep up with Microsoft's gargantuan changes, so that's not really a migration option if Microsoft decides to ever dump .NET.

  34. MS abandoned VB6 coders since .NET by Renne · · Score: 1

    The product I'm working on for my job is a rather complex, real-time, client-server application written in VB for the most part. It has evolved for about 12 years and includes today about 3 million lines of code. Works great. Performance is unbelievable (positively) for a VB6 app.

    While the transitions from VB4 to VB5 and later to VB6 had been relatively easy (upgrade GUI controls, recompile), migrating to VB.NET quickly proved to involve a great risk for an incredibly high cost. The migration wizard provided by MS was something to laugh - or cry - at, for example failing to upgrade most controls & components to their .NET successor and falling back to COM interop as soon as possible.

    We have abandoned the migration option in favor of a progressive rewrite (in C#). There is no other viable option, from an economic point of view: our customers don't care at all about the technology on which the system is based, but they do care about new useful features being added to the system at regular (reasonably short) intervals.

    Not so long ago, VB had replaced Cobol as the world's most used programming language (with C, C++ or Java far behind - this had been covered on /.). Given this, and no matter how superior the .NET platform was, I still find it really incredible that MS did not provide any decent solution for migrating the huge VB6 code base to the new technology.

    Did I mention that VB6 became obsolete as soon as .NET appeared? No corrective or security updates any more. No such thing as a phasing out period.

    Nowadays many people would say that it's the price of using a proprietary development environment (compiler) compared to an open source one. However probably no one would have dared sustain such an opinion when the development of our product started 12 years ago...

    Some time ago I read someone's proposing an open-source VB6 compiler as an interesting project: has anybody heard something about that?

    1. Re:MS abandoned VB6 coders since .NET by MrSteveSD · · Score: 1

      I knew we weren't the only company in the same boat. I also find it unbelievable that they dumped VB6. Are we expected to spend £400,000 doing a rewrite that adds nothing, while our competitors with their java product continue to make improvements?

      The tragedy is that the management is going with .NET for future work despite the fact we have been royally screwed by Microsoft. It's almost beyond belief. It's like finishing your Autobiography after 6 years only to be told that English is being discontinued in favour of Esperanto, and you'll have to start all over again.

      What languages are the safest (in terms of longevity) and most practical to use for business development?

      Java is still a bit proprietary, but seems a lot safer than any of Microsoft's languages.

      Delphi is proprietary, but is still around after all these years, whereas VB has been killed off. Borland seems like a better choice if you are going to be locked into a proprietary language.

      C++ is non-proprietary, but I don't want to be chasing memory leaks around forever.

      As for all the scripting languages, Ruby, Python etc etc, I'm not sure they are a good idea for a big business development.

      Any other options you would suggest?

      As for open-source VB6, I doubt it. Microsoft would not allow it.

  35. Re:VB anything stings my eyes by EastCoastSurfer · · Score: 1

    VB6 was great for data entry apps that backed up to mssql or access. It was easy to write, debug, and get working in general. The whole pick the tool to solve the problem type of thing...

  36. REAL Basic by pizpot · · Score: 1
    RealBasic is better than VB6. I used VB5/6 for 3 years full-time. I am using RB version 2005. It has so much built in, never mind that it compiles for Linux, Mac Classic, OSX, Windows.

    Built in things I have found so far:

    - MD5 function - REALSQLDatabase... built in just like a set of functions. - sprites - cropping, scaling images (gif, jpg, bmp, more) - simple 3D - network communication in a few lines

    In VB I was constantly using API functions to do advanced stuff. In RB things are included... no need to hack. Also, AFAICT, no need for a bunch of dlls in your system folder for it to work... just the executable.

  37. VB and MS owns you?? by pizpot · · Score: 1
    I know a guy, who said he had a VB4 decompiler from MS. He wanted to know why the exe's where so big, so he decomiled one and found a 40 page contract saying that MS owned this exe.

    How do you spell "whoa"

  38. Cold Dead Fingers by stuffduff · · Score: 1

    Until Visual Studio returns the ability to create a stand alone executable program there will always be a place for VB6. Microsoft could not have made their AntiSpyware without it!

    --
    "Can there be a Klein bottle that is an efficient and effective beer pitcher?"
    1. Re:Cold Dead Fingers by Valafar · · Score: 1

      You do know that there's a VB 6 runtime, don't you? VB applications are not like Delphi (eg. completely self-contained). It just so happens that MS included the VB runtime in the OS starting with Windows 98 SP2 (I believe), so it was "seamless".

      Incidentally the main VB 6 runtime is called "MSVBVM60.dll". The "VM" on the end of that does indeed stand for "virtual machine".

      There is 1 merit: The VB6 runtime is 1.1 MBs as opposed to the 22 MB .NET Framework runtime, however with each new release of a Microsoft OS (as well as updates) the .NET framework is becoming quite ubiquitous...

      Regardless, use whatever you like. If VB 6 is your thing, have at it. I'll never look back.

    2. Re:Cold Dead Fingers by stuffduff · · Score: 1

      You're absolutely correct! Compile to native code aside, while most of the calls to the dll can be minimized, I'm thinking more along the lines of VarPtr & AddressOf. But then my first copy of AppleSoft][ was an Integer Basic program that poked the assembly into memory and then jumped to it. However, for some special occasions I still have a copy of Visual Basic for DOS 1.0 and even the QBasic 4.5 compiler! And when all else fails there's MASM.

      --
      "Can there be a Klein bottle that is an efficient and effective beer pitcher?"
  39. Re:VB anything stings my eyes by meringuoid · · Score: 2, Insightful
    The "sister" language, VBA, is ideal for vendors who want to provide rich, user-accessible scripting interface to their hardware or software products.

    Also, the damn thing's everywhere. Suppose you have some dullish office data handling task. The sort of thing your average white-collar drone will spend several days working on in Excel, click, copy, paste, add up, repeat...

    You're smarter than that. You know that this kind of repetitive shite is best done by a computer. Very well... but you aren't in the IT department, you don't have admin rights to install anything, and God help you if you download and run anything not authorised and signed off on by the Proper Authorities after at least seventeen two-hour meetings about it.

    And yet here is VBA. Hiding just under the surface of every one of these mundane office apps you use every day. OK... for a = 1 to lots, sht.Cells(a,1), adodb.recordset, this, that, the other, output to here... done!

    If you're a geek in the wilderness, VBA's a godsend. Or perhaps a deal with Mephistopheles... either way, it gets results :-)

    --
    Real Daleks don't climb stairs - they level the building.
  40. Re:VB anything stings my eyes by BBobberson · · Score: 1

    That could depend on what you want to do with it. The best idea I've come up with is writing a brainfuck chatbot, then porting it to C, to try and win the obfuscated c code competition. Besides, maybe Brainfuck is a good language, made by a bad programmer.

    --
    12 steps is too long. My ideal plan is: 1) Quit 2) Relapse 3) ??? 4) Profit!
  41. VB.Fred? by The+Waxed+Yak · · Score: 1, Interesting

    I was a long-time VB developer. "Was" is the key word. I worked for a major MS partner, and started working with the pre-alpha releases of .Net. After a short while I decided that VB.Net was a complete joke, and decided to switch languages (I had originally been a C/C++ junkie, so no trouble there).

    I've spent the last 5 years doing Java development, and was recently called in to overhaul a VB6/VB.Net application. I agreed to do it, since rosy memories left me thinking it would be better than it actually is.

    Lo and behold, VB.Net is worse than I remember it. The last 5 years of Java development have spoiled me. I wouldn't mind doing C#, but the customer requires VB. Everything I told my previous customers about VB being dead was more prescient than I ever could have believed.

    At this point, I can categorize VB programmers into 2 categories:

    1) Holding onto VB for dear life, writing their same VB code around the obfuscated constructs forced upon them by VB.Net.

    2) Holding onto VB for dear life, but trying to adopt the .Net class library, yielding code that is almost legible, if it weren't for the stupid constructs used to bolt VB onto it.


    On the other hand, MS has given VB programmers access to things they've always wished for. The problem is that the syntax is contrived and "bolted on." The downside is that the syntax is incredibly obtuse. "AddressOf"? I thought we weren't supposed to use that?! Now it's required?! (A collective response, as a C++ programmer I have no problem with function pointers.)

    At this point I can say that I honestly feel that anyone holding on to VB.Net has a doomed career. If you can't make the switch to C# (add curly braces and semicolons, subtract the cruft), then you need to get out of this line of work immediately. And, better yet, switch to Java, which has a superior class library, more consistant syntax, and will run on any platform.

    At this point I'm waiting for my VB.Net contract to end, and have already informed the companies I subcontract through that I will not take any more MS related contracts. On the mornings that I have to work in VB.Anything I wake up with a knot in my stomach dreading the hoops I'll have to jump through to get my job done.


    Long live Java/Eclipse,
    The Waxed Yak

    1. Re:VB.Fred? by rp · · Score: 1

      I do not understand your comments. Personally I have no VB6 background to speak of, having written only a tiny bit of VB6 and VBA code, but I still find VB.NET more pleasurable than C#. As to the syntax (syntax is superficial and easy to learn) I tend to prefer VB.NET over C#; VB.NET; completely lacks the syntactic sloppiness of VB6/VBA. As to the language features (which, again, are minor), I tend again to side with VB.NET; e.g. VB.NET doesn't use C#'s odd "indexer" syntax, and in VB.NET you can make interface implementations private, which is a pretty cool design aid. All of this is minor detail and a matter of preferecnce; nothing to get a knot in your stomach over. And VB.NET certainly doesn't seem "contrived" to me.

      So I really wonder what your problems with VB.NET are. Is it the VB6 compatibility function library? I strongly avoid in my VB.NET code, but again, it's just a library of convenience functions, nothing to feel bad about. Do you hate the lack of type checking? I always enforce it in my code (Option Strict). What else could be wrong with VB.NET, coming from a Java perspective? I just don't see it.

  42. Use of VB.Net is deprecated. by cpatil · · Score: 1

    I thought MS was migrating its customers to C# or J# ?

  43. Re:VB anything stings my eyes by kawika · · Score: 1

    "Because vbscript works with excel, word, access - learning vb gets you to work with almost every microsoft product from asp server scripting to making vb6 windows applications to client side vbscript coding to office to scripting for other apps. "

    But guess what--Javascript can do all those things as well. The whole idea of COM was that the calling convention is accessable to any language, unlike the insular world of Java. I have written lots of Windows Script Host scripts in Javascript and have done a whole ASP site in Javascript. It's especially nice because you use the same language on both the client and server side of a web app. And don't tell me you use VBScript for client scripting, at least don't say that out loud here on Slashdot.

  44. The problem with C#... by jtcedinburgh · · Score: 0

    The problem with C# (in my experience) is that it is very fussy (as compared to VB.NET or especially good olde VB6). For instance, I spend a lot of time in C# doing type conversions, which in VB6 were far more straightforward.

    If you're coming from a C++ background, C# is most definitely the way to go, but the leap from VB6 to C#.NET is quite a few rungs up the ladder in terms of the discipline that is needed. Another thing that infuriates me is the fact that it's case-sensitive - the number of times I forget this and end up wondering if I'm using the correct class library, because the popup doesn't appear, only to find I've not capitalised it.... grrrrrr!

    Fact is, though I set out firmly wanting to side with the pro-C# folks, I am finding that life is simply more straightforward in VB.NET, and I would suggest that anyone moving from VB6 to .NET has enough to worry about without having to deal with fiddly type conversions (System.Data.SqlClient, stand-up, you are a right royal PITA to work with in C#, as I keep having to worry about the differences between SqlInt16, SqlInt32 etc., when by rights I ought to be able to interface with SqlInt32 and not have it fall over if it encounters a sql tinyint).

    I do like .NET in general, but it is used by a wide variety of developer types and abilities, and so why make life harder for those for whom VB.NET is the natural choice?

    John

  45. VB 6 VB.Net (2005) by Anonymous Coward · · Score: 0

    Visual Basic 6 > VB.Net enough said

    vb6 - native code, fast code creation, easy to learn.

    vb.net - non native code, bloated language, hard to learn.

    The is no point to vb.net it can be converted directly to c#
    You may as well use c# you will type less for a start!

    The advangage and disadvantage of vb was its lack of OO.
    OO isnt always a good thing - there is still a place for procedural programming.

  46. Shouldn't that read.... by Evil+Pete · · Score: 1

    Visual Basic 2005 Jumpship

    --
    Bitter and proud of it.
  47. I'd love to see his code.. by Tominva1045 · · Score: 1

    Who knows what his code is doing- the only time I've seen delays is with slow machines or sucky code.

    --
    Cogito Ergo Sum
  48. no crappy languages? by dwalsh · · Score: 1

    "There are no crappy languages, but there are a lot of crappy programmers."

    Really? What kind of languages do crappy programmer design?

    If they cannot create crappy languages, then what happens when they come to design a language?

    Do they smarten up just in time?

    (Variation of a Dilbert rebuttal to the "there are no stupid questions" cliche).

    --
    ${YEAR+1} is going to be the year of Linux on the desktop!
  49. Visual Studio 2005 by indyweb · · Score: 1

    Can't believe there are still VB 6 programmers out there who haven't jumped on the .NET bandwagon, but if so, it's time to get on board. Either way, we definitely need better resources for Visual Studio 2005 and this is a welcome addition.

  50. Re:VB anything stings my eyes by mochan_s · · Score: 1

    So then what exactly is the difference between coding in VBScript and Javascript?

    They have access to the same set of objects. Javascript does not have any language features that VBScript does not have.

    Javascript has curly braces and type sensitivity but for most part any Javascript code can be translated line by line to exactly the same VBScript code.

  51. Re: VB6 over VB2005 by richpulp · · Score: 1

    I have a nightmare. I have this idea that unless I can learn VB2005 I will not be much use as a programmer. I like VB6, I have written meaty apps in it, but I'm over 40, maybe over the hill, and I guess I have to really sit down and figure out whether or not to make the leap. Just a personal opinion.