Why VB.NET sucks today (and every other day)
-
So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:
Private Const String FirstReceiptNumber = "GA00000"
Public String GenerateReceiptNumber(ByVal lastNumber As String)
' ...
End FunctionThis, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:
Private Const String FirstReceiptNumber As String = "GA00000"
Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
' ...
End Function*sigh* :doh:
Adam Maras | Software Developer Microsoft Certified Professional Developer
-
So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:
Private Const String FirstReceiptNumber = "GA00000"
Public String GenerateReceiptNumber(ByVal lastNumber As String)
' ...
End FunctionThis, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:
Private Const String FirstReceiptNumber As String = "GA00000"
Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
' ...
End Function*sigh* :doh:
Adam Maras | Software Developer Microsoft Certified Professional Developer
So what sucked? Syntax differences between vb.Net and c#or that you did not get the vb. Net code right the first time.
-
So what sucked? Syntax differences between vb.Net and c#or that you did not get the vb. Net code right the first time.
What sucked was he was trying to do VB, and as expected, the compiler choked on real code.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001 -
What sucked was he was trying to do VB, and as expected, the compiler choked on real code.
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001This.
Adam Maras | Software Developer Microsoft Certified Professional Developer
-
This.
Adam Maras | Software Developer Microsoft Certified Professional Developer
Don't you mean 'me' ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:
Private Const String FirstReceiptNumber = "GA00000"
Public String GenerateReceiptNumber(ByVal lastNumber As String)
' ...
End FunctionThis, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:
Private Const String FirstReceiptNumber As String = "GA00000"
Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
' ...
End Function*sigh* :doh:
Adam Maras | Software Developer Microsoft Certified Professional Developer
So you don't know the VB.NET syntax and think VB sucks because it doesn't compile C syntax?
-
Don't you mean 'me' ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
VB is always about Me and never about You, This or that. And don't forget 1t.
CQ de W5ALT
Walt Fair, Jr., P. E. Comport Computing Specializing in Technical Engineering Software
-
Don't you mean 'me' ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
No, he meant "this". VB means "Me"...
.45 ACP - because shooting twice is just silly
-----
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001 -
Don't you mean 'me' ?
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
Me, me, me. That's all the VB crowd ever talk about.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Me, me, me. That's all the VB crowd ever talk about.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
Feeling a little paranoid today?
___________________________________________ .\\axxx (That's an 'M')
That's what the guy at the train station said today. Well, he didn't say it to me - he was talking to this other guy, but I knew he was talking about me; even though I couldn't hear him.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith
As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
-
So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:
Private Const String FirstReceiptNumber = "GA00000"
Public String GenerateReceiptNumber(ByVal lastNumber As String)
' ...
End FunctionThis, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:
Private Const String FirstReceiptNumber As String = "GA00000"
Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
' ...
End Function*sigh* :doh:
Adam Maras | Software Developer Microsoft Certified Professional Developer
Soon there will only be one: http://www.infoworld.com/d/developer-world/microsoft-open-compilers-visual-basic-c-894[^] Of course the question is which one... :sigh:
-
So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:
Private Const String FirstReceiptNumber = "GA00000"
Public String GenerateReceiptNumber(ByVal lastNumber As String)
' ...
End FunctionThis, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:
Private Const String FirstReceiptNumber As String = "GA00000"
Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
' ...
End Function*sigh* :doh:
Adam Maras | Software Developer Microsoft Certified Professional Developer
I have not read every response, but I have to agree with the general consensus. I also came from a C++ background, then C#, then VB. I had a teacher in college who made us do the same program in four different languages, including non-OOP ones so we learned how to focus on logic versus syntax. It's like English versus another language; if you learn what a noun, verb, adjective, etc. is, you just have to learn the specifics of that language. Like for instance English puts adjectives before a noun, but in Spanish, it's after the noun.
Back in the blog beatch! http://CraptasticNation.blogspot.com/[^]
-
So, I was helping someone on Stack Overflow out by writing some VB.NET code today. I come from a strong C# background (with C and C++ prior to that) so I can do anything in VB.NET that I can do in C#... as long as I have a compiler handy to make sure I didn't do anything foolish. I pasted the following code:
Private Const String FirstReceiptNumber = "GA00000"
Public String GenerateReceiptNumber(ByVal lastNumber As String)
' ...
End FunctionThis, of course, causes multiple shit-fits when compiled (as I found when I went back to check my work.) I was really only off by a couple of identifiers:
Private Const String FirstReceiptNumber As String = "GA00000"
Public String Function GenerateReceiptNumber(ByVal lastNumber As String) As String
' ...
End Function*sigh* :doh:
Adam Maras | Software Developer Microsoft Certified Professional Developer
What's that expression about blaming tools? If you'd named the thread "Why I suck today", we'd all have been very sympathetic.
I wanna be a eunuchs developer! Pass me a bread knife!
-
What's that expression about blaming tools? If you'd named the thread "Why I suck today", we'd all have been very sympathetic.
I wanna be a eunuchs developer! Pass me a bread knife!
-
Ewww!!! That's a pun we could have lived without!
I wanna be a eunuchs developer! Pass me a bread knife!