473,388 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

C++ or VB? Thanks.

Hello,

i am working in ASP.Net / VB web sites. However i need to take a
decision so i can buy some books and start studing some subjects.

For Web: C++.net or VB.net?
For Aplications: C++ or VB?

What are the positive and negative things about each one?
What should i choose?

I was looking at Visual page in Microsoft web site but it is difficult
to me to make a choice.

Thank You,
Miguel

Nov 18 '05 #1
13 1072
C++ is great for low level hardware interaction & such.

VB.NET is for rapid application development, great for database applications
& such.
C# is sort of in between, but basically it's overall capabilities are
identical to VB.NET.
For web applications you should choose C# or VB.NET, it really doesn't
matter which one. Different people have different preferences, but if
someone tells you one is way better than the other be very skeptical because
they are not well informed.

The basic rule of thumb is that if you have experience with C or Java then
C# will be easier for you to learn.
If you have experience with classic VB (VB6, VBA, VBScript) then VB.NET is
the more natural way to go.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Miguel Dias Moura" <we****@27lamps.com> wrote in message
news:uQ****************@TK2MSFTNGP09.phx.gbl...
Hello,

i am working in ASP.Net / VB web sites. However i need to take a decision
so i can buy some books and start studing some subjects.

For Web: C++.net or VB.net?
For Aplications: C++ or VB?

What are the positive and negative things about each one?
What should i choose?

I was looking at Visual page in Microsoft web site but it is difficult to
me to make a choice.

Thank You,
Miguel

Nov 18 '05 #2
C# would definitely better for a C++ guy.
The syntax is just less weird, more comfortable (than VB).
However I think you could use C++ for ASP.NET without trouble if you're
already comfortable with it.

"Miguel Dias Moura" <we****@27lamps.com> wrote in message
news:uQ****************@TK2MSFTNGP09.phx.gbl...
Hello,

i am working in ASP.Net / VB web sites. However i need to take a decision
so i can buy some books and start studing some subjects.

For Web: C++.net or VB.net?
For Aplications: C++ or VB?

What are the positive and negative things about each one?
What should i choose?

I was looking at Visual page in Microsoft web site but it is difficult to
me to make a choice.

Thank You,
Miguel

Nov 18 '05 #3
writing C# you'll not need to write as many, end if, end function end etc..
;-)

cheers,
mortb

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
C# would definitely better for a C++ guy.
The syntax is just less weird, more comfortable (than VB).
However I think you could use C++ for ASP.NET without trouble if you're
already comfortable with it.

"Miguel Dias Moura" <we****@27lamps.com> wrote in message
news:uQ****************@TK2MSFTNGP09.phx.gbl...
Hello,

i am working in ASP.Net / VB web sites. However i need to take a decision
so i can buy some books and start studing some subjects.

For Web: C++.net or VB.net?
For Aplications: C++ or VB?

What are the positive and negative things about each one?
What should i choose?

I was looking at Visual page in Microsoft web site but it is difficult to
me to make a choice.

Thank You,
Miguel


Nov 18 '05 #4
Right, you just use curly braces which are not as self documenting, and
therefore they are (in my opinion) inferior.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"mortb" <mortb1<noospam<@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
writing C# you'll not need to write as many, end if, end function end
etc.. ;-)

cheers,
mortb

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
C# would definitely better for a C++ guy.
The syntax is just less weird, more comfortable (than VB).
However I think you could use C++ for ASP.NET without trouble if you're
already comfortable with it.

"Miguel Dias Moura" <we****@27lamps.com> wrote in message
news:uQ****************@TK2MSFTNGP09.phx.gbl...
Hello,

i am working in ASP.Net / VB web sites. However i need to take a
decision so i can buy some books and start studing some subjects.

For Web: C++.net or VB.net?
For Aplications: C++ or VB?

What are the positive and negative things about each one?
What should i choose?

I was looking at Visual page in Microsoft web site but it is difficult
to me to make a choice.

Thank You,
Miguel



Nov 18 '05 #5
if we are at this school field fight I think...
once you're use to it curly brace are as much self documenting (even more ,
you don't have to read all this text to understand it's just an 'end')

anyway curly brace are only 1 char (intead of lengthy Begin/End) therefore
your productivity is increased as you say more with less :)

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Right, you just use curly braces which are not as self documenting, and
therefore they are (in my opinion) inferior.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"mortb" <mortb1<noospam<@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
writing C# you'll not need to write as many, end if, end function end
etc.. ;-)

cheers,
mortb

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
C# would definitely better for a C++ guy.
The syntax is just less weird, more comfortable (than VB).
However I think you could use C++ for ASP.NET without trouble if you're
already comfortable with it.

"Miguel Dias Moura" <we****@27lamps.com> wrote in message
news:uQ****************@TK2MSFTNGP09.phx.gbl...
Hello,

i am working in ASP.Net / VB web sites. However i need to take a
decision so i can buy some books and start studing some subjects.

For Web: C++.net or VB.net?
For Aplications: C++ or VB?

