10 Reasons Why Visual Basic is Better Than C#

  • (2 Pages)
  • +
  • 1
  • 2

23 Replies - 15710 Views - Last Post: 25 June 2013 - 09:08 PM Rate Topic: -----

#1 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3369
  • View blog
  • Posts: 11,410
  • Joined: 12-December 12

10 Reasons Why Visual Basic is Better Than C#

Posted 11 January 2013 - 03:49 PM

http://www.simple-ta...-better-than-c/

I apologise if this has been linked before, but I found it very interesting.

As an example, I recently prepared the same samples in both C# and VB.Net for automating Word. VB was painless but C# wouldn't let me set simple arguments to false (or even cast them) and gave warnings about ambiguous Quit/Application. However, I appreciate that Office is much more closely tied to VB than C#.

Is This A Good Question/Topic? 1
  • +

Replies To: 10 Reasons Why Visual Basic is Better Than C#

#2 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3718
  • View blog
  • Posts: 5,988
  • Joined: 08-June 10

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 11 January 2013 - 04:38 PM

Honestly, those reasons seem very thin. It's mostly just personal dislikes for syntax differences, and a couple of differently set up VS2010 UIs.

This doesn't even come close to being reason enough to switch between the languages. I've used both myself, and I'd much much rather use C# than VB. I prefer the case-sensitivity, and I'd much rather use IF/ELSE than SWITCH for anything require expressions as the conditions. I also much prefer the syntax of C#. (Even the semi-colons!) - It's all personal :)
Was This Post Helpful? 1
  • +
  • -

#3 tlhIn`toq  Icon User is offline

  • Please show what you have already tried when asking a question.
  • member icon

Reputation: 5481
  • View blog
  • Posts: 11,762
  • Joined: 02-June 10

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 11 January 2013 - 04:55 PM

Personally I find the guy's list a joke

1 - Case sensitivity is madness in his words.  
3 - Attaching an event handler to a button
    He goes the LONG way around.  All you have to do is 
    double-click the button in designer and VS
    stubs it all in for you.
4 - && and || are stupid symbols.  Well, the rest of the
    C world uses them.  Its how you differentiate 
    && comparing two items from
    &  bitwise comparrison on two items.
5 - Autocorrection works in VB.  Oh.  VB doesn't have 
    autocorrection.  That's auto-completion of snippets.
    if you want that same autocompleted property snippet
    type  prop {tab}
6 - Missing functions.  There are equivilents.  He just
    doesn't know them.
7 - "That wretched semi-colon."  Whiny bioch.
8 - "The order of words in a C# variable declaration is wrong"
    Get over it dude.  If everything were identical it 
    wouldn't be a different language.
    Seems to me in his two examples the C# is shorter and clearer
    so I would have thought him to like it.


Personally I think he sounds whiny and like he's just looking for an excuse as to why he couldn't pick up the language. He shows how bad his memory is that he can't remember the case of variables that he created (keep in mind that Intellisense will prompt as you type) or that the and symbol & is for and.

This post has been edited by tlhIn`toq: 11 January 2013 - 04:56 PM

Was This Post Helpful? 1
  • +
  • -

#4 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon

Reputation: 5801
  • View blog
  • Posts: 12,639
  • Joined: 16-October 07

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 11 January 2013 - 05:17 PM

Short version: I like VB syntax better than others.

Amusingly, I'd take many of his various reasons for VB fanboiness and call them reasons to prefer C#.
Was This Post Helpful? 1
  • +
  • -

#5 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3369
  • View blog
  • Posts: 11,410
  • Joined: 12-December 12

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 11 January 2013 - 05:45 PM

I'm guessing people at DIC aren't fans of VB generally :baaa:
Was This Post Helpful? 1
  • +
  • -

#6 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3718
  • View blog
  • Posts: 5,988
  • Joined: 08-June 10

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 11 January 2013 - 07:07 PM

I doubt many here have anything against VB. However, listing 10 inconsequential points about any language in an effort to demonstrate how superior it is to another language isn't likely to endear it to anybody :)
Was This Post Helpful? 0
  • +
  • -

#7 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon

Reputation: 5801
  • View blog
  • Posts: 12,639
  • Joined: 16-October 07

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 11 January 2013 - 07:10 PM

Dunno, VB.NET seems popular enough here. And reasonably popular in general.

Rather, the tired assertion of "my language be gooder den yer language" is laughable. I would mock a C# is better than VB.NET editorial for the same reason. Languages are languages. None are perfect. Some do some things better than others.

In .NET, the languages are all roughly equal, in that they leverage the .NET framework and produce programs that run in that environment. This leaves you with bashing syntax, a purely subjective exercise.
Was This Post Helpful? 2
  • +
  • -

#8 lucky3  Icon User is offline

  • Friend lucky3 As IHelpable
  • member icon

Reputation: 231
  • View blog
  • Posts: 765
  • Joined: 19-October 11

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 12 January 2013 - 12:57 AM

I've read that same article about a month or two ago, and went through majority of comments. It's all .NET at the end of the day. I prefer VB syntax, I like faster IntelliSense in it, local inference (in C# var brought something similar at the table), XML literals ... There's nothing I can't achieve in VB.NET, I wouldn't be able to in C# and vice-versa. On the other hand I believe being an expert in C#, would increase ones odds to land a job significantly. It's a personal preference and choice, and luckily, we are not bound to learn and master only one programming language. Convincing one to switch from C# to VB.NET or the other way around, telling one is better than the other, just doesn't make sense to me.
Was This Post Helpful? 1
  • +
  • -

#9 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3369
  • View blog
  • Posts: 11,410
  • Joined: 12-December 12

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 12 January 2013 - 03:54 AM

An equable voice!

I like both :) but the verbosity of C# niggles me. I really like Boo but it doesn't seem well supported, unfortunately.
Was This Post Helpful? 0
  • +
  • -

#10 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon

Reputation: 5801
  • View blog
  • Posts: 12,639
  • Joined: 16-October 07

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 12 January 2013 - 04:37 AM

View Postandrewsw, on 12 January 2013 - 05:54 AM, said:

the verbosity of C# niggles me


?!? When .NET first came out, we had a choice of going VB or C#. One of the reasons we chose C# is it's relative lack of verbosity. Look at Microsoft's examples side by side, the C# is usually more compact.

Other reasons included:

Case sensitivity (article #1): early on, the framework was case sensitive but VB wasn't and it led to minor quirks. As well as the other arguments for the general usefulness of this feature.

Events (article #3): VS UI didn't have any real Event support for VB at the beginning.

Strictness (article #9): for production code, we want all the compile time checks we can get.

Legacy VB6: Many chose VB.NET because of their familiarity with VB6. Most compatibilty bewteen the two a lie. The languages share some syntax, be really not enough. It's actually more confusing banging your head against prior expectations than just starting fresh with a new language.

It's interesting how much Microsoft has embraced VB.NET over time. It really started out as a second class citizen.
Was This Post Helpful? 0
  • +
  • -

#11 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3369
  • View blog
  • Posts: 11,410
  • Joined: 12-December 12

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 12 January 2013 - 04:51 AM

In terms of verbosity it's really mainly the declarations:

'VB.Net
Dim a() As Long = {3, 4, 5}
// C#
int[] x = new int[3] {3, 4, 5};


I know this is showing C-inheritance but most would/should agree that the first is much clearer.

slightly dated comparison

This post has been edited by andrewsw: 12 January 2013 - 04:52 AM

Was This Post Helpful? 0
  • +
  • -

#12 Ryano121  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 1362
  • Posts: 3,002
  • Joined: 30-January 11

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 12 January 2013 - 04:57 AM

You can do the same in C#

int[] x = {1, 2, 3};

Was This Post Helpful? 1
  • +
  • -

#13 andrewsw  Icon User is online

  • Fire giant boob nipple gun!
  • member icon

Reputation: 3369
  • View blog
  • Posts: 11,410
  • Joined: 12-December 12

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 12 January 2013 - 05:08 AM

View PostRyano121, on 12 January 2013 - 04:57 AM, said:

You can do the same in C#

int[] x = {1, 2, 3};


I should have chosen a different example :). Although this is still not as easy to read.
Was This Post Helpful? 0
  • +
  • -

#14 Atli  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 3718
  • View blog
  • Posts: 5,988
  • Joined: 08-June 10

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 12 January 2013 - 06:02 AM

Easier for who? Non-programmers? Students in their first programming class?

Pretty much all programmers with any experience at all, even if they prefer VB syntax, already know the C# variable declaration, as it's used in so many popular languages. And even if they don't; even if this is the first line of C-like code they're seeing in their career, it'll take them about two seconds to figure it out, and then they're right there with the rest of us.

The only real difference is that the core C-like syntax is more concise.

type name = value

Def name As type = value

The VB syntax basically just includes unneeded clutter that servers no actual purpose.

Trying to play the VB syntax of as more easily readable because it better resembles what you'd expect from a normal English phrase is nonsense.
Was This Post Helpful? 0
  • +
  • -

#15 baavgai  Icon User is offline

  • Dreaming Coder
  • member icon

Reputation: 5801
  • View blog
  • Posts: 12,639
  • Joined: 16-October 07

Re: 10 Reasons Why Visual Basic is Better Than C#

Posted 12 January 2013 - 06:02 AM

Quite. It's shorter and easier. :P/>

Ironically, in linked comparison, most verbiage is shorter in C#.

Things like MustOverride vs abstract tick me off. In every OO source you pick up, abstract is understood. It's like VB.NET assumed its users are idiots and went from there. Microsoft has never, ever, had a high opinion of the VB user and it shows.

This post has been edited by baavgai: 12 January 2013 - 06:03 AM

Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2