Home > Microsoft .Net Development News > VB 2005 'My' Space set to help developer
Microsoft .Net Development News:
EMAIL THIS

VB 2005 'My' Space set to help developer

By George Lawton
10 Aug 2005 | SearchVB.com

.NET News Channel
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google

With the introduction of the My framework into the Visual Basic 2005 programming environment, Microsoft is hoping to significantly streamline the process of finding functions and resources. VB rose to the top among programming languages largely due to ease of use, and this trait did apply quite so well, many agree, when VB6 was transformed into VB.NET. Resource location is an area Microsoft is addressing as the second version of a .NET enabled VB environment comes forward.

"The top-level goal is to make it easier for application developers to accomplish common programming tasks, and by doing that, to expose the [.NET] in an understandable and consumable fashion," said Jay Schmelzer, lead program manager for Visual Basic at Microsoft. "We often refer to this as a speed dial into the .NET framework," he noted.

Schmelzer explained that Microsoft got a lot of feedback that the 2003 edition of Visual Basic sometimes made it difficult for programmers to find what they were looking for with the Namespaces framework. So the My namespace framework was created to help people find common functionality, like reading and writing to a text file.
The top-level goal is to make it easier for application developers to accomplish common programming tasks.
Jay Schmelzer
lead program manager for Visual Basic, Microsoft

In the 2003 VB edition, programmers would have to know that file systems could only be accessed under the I/O namespace. Programmers would sometimes have to navigate around the namespace hierarchy a few times before they found what they wanted.

The My namespace framework comprises a set of shortcuts to various kinds of functionality, in which programmers can access a particular feature or set of resources from a variety of places in the namespace. This is said to provide an intuitive way to find the functionality exposed by the underlying development framework.

Hello, Central! Program access, that is

In addition to core functionality, programmers can use My.resources to expose all of the resources in the project, such as forms, settings, configuration information, icons, and connection strings to databases from a single place at the top level. Schmelzer said it provides a centralized way to programmatically access all of the pieces of the application.

The framework also makes it easier to see the dependencies between classes, so that when programmers consider using a particular class, they can more quickly determine other classes they may need to include. For example, in the old edition, programmers writing code to read from a file, might not have immediately grasped that they also needed to create a stream object.

Developers can also add top elements to the My namespace. For example, if they were writing programs around devices, they could create a my.computer.device, which includes all of the different functions someone might call in talking to a mobile device or printer.

A user view
More on Visual Basic 2005

News: VB 2005 gains no-cost refactoring plug-in

News: VB 2005 Application Framework gets rolling in earnest

Tip: VB 2005 adds useful drag-and-drop objects

Bill Hollis, an author/consultant with Elysian Consulting in Nashville, TN,who has used the new tools said, "The My framework is a good start in the right direction. This lowers the bar for using some of the more advanced features."

His initial observation was that there are several things that programmers will use right away, such as accessing settings and resources, which were more difficult to get to in VB 2003. He noted, "I think this is a big step and will help a lot more programmers use those features more readily."

For example, getting information about the current computer used to require a pretty good run of code, which complicated simple tasks such as posting information to a log file. Hollis said, "Now you just refer to the My.net.username. When you are trying to insert that in a log message or pop-up dialog, it is easier to get to than it was before.

Hollis said the My.resources are particularly useful for programmers that have been doing this for a while. He noted, "Even experienced programmers did not use resources [very well], because they had to use a lot of arcane code."

For example, if you wanted to find out information about the current screen in previous versions of VB you had to access GDI, so the logic might be described as convoluted. Now you just query My.computer.screen. Hollis said, "I think it will be routine to use settings and resources this way except in very advanced scenarios."

Tags: .NET Framework 2.0 and Visual Studio 2005 development.NET Framework database programming best practicesVIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google



RELATED CONTENT
.NET Framework 2.0 and Visual Studio 2005 development
Mono 2.0 moves .NET apps to Linux - includes migration analyzer
Using the Visual Studio 2005 DataSet Designer to build a data access layer
SCM Visual Studio plug-in offers updated interface
Assembly versioning in the .NET Framework 2.0
SearchVB.com's Podcast Page
Visual Studio 2008 Learning Guide: Multi-targeting
On managing a .NET Framework 1.x migration
Case Study: IdeaBlade DevForce object mapping
Book excerpt: Printing in Visual Basic 2005
CodeGear RAD Studio now supports .NET 2.0

.NET Framework database programming best practices
Windows 7 for developers
Microsoft's Oslo modeling platform, the M language and .NET
Using the Visual Studio 2005 DataSet Designer to build a data access layer
Windows Developments: Product news February 2008
Oracle updates data access components for Visual Studio 2008
Reporting tool now supports Word 2007 and VS 2008
Windows Developments: Product news, January 2008
Choose the right .NET data provider, optimize application performance
Windows Developments: Product news, December 2007
The fallacy of the data layer -- or, a new architectural model for software designs

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
IronRuby  (SearchWinDevelopment.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Development Solutions - Silverlight, WinForms, ASP.NET
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts