3 Replies - 1125 Views - Last Post: 15 April 2012 - 10:02 AM Rate Topic: -----

#1 Braber01  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 243
  • Joined: 29-November 08

The Problem when you know Both VB.Net AND C#

Posted 12 April 2012 - 08:01 PM

You'll end up Writing VB code like this
Dim myInt[] As Integer 'Note I acually did not make this mistake but It's one I'm likely to make in the future
Dim myString As String; 'I use this semicolon all the time in VB which is Bad (VB needs to make use of the semi colon)



and just today I tried to write some C# like this
//Some code here
int i;
char x; 'oops this is a VB comment



Has anybody else make these kind of mistakes?

Is This A Good Question/Topic? 0
  • +

Replies To: The Problem when you know Both VB.Net AND C#

#2 DimitriV  Icon User is online

  • >not activating your almonds
  • member icon

Reputation: 560
  • View blog
  • Posts: 2,669
  • Joined: 24-July 11

Re: The Problem when you know Both VB.Net AND C#

Posted 12 April 2012 - 08:03 PM

Yes. I was helping an OP in C# and referring to indices in a ListBox like this:
ListBox1.Items.Item(353)
'instead of
ListBox1.Items.Item[353];


Gotta watch those mistakes - they're the real killer for me.
Was This Post Helpful? 0
  • +
  • -

#3 TheITNinja  Icon User is offline

  • New D.I.C Head

Reputation: 14
  • View blog
  • Posts: 43
  • Joined: 14-April 12

Re: The Problem when you know Both VB.Net AND C#

Posted 14 April 2012 - 03:56 PM

Yes! so true, the pain us polygot programmers have to go through!

On modern web stacks, you literally have to master a few handful of languages. Context switching starts becoming second nature.

I like it when I'm putting ";" then realising I'm in VB land. Other times, I'll be putting indents and realise its not python etc..!
Was This Post Helpful? 1
  • +
  • -

#4 Braber01  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 243
  • Joined: 29-November 08

Re: The Problem when you know Both VB.Net AND C#

Posted 15 April 2012 - 10:02 AM

The ITNinja If you Like Python Check out Boo.Net it's a Python like Language for the .NET frame work :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1