Visual Basic
Programming with VB .NET, VBA, C#, ASP, SQL Server, others

 



Subscribe to "Visual Basic" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.

 

 

  6. juni 2004


Null in 2005

In VS 2005, Microsoft is adding nullable value variable types to the CLR. A "null" value is distinguished from a 0 or a blank string by meaning that no value is assigned to it. Object variables can be null (or Nothing, as VB calls it), but until now, normal value variables cannot. This functionality is known from databases.

The support for nullable types will be rather basic in VB 2005, but more extensive in C#. Hopefully, more support will be added in VB later.

Ok, enough about future versions. I'll try to concentrate more on VB 2003 for a bit now.


9:04:46 PM    comment []  trackback []

MyOwnFont

A utility that allows you to create a TrueType font from your own handwriting.


2:24:57 PM    comment []  trackback []

CodeRush

I have noticed that even lots of Studio programmers are very enthusiastic about CodeRush, which if I understand this correctly is the Delphi editor++. Now, the VB .Net environment is just awesome, but I guess everything can be improved. Anyone has tried CodeRush with VB development?


3:50:05 AM    comment []  trackback []

New VB context menu in VB 2005

From Josh Ledgard's blog:

Heh. Your license money at work!


3:14:04 AM    comment []  trackback []

My oh My

Nothing kills the enjoyment of new cool features in a release like learning about the even cooler features in the next release. But in the world of computing, we have been getting used to this.

.NET provides a great new class libary, so great in fact that even experienced VS programmers will have a hard time learning to know it. The hierarchy is not necessarily intuitive, either (nothing is) and there are often several places where you find similar functionality.

For Visual Studio 2005, Microsoft has tried to improve this by adding the new My namespace.

Now, I was never a fan of the "My computer", "My pictures" and "My whatnot" that Microsoft has added all over Windows. I prefer the file and folder structure, thank you, and please leave the network settings where God intended them to be.

However, I have to admit that the new My namespace sounds like a great idea for providing shortcuts to classes and functionality in a logical and (ahem) intuitive fashion.

The two examples given my Microsoft really does not need any improving. Earlier (well, now), to read the content of a text file into a variable, you do something like this:

Dim sr As New IO.StreamReader("c:\file.txt")
contents = sr.ReadToEnd
sr.Close()

There is nothing wrong with this, and a good improvement on earlier file access systems. However, add zillions of classes, and it becomes really hard to rememebr everything.

This is how it's done with the new My namespace:

contents = My.Computer.FileSystem.ReadAllText("c:\file.txt")

Well, say what you want, it is a neat idea. I'm sure you'll enjoy reading the whole article.

By organising everything in a logical hierarchy that reminds people about the way a typical Windows user sees the hardware and software, it should make it easier for programmers.

My exposes several distinct classes which organize a variety of functions into one of seven general areas: My.Application, My.Computer, My.Forms, My.Resources, My.Settings, My.User, and My.WebServices.

I'm sure there will be similar problems knowing which classes belongs where, but those can never be fully avoided, and since these are shortcuts, I assume they can be duplicated (?). I am glad the Visual Studio developers have not stopped innovating and thinking in new and exciting ways.

Bonus: Anand M about how to extend the My namespace.

More: Application level events! (in VB but apparently not C#)


3:02:19 AM    comment []  trackback []


Click here to visit the Radio UserLand website. © Copyright 2004 Jan Haugland.
Last update: 04.07.2004; 19:04:54.

June 2004
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      
May   Jul

Please support this blog by clicking the ads. Thank you!

Library

My articles

Sport

"Can you hear me, Maggie Thatcher?"

9/11 conspiracies

Debunking Michael Meacher

Lost and Found

Don't mess with my false memories

Afterlives Inc

Does the soul exist? (Part 2)

Love to Hate

Why Anti-Americanism?

Marital Bliss?

The bridezilla from hell (pt 2)

anti-gun nut

Michael Moore's unconvincing defence

The Just Not Right Dept

'Anthropic principle' debunk

Religion

Is it right because God says so?

Humour

Hu's on first

Words, words, words

The lost philological battles

History

So you think you are having a bad time?

Nutrition

Living on sunlight, or feeding on gullability?

Jan/Male/31-35. Lives in Norway/Bergen, speaks Norwegian and English. Eye color is hazel. I am a god. I am also modest.
This is my blogchalk:
Norway, Bergen, Norwegian, English, Jan, Male, 31-35.