What are the positive and negative things about each one?
What should i choose?

I was looking at Visual page in Microsoft web site but it is difficult
to me to make a choice.

Thank You,
Miguel



Nov 18 '05 #6
I understand the curly brace involves less typing, but any good developer is
a very fast typist, plus there is intellisense which does most of the typing
for you, so I don't think that argument holds much water.
Sure a curly brace means "end" but it's the end of what? That can be quite
difficult to figure out when you have several code blocks nested inside
eachother. I find that to be very annoying and unproductive.
You have no such problems in VB.NET

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:OZ*************@TK2MSFTNGP12.phx.gbl...
if we are at this school field fight I think...
once you're use to it curly brace are as much self documenting (even more
, you don't have to read all this text to understand it's just an 'end')

anyway curly brace are only 1 char (intead of lengthy Begin/End) therefore
your productivity is increased as you say more with less :)

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Right, you just use curly braces which are not as self documenting, and
therefore they are (in my opinion) inferior.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"mortb" <mortb1<noospam<@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
writing C# you'll not need to write as many, end if, end function end
etc.. ;-)

cheers,
mortb

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
C# would definitely better for a C++ guy.
The syntax is just less weird, more comfortable (than VB).
However I think you could use C++ for ASP.NET without trouble if you're
already comfortable with it.

"Miguel Dias Moura" <we****@27lamps.com> wrote in message
news:uQ****************@TK2MSFTNGP09.phx.gbl...
> Hello,
>
> i am working in ASP.Net / VB web sites. However i need to take a
> decision so i can buy some books and start studing some subjects.
>
> For Web: C++.net or VB.net?
> For Aplications: C++ or VB?
>
> What are the positive and negative things about each one?
> What should i choose?
>
> I was looking at Visual page in Microsoft web site but it is difficult
> to me to make a choice.
>
> Thank You,
> Miguel
>



Nov 18 '05 #7
I don't know for VB developer, but there is a convention with C/C++/Java/C#
developer to use indentation along with {}
which makes very clear the different level of nesting of code.
on top of that most IDE build this indentation automatically for you :)

maybe the C# code you read was written by someone who didn't know about
that, perhaps?

something like that:

public static Hashtable Read(string file)
{
if(!File.Exists(file))
return null;
try {
using(FileStream fs = new FileStream(file, FileMode.Open))
using(StreamReader sr = new StreamReader(fs))
return Read(sr);
}
catch { return new Hashtable(); }
}

isn't that lean and mean?

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
I understand the curly brace involves less typing, but any good developer
is a very fast typist, plus there is intellisense which does most of the
typing for you, so I don't think that argument holds much water.
Sure a curly brace means "end" but it's the end of what? That can be
quite difficult to figure out when you have several code blocks nested
inside eachother. I find that to be very annoying and unproductive.
You have no such problems in VB.NET

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:OZ*************@TK2MSFTNGP12.phx.gbl...
if we are at this school field fight I think...
once you're use to it curly brace are as much self documenting (even more
, you don't have to read all this text to understand it's just an 'end')

anyway curly brace are only 1 char (intead of lengthy Begin/End)
therefore your productivity is increased as you say more with less :)

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Right, you just use curly braces which are not as self documenting, and
therefore they are (in my opinion) inferior.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"mortb" <mortb1<noospam<@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
writing C# you'll not need to write as many, end if, end function end
etc.. ;-)

cheers,
mortb

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:uh**************@tk2msftngp13.phx.gbl...
> C# would definitely better for a C++ guy.
> The syntax is just less weird, more comfortable (than VB).
> However I think you could use C++ for ASP.NET without trouble if
> you're already comfortable with it.
>
> "Miguel Dias Moura" <we****@27lamps.com> wrote in message
> news:uQ****************@TK2MSFTNGP09.phx.gbl...
>> Hello,
>>
>> i am working in ASP.Net / VB web sites. However i need to take a
>> decision so i can buy some books and start studing some subjects.
>>
>> For Web: C++.net or VB.net?
>> For Aplications: C++ or VB?
>>
>> What are the positive and negative things about each one?
>> What should i choose?
>>
>> I was looking at Visual page in Microsoft web site but it is
>> difficult to me to make a choice.
>>
>> Thank You,
>> Miguel
>>
>
>



Nov 18 '05 #8
I disagree. It doesn't make it very clear.
Is this clear to you?
}
}
}
}
No, you'd have to scroll way up to the beginning to see what code blocks
started all this. Sometimes that's off screen.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

Nov 18 '05 #9
;) ?
isn't it the same in VB?
how come all VB function are always less than 1 screen long?
could you show me an example, I don't get it....

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...
I disagree. It doesn't make it very clear.
Is this clear to you?
}
}
}
}
No, you'd have to scroll way up to the beginning to see what code blocks
started all this. Sometimes that's off screen.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

