T
Tom Leylan
Herfried K. Wagner said:I know the meaning of "robust". The whole discussion is now about using
'Len' vs. 'String.IsNullOrEmpty'. It's pretty clear that the shortest
solution is not always the most robust one. However, I do not see the
relation to my preference of 'Len'. 'Len' is faster to type and read and
I do not consider it less robust than 'String.IsNullOrEmpty'.
Okay but you wrote "whatever that means" and I can't read minds. This isn't
a discussion about Herfried's preferred syntax that is a given. If it was
available in VB6 Herfried prefers to use it in VB.Net. I understand that
along with your reasons I am addressing those who are on the fence. Those
who may not consider themselves VB gurus and who might one day like to
develop software (and be employable) in more than one language.
Well, then I suggest you specify more clearly what you are talking about.
Got it... I'm to blame when you attempt to restate what I wrote and I'm to
blame when you write "Why should using 'Len' be "less robust" (whatever that
means)?" We've been through this before. You're playing a debate game if
you want to win the debate you win. I'm not debating with VB-gurus about
application development.
Where's the relation to the topic?
What is being discussed is "preferences" and I'm trying to point out (and
you will to somebody else in another thread shortly I'm sure) one's
preferences are related to what one does. If you haven't worked in a large
group or haven't had to maintain a large project or haven't been responsible
for the distribution of large quantities of software your personal choices
are made based on a criteria which may not be shared.
To offer your own personal preference if it is based upon the experience of
working at home on small apps to somebody who is setting up team-based
coding standards without considering the impact is rude if nothing else.
Then I am wondering how you are writing code at all.
And I am wondering if you have ever worked as a software developer
Hm... This point was intended as a joke. No, I really do /not/ think
this is a valid reason not to use 'String.IsNullOrEmpty', as I do not see
the naming and behavior as a reason for abandoning it from the toolbox.
In the words of Herfried: "Well, then I suggest you specify more clearly
what you are talking about."
I gave the reasons why I prefer 'Len' over 'String.IsNullOrEmpty' in my
previous post.
Actually what you did (and anybody can check it) is describe one solution as
"brilliant" and one as "stupid" using the well-worn screwdriver/hammer
analogy so as to avoid those words. Anybody can write "that's like..." and
proceed to make up something which it isn't like. Again you want to win the
debate rather than discuss the issue.
I do not want to win anything. It seems that you see discussions as
fights instead of what they are -- just discussions. Be assured that I
know that many developers don't have much knowledge about the tools they
are using. However, as I said, there is no problem 'Len' has and
'String.IsNullOrEmpty' doesn't have.
In the words of Herfried: "Well, then I suggest you specify more clearly
what you are talking about."
If it isn't a fight in your mind then why have you boiled the reasons down
to the length of the command? There isn't a command on Earth that I have
bemoaned typing due to my lack of time to type it or the pain and suffering
I incurred doing it.
These points are all ungrounded prejudices, none of them apply. I am
actually using different programming languages and I prefer use the tools
they provide. The .NET Framework's method has been considered "low-level"
because the VB.NET class library and other libraries are built on top of
the .NET Framework's classes, often providing access on a higher level, as
.NET programming languages like VB.NET and C# do over IL.
You have categorized them as "low-level" and perhaps a few others do but
that doesn't make them so.
At least to me as a non-native English speaker this means the same.
You understand the difference between buying (for instance) a Sony TV which
develops a problem and proclaiming "Sony TVs suck" and the statement "I
bought a Sony once and it had a problem."
If there are two ways to archieve a certain thing and one of them is
faulty, why choose the faulty one? It seems that your decisions are much
more based on ideology than mine. I use 'Len' because there are problems
attached with another way to archieve the same thing and you are wrongly
extrapolating that to a general preference of VB's functions over the .NET
Framework.
My decisions are based upon an ideology without a doubt. That ideology is
one that I have developed over the course of 30 years of software
development. It is not based upon the language I used or the length of a
command. When Clipper (a dBASE-language) introduced the radically changed
5.0 version I suggested that people make the switch because as radical as it
was it solved many of the nagging problems introduced by the dBASE language.
One's software would be safer, more robust, probably tighter and far less
ambiguous. On the other hand it would tend to less-well understood by dBASE
developers but better understood by Pascal and C developers and of course by
any Clipper developer who could see how much of an improvement the new
version was.
Without a rational ideology it's only about defending one's turf. I'll
suggest that is why the VB6 diehards feel threatened by everything and
anything that isn't VB6.
I 100 % agree, but this even includes using the tools VB provides over the
tools of the .NET Framework if their use has advantages.
Does the shop you work in use VB.Net exclusively? Is anything there written
in C#?