|
I currently use both VB.Net and C# at work. Newer projects are all C#. However one feature I sometimes miss:
VB.Net shows you Error pretty much as soons as you write them. For C# you have to recompile the whole lot before you even know that you have errors
Still I like c# way more. Especially Linq and Lambda Expresseions are a PITA in VB.Net.
|
|
|
|
|
Do you want a pointer on what vb can't do. Some times it is hard to point out specifics. Maybe some of the C++ guys will chime in with a few pointers.
|
|
|
|
|
tmik wrote: Is there any one who can pin point the things VB can't do while other languages can do. Is that the differentiating factor you use to guage whether one language is better than another? If so, then no answer will suffice.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
VB:
Dim num As Integer
C#:
int num;
For every integer I declare, I have to press ~10 more keys in VB than C#. It gets worst as my code becomes longer and you end up seeing a ton of Dims and unnecessary text. It takes longer to read through, iffy looking syntax...
What exactly is a 'Dim' anyways? If you research the answer to this, you will realize that it's definition is not intuitive anymore and wrongly used based on what it's supposed to mean.
|
|
|
|
|
That's easy, C/C++/C# style "pointers".
That alone makes image processing SOOOO much easier.
|
|
|
|
|
Here's one I run into almost everyday:
When I override Equals(), I must also override GetHashCode(). Most Hashcode calcs require math that will quickly overflow an integer.
No worries, I can simply turn off overflow checking and let it overflow - the function still performs properly.
Here's the rub: in C# I can leave the assembly as checked, and just mark my GetHashcode() method as unchecked. Can't do that in VB. You can only mark the entire assembly as checked or unchecked.
At least, that's the way it was in 2008. Stopped using VB at that point.
|
|
|
|
|
Several; the limitation that comes to mind first is that in VB.net you can't define an event based on a delegate that returns a value.
The only places I see VB.net as better than C# is in how to declare an Extension Method and VB.net's support of method-scoped static variables.
VB.net has a lot of historical baggage that weight it down.
C# is better than VB.net because C is better than BASIC.
|
|
|
|
|
VB can do anything other languages can do, only worse.
Actually, the real problem isn't the language. It's the people who tend to use it because it's "easy." Using spray paint is easy too, as long as you don't use it well.
|
|
|
|
|
Curly braces
modified 20-Oct-19 21:02pm.
|
|
|
|
|
...Till my birthday for those that can't remember. Code Project is 15th November due to it being in Paedophiles Paradise. I'm the 16th November, greatest day on Earth especially here in Oz.
Coopers Sparkling Ale going down a treat.
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
Post your address and we'll all send you a gift.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
1/12 Hythe Street
Mount Druitt NSW 2770
or postal
PO Box 243
Mount Druitt NSW 2770
Michael Martin
Australia
"I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible."
- Mr.Prakash One Fine Saturday. 24/04/2004
|
|
|
|
|
...we're all waiting for your post to say "54 minutes ago" before wishing you happy birthday!
Marc
|
|
|
|
|
Happy Belated Birthday! Granted I'm only 20 minutes late.
|
|
|
|
|
So, happy birthday, good old dog!
Veni, vidi, vici.
|
|
|
|
|
Happy birthday. I'll hoist a glass when I get home from work (~9h from now ).
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
I am off tomorrow morning to the Ancient Metropolis of Salisbury for a CamRA weekend.
We will be starting at about midday and going on to about 20 pubs or until we drop.
(Whichever is sooner).
If anyone is in the Salisbury area and fancies drinking with a bunch of middle-aged, middle-class, alcohol enthusiasts, feel free to join us.
We should be in the Haunch of Venison for about 1.30pm.
My obituary may well appear by Sunday afternoon.
The Haunch is the oldest pub in Salisbury, Circa 1320, and has the mummified finger of a Saint on display.
---------------------------------
Obscurum per obscurius.
Ad astra per alas porci.
Quidquid latine dictum sit, altum videtur .
|
|
|
|
|
I did that last year, woke up in a ditch! so wear something waterproof
|
|
|
|
|
I shall use the Shield of Immortality that alcohol provides and trust to a fair wind and the Bibulous Gods of Perpetual Overconsumption.
---------------------------------
Obscurum per obscurius.
Ad astra per alas porci.
Quidquid latine dictum sit, altum videtur .
|
|
|
|
|
Why don't you try that magic pill against hangover, which was pasted here in the Lounge few days ago ?
Microsoft ... the only place where VARIANT_TRUE != true
|
|
|
|
|
Alas it is not yet available in shops or grog emporia.
---------------------------------
Obscurum per obscurius.
Ad astra per alas porci.
Quidquid latine dictum sit, altum videtur .
|
|
|
|
|
A.K.A The Beer Jacket?
He who makes a beast out of himself gets rid of the pain of being a man.
|
|
|
|
|
Mmm, my experience of the "Shield of Immortality that alcohol" leads to waking up the following afternoon thinking "When did I eat that...","oh that's an intestine" combined with "who detonated a bomb under my head" so expecting you to be out of action on Monday. Have fun are you taking the Jagggguar, that's a good Camara car.
|
|
|
|
|
Oh yes, pulling up in a Jaaag, wearing a Tweed Jacket, a doeskin wisket, a silver pocket watch and a silk cravat!
Brown Oxfords and Ruby Cords are de rigueur.
I shall be bringing my pipe and of course my Movember is coming on a treat!
---------------------------------
Obscurum per obscurius.
Ad astra per alas porci.
Quidquid latine dictum sit, altum videtur .
|
|
|
|
|
Good, Good, Standards dear boy, standards
|
|
|
|