Nov 18 '05 #10
BTW it's clear to me.
at last I don't undesrtand what's supposedly unclear

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...
I disagree. It doesn't make it very clear.
Is this clear to you?
}
}
}
}
No, you'd have to scroll way up to the beginning to see what code blocks
started all this. Sometimes that's off screen.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

Nov 18 '05 #11
My point is that with VB.NET it would look more like this:

End If
End With
Next
End Sub

That is much more self documenting. It is quite clear what code blocks
those are closing without having to scroll or look anywhere else.
You just don't get that with C#.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:ek**************@TK2MSFTNGP14.phx.gbl...
BTW it's clear to me.
at last I don't undesrtand what's supposedly unclear

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...
I disagree. It doesn't make it very clear.
Is this clear to you?
}
}
}
}
No, you'd have to scroll way up to the beginning to see what code blocks
started all this. Sometimes that's off screen.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net


Nov 18 '05 #12
Okay, guys, you say "tomato," I say "potato." I think we can all agree that
we're talking about apples here.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:#R*************@TK2MSFTNGP11.phx.gbl...
My point is that with VB.NET it would look more like this:

End If
End With
Next
End Sub

That is much more self documenting. It is quite clear what code blocks
those are closing without having to scroll or look anywhere else.
You just don't get that with C#.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:ek**************@TK2MSFTNGP14.phx.gbl...
BTW it's clear to me.
at last I don't undesrtand what's supposedly unclear

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:e5**************@TK2MSFTNGP09.phx.gbl...
I disagree. It doesn't make it very clear.
Is this clear to you?
}
}
}
}
No, you'd have to scroll way up to the beginning to see what code blocks started all this. Sometimes that's off screen.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net



Nov 18 '05 #13
Hey guy, why are you talking about Steve Jobs here?
hehehe ;)

"Kevin Spencer" <ks******@takempis.com> wrote in message
news:ug**************@TK2MSFTNGP09.phx.gbl...
Okay, guys, you say "tomato," I say "potato." I think we can all agree
that
we're talking about apples here.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
news:#R*************@TK2MSFTNGP11.phx.gbl...
My point is that with VB.NET it would look more like this:

End If
End With
Next
End Sub

That is much more self documenting. It is quite clear what code blocks
those are closing without having to scroll or look anywhere else.
You just don't get that with C#.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net

"Lloyd Dupont" <ld@NewsAccount.galador.net> wrote in message
news:ek**************@TK2MSFTNGP14.phx.gbl...
> BTW it's clear to me.
> at last I don't undesrtand what's supposedly unclear
>
> "Steve C. Orr [MVP, MCSD]" <St***@Orr.net> wrote in message
> news:e5**************@TK2MSFTNGP09.phx.gbl...
>>I disagree. It doesn't make it very clear.
>> Is this clear to you?
>> }
>> }
>> }
>> }
>>
>>
>> No, you'd have to scroll way up to the beginning to see what code blocks >> started all this. Sometimes that's off screen.
>>
>> --
>> I hope this helps,
>> Steve C. Orr, MCSD, MVP
>> http://Steve.Orr.net
>>
>>
>>
>
>



Nov 18 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Rasmus | last post by:
Hi. As partly novice in python I would like a piece of advise of how to implement (binary) trees the best way? Thanks in advance, Rasmus PS: Due to heavy spam reception (20.000+/week), I...
17
by: Newbie | last post by:
Dear friends, I am having a hard time understanding how to use a SELECT CASE in ASP. I have used it in VB but never in ASP scripting. Scenerio: I have 2 textboxes on a form that I have to...
10
by: David | last post by:
Does anyone know where I can find example code for VB.NET that I can use to create an application that attaches and detaches databases to MSDE using osql scipts. (I think SQL-DMO is typically...
4
by: rong.guo | last post by:
Hello, The population of my analysis is customers that have product1. And I am trying to get the % of them that also have product2, the % of them that also have product3, etc. Now I am doing it...
6
by: Arsene Lupin | last post by:
Is there a way to have Microsoft Access XP automatically display all table views, etc., in a maximized screen when Access is started? It is extremely time consuming to have to maximize the viewing...
9
by: J Bunton | last post by:
My Access 97 applictions seem to have recently become very Cpu useage hungry. When opened they go to almost 100% useage on the peformance monitor. After several seconds this returns to near...
4
by: Shapper | last post by:
Hello, I have a label as follows: <label id="lName" for="name">Name:<input type="text" id="name"></input></label> I need to declare the label in my page.aspx.vb so I can access it on page...
4
by: davidw | last post by:
For example, I have a virtual directory - "wfile", I would like user access http://mysite/wfile, but I want to handle it with my own code instead of turn on "Directory Browsing", how can I capture...
5
by: eBob.com | last post by:
I am trying to change some Structures to Classes. The Classes now look like this ... Public Class OneAttr Public AttrName As String Public Column As String Public Caption As String End Class...
6
by: Charles Sullivan | last post by:
I define and initialize an array of structures like the following, (where the <verbiage within angle bracketsis just meant to be explanatory): int func1(<argument prototypes>); int...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.