Dan Fernandez's Blog : VB's *My* for C# Developers - Simplyfying life for developers ?
VB.NET 2005 wil have a feature called My.Using "My", you can write code like this:
Dim
contents As String
contents =
My.Computer.FileSystem.ReadAllText("c:\mytextfile.txt")
Instead
of this:
Dim contents As String
contents =
IO.File.ReadAllText("c:\mytextfile.txt")
Dan Fernandez's Blog : VB's *My* for C# Developers
Idea is that it is simple- new people do not have idea that IO namespace exist.
I could see a lot of efforts in .NET 2.0 to "simplify" life for starter programmers. It just helps to build simple applications but not complex system. It make more complex to support code reuse. Could developer in any way customize how file is opened when using 'My'?
And what is worse, all such simple thing becomes industrial standards.
And when you start to build complex system first thing you faced that you should prove to team members that practices which are called new could not be used because it not compatible with lot concepts of code reuse.
Sometimes seems that Microsoft wants to make users from most of programmers and I do not like this.

0 Comments:
Post a Comment
<< Home