Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×

Visual Basic 2005 Jumpstart 169

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
This discussion has been archived. No new comments can be posted.

Visual Basic 2005 Jumpstart

Comments Filter:
  • Re:How about "why"? (Score:2, Informative)

    by Maury Markowitz ( 452832 ) on Monday March 06, 2006 @02:20PM (#14859768) Homepage
    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.
  • by Anonymous Coward on Monday March 06, 2006 @03:20PM (#14860397)
    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.
  • Re:How about "why"? (Score:2, Informative)

    by stanmann ( 602645 ) on Monday March 06, 2006 @03:40PM (#14860628) Journal
    And for a long List [google.com] of reasons for and against switching, Here, HAND. Enjoy the reading.
  • by RingDev ( 879105 ) on Monday March 06, 2006 @04:19PM (#14861080) Homepage Journal
    Nope, VB.Net is just a syntax option for coding in CLR. Just like C#, J# and PHP.Net

    -Rick
  • Re:How about "why"? (Score:3, Informative)

    by 0kComputer ( 872064 ) on Monday March 06, 2006 @06:20PM (#14862263)
    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.

"If I do not want others to quote me, I do not speak." -- Phil Wayne

Working...