7 Replies - 1513 Views - Last Post: 12 November 2009 - 04:44 PM Rate Topic: -----

#1 AmuletOfNight   User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 153
  • Joined: 23-July 09

I want to make a switch?

Posted 11 November 2009 - 08:13 PM

VB.NET is good for me, because it is simple and its not complicated and you don't need to be so strict with syntax. I want to switch to C# but I just don't feel up to it because of the syntax and C# being so strict. What are some good reasons to switch to C# and what will make the transition easier?
Is This A Good Question/Topic? 0
  • +

Replies To: I want to make a switch?

#2 jcremeans11   User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 250
  • Joined: 04-October 09

Re: I want to make a switch?

Posted 11 November 2009 - 08:16 PM

Why switch? C# and VB.net are nearly the same type of language, why don't you learn something different like C++ (unless you already know that)
Was This Post Helpful? 0
  • +
  • -

#3 AmuletOfNight   User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 153
  • Joined: 23-July 09

Re: I want to make a switch?

Posted 11 November 2009 - 08:24 PM

C++ makes my brain hurt to be honest...


#include <iostream>

int main()
{
   using namespace std;
   cout << "Hello world!" << endl;
   return 0;
}



I mean really?! I don't understand whats going on!
Was This Post Helpful? 0
  • +
  • -

#4 jcremeans11   User is offline

  • D.I.C Regular

Reputation: 26
  • View blog
  • Posts: 250
  • Joined: 04-October 09

Re: I want to make a switch?

Posted 11 November 2009 - 08:26 PM

Yeah I understand, VB.net makes programming so much easier, but have you thought about going into web development? I like just started html and it is seriously the easiest programming I have ever done.
Was This Post Helpful? 0
  • +
  • -

#5 mark.bottomley   User is offline

  • D.I.C Addict
  • member icon

Reputation: 176
  • View blog
  • Posts: 990
  • Joined: 22-April 09

Re: I want to make a switch?

Posted 11 November 2009 - 09:53 PM

So crank up the restrictions on VB - use Option Strict, Option Explicit, etc. That will tighten up your coding. AmuletOfNight - C# is not the same as C++ (not really that close even).
Was This Post Helpful? 0
  • +
  • -

#6 motcom   User is offline

  • D.I.C Lover
  • member icon

Reputation: 293
  • View blog
  • Posts: 1,371
  • Joined: 16-June 08

Re: I want to make a switch?

Posted 12 November 2009 - 02:45 AM

Hi,

What is the difference? C# or Vb.Net? Answer: Syntax.

Basically they all use the Dotnet Framework. So if you are comfortable with Vb.Net, stay with it, if you are up to a challange change to C#.

BTW

Quote

you don't need to be so strict with syntax.


Every programming language is strict about that (syntax).

Try using this code in vb.net and see what happens...

#include <iostream>

int main()
{
   using namespace std;
   cout << "Hello world!" << endl;
   return 0;
}



Was This Post Helpful? 0
  • +
  • -

#7 AmuletOfNight   User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 153
  • Joined: 23-July 09

Re: I want to make a switch?

Posted 12 November 2009 - 02:07 PM

View Postmotcom, on 12 Nov, 2009 - 01:45 AM, said:

Hi,

What is the difference? C# or Vb.Net? Answer: Syntax.

Basically they all use the Dotnet Framework. So if you are comfortable with Vb.Net, stay with it, if you are up to a challange change to C#.

BTW

Quote

you don't need to be so strict with syntax.


Every programming language is strict about that (syntax).

Try using this code in vb.net and see what happens...

#include <iostream>

int main()
{
   using namespace std;
   cout << "Hello world!" << endl;
   return 0;
}



I don't need to try it to tell you that it will give you errors
Was This Post Helpful? 0
  • +
  • -

#8 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7501
  • View blog
  • Posts: 15,545
  • Joined: 16-October 07

Re: I want to make a switch?

Posted 12 November 2009 - 04:44 PM

Excellent. The first step to recovery is admitting you have a problem. ;) It's really all about syntax. The main part of the learning curve, the multitude of libraries in the .NET framework, you'll already know if you're familiar with VB.NET.

VB syntax is unique to VB. This could be a sign. C# syntax is mirrored in all those who've copied the C curly brace vision. It's closest to Java, to the point you can often lift trivial code verbatim from one to the other.

Years ago with .NET 1.0 arrived, we considered both VB.NET and C#. We opted for C#. The syntax is clearer. The framework itself is most written in C# where managed code is used. While VB.NET is case insensitive, the framework isn't and early on quirky namespace collision was possible. VB intensionally hides some OO elements from the user, where C# emphasizes them. Events, delegates, unmanaged interfaces, class methods and variables are all easier to deal with in C#.

This is the only forum I don't normally post to; VB syntax is that painful. *dons asbestos jumpsuit*
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1