|
georani wrote: VB.NET is like C# but a bit more verbose and almost like natural English, so anyone can understand VB.NET code.
I don't care.
Latest Article - A Concise Overview of Threads
Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny
Artificial intelligence is the only remedy for natural stupidity. - CDP1802
|
|
|
|
|
You obviously do otherwise you wouldn’t have commented that you didn’t care 🤔
modified 6-Sep-22 21:01pm.
|
|
|
|
|
It still has On Error Resume Next - so it's still garbage.
A popularity contest does not guarantee quality: look at the current POTUS ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
OriginalGriff wrote: It still has On Error Resume Next - so it's still garbage. Which is really just the same as:
try
{
throw new Exception();
}
catch {} Perfectly valid (and seen) in C#.
Please tell me how this makes C# garbage
|
|
|
|
|
No, it isn't.
It's the same as saying:
void MyMethod()
{
try { ALineOfCode(); } catch{}
try { AnotherLineOfCode(); } catch{}
try { AndAnotherLineOfCode(); } catch{}
try { YetAnotherLineOfCode(); } catch{}
try { NextLineOfCode(); } catch{}
try { YetMoreLineOfCode(); } catch{}
try { EvenNowALineOfCode(); } catch{}
try { EvenNowAnotherLineOfCode(); } catch{}
} And if you saw that on a code review you'd start swearing!
Worse, it propagates through subfunctions until another On Error is met - so you may never know that your code failed a hundred calls deep. It just continues as if the error line had not existed until it becomes totally impossible to ignore by which time the actual source of the error well and truly forgotten; the method may not even be in the call stack any more! And by then your DB is horribly corrupt ...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I've seen pretty much exactly that at one of the companies I worked at.
Ok, it wasn't every line of code, but every method at least (and sometimes multiple per method).
And yes, it was VB.NET (but no On Error Resume Next, it only had a few of those)
And you're right about the swearing part
|
|
|
|
|
Yeah - it's the equivalent of saying "my code works because it has no compiler errors" and walking away.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
You're saying that like there's an alternative
My credo in software development is "if it compiles, ship it!"
|
|
|
|
|
I wonder what the credo is for Javascripters?
If it interprets, ship it?
|
|
|
|
|
If it ships, starts praying
|
|
|
|
|
Just because a language has an implementation that YOU don’t like doesn’t necessarily make it garbage 🤔
modified 6-Sep-22 21:01pm.
|
|
|
|
|
I'm assuming that your username caused the post...
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
How did you guess? 😂
modified 6-Sep-22 21:01pm.
|
|
|
|
|
Just because it has a feature doesn't mean you have to use it.
|
|
|
|
|
OriginalGriff wrote: It still has On Error Resume Next - so it's still garbage.
Not knowing how to code doesn't make the language garbage it makes the coder garbage.
This is not knowing how to code:
On Error Resume Next
objShell.Run strRunCmd, 1, True
This is how to handle the error properly and reset properly:
On Error Resume Next
objShell.Run strRunCmd, 1, True
If Err.Number <> 0 Then
ErrMsg Err.Number, Err.Description, "Error with objShell.Run [" & strRunCmd & "]", True
End If
On Error GoTo 0
|
|
|
|
|
If you don't like it, don't use it. All of you VB haters make me laugh. Calling something that is used by thousands of programmers "Garbage", is just childish. The opposite of love isn't hate, it's indifference.
|
|
|
|
|
That makes NO sense! Because it has what C# has in this area and it is backward compatible as well, it is garbage?
|
|
|
|
|
Pop music is, well, more popular than Verdi's one.
|
|
|
|
|
Seriously you are on this same issue, get over it, most of us here don't give a rats about the index and put very little faith in the veracity of it's results. Why would we, the majority of us use c# and live peaceably with the VB.net community despite the barrage of insult hurled at them from time to time.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have spent 15 years developing my in-house app in VB. I can code in C but I like the readability of VB.
I compare the VB haters to Harley Davidson riders who look down at my full dress Suzuki.
The bike is no better/worse, but the club mentality makes them feel superior.
I am a proud VB coder!
|
|
|
|
|
|
|
Eddy Vluggen wrote: Of course it is popular; everyone can be a programmer with VB
With C# too, with Python too (#4 position in Tiobe index) ...
Everyone can be a programmer with (put your preferred language here).
Bad argument.
Eddy Vluggen wrote: In other news, over 50% of projects fail.
Source?
Eddy Vluggen wrote: Your move
Done.
|
|
|
|
|
georani wrote: Bad argument. No, an old and valid one, and proven at that; most programmers that started as hobbyists used VB; a language that encourages bad constructs and minimizes the stuff the user has to know.
georani wrote: Source? Google it yourself, it is not like it is a secret.
georani wrote: Done. Make it serious, or don't attempt another one.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
"If you just follow the bacon Eddy, wherever it leads you, then you won't have to think about politics." -- Some Bell.
|
|
|
|
|
Eddy Vluggen wrote: started as hobbyists used VB; a language that encourages bad constructs and minimizes the stuff the user has to know.
It is a lie, You're confounding Classic VB (1998, 20 years old language) with VB.NET (an C# equivalent language).
See by yourself:
VB.NET and C# Comparison (2016)[^]
Eddy Vluggen wrote: Google it yourself, it is not like it is a secret.
I did it, I have found not articles about 50% of VB.NET projects fails, again you are lying.
Eddy Vluggen wrote: Make it serious, or don't attempt another one.
Done.
|
|
|
|