Well folks its looking like a strong possiblity that Im finally leaving the network administration world and getting into programming full time. Its going to be VB based web programing...as some of you know who have been here a while, Im an advid C# guy...jumped ship from VB6.
A few things:
Ive noticed several posts from people who use CType, CString, CInt, etc... this is bad coding right because its VB6, I should be using Convert.ToInt32, Convert.ToString (or object.ToString()), Convert.ToWhatever, right? How about boxing (might have my terms wrong):
int i = (int) someObject;
Is that going to be:
Dim i as Integer = (Integer) someObject
or do I have that wrong, how would you do it? What are some other things I need to watch out (that might surface from my old VB6 days that are degraded in VB.NET) such as On Error GoTo I also know is a no-no, and other syntax differances / short-cuts that may not be well publicized? Im studying hard, but other peoples experiance can help a lot, at least I know .NET at an proficient level in C#, and know VB6 basic syntax. Are there any ASP.NET differances I should be aware of (like Page Attributes)...dont think there should be.
Also Im going from an environment of be the sole programmer as a second hat doing a lot of adhoc tools and things at my own pace and my own time, or working from home on side-work, to a full time contract. What kind of enviroment can I expect, in otherwords I am going to be expected to come up with 6000 lines of code a day? Do they understand that some things need to be researched? Will they cut me some slack since Im switching languages and though experianced, professionally a newbie? Do they usually have the DAL (DAC) already set up so all you have to do is bring it in your code and start going?
To be honest Im excited and terrified. Ive longed to program full time, but I was always hoping for C#, but programing is programing, and .NET is great because its just a matter of syntax differances and a few key items (operator overloading, continue/break keywords). So initially there will be a learning curve while I break my C# syntax habbits and remember everything has an End to it instead of opening and closing braces... speaking of:
C# you can:
if(i<10)
i++;
instead of:
if(i<100)
{
i++;
}
can I short-cut the below to save space as I can C#?
If i < 10 Then
i += 1
End If
Thanks everyone for help / comments
A few things:
Ive noticed several posts from people who use CType, CString, CInt, etc... this is bad coding right because its VB6, I should be using Convert.ToInt32, Convert.ToString (or object.ToString()), Convert.ToWhatever, right? How about boxing (might have my terms wrong):
int i = (int) someObject;
Is that going to be:
Dim i as Integer = (Integer) someObject
or do I have that wrong, how would you do it? What are some other things I need to watch out (that might surface from my old VB6 days that are degraded in VB.NET) such as On Error GoTo I also know is a no-no, and other syntax differances / short-cuts that may not be well publicized? Im studying hard, but other peoples experiance can help a lot, at least I know .NET at an proficient level in C#, and know VB6 basic syntax. Are there any ASP.NET differances I should be aware of (like Page Attributes)...dont think there should be.
Also Im going from an environment of be the sole programmer as a second hat doing a lot of adhoc tools and things at my own pace and my own time, or working from home on side-work, to a full time contract. What kind of enviroment can I expect, in otherwords I am going to be expected to come up with 6000 lines of code a day? Do they understand that some things need to be researched? Will they cut me some slack since Im switching languages and though experianced, professionally a newbie? Do they usually have the DAL (DAC) already set up so all you have to do is bring it in your code and start going?
To be honest Im excited and terrified. Ive longed to program full time, but I was always hoping for C#, but programing is programing, and .NET is great because its just a matter of syntax differances and a few key items (operator overloading, continue/break keywords). So initially there will be a learning curve while I break my C# syntax habbits and remember everything has an End to it instead of opening and closing braces... speaking of:
C# you can:
if(i<10)
i++;
instead of:
if(i<100)
{
i++;
}
can I short-cut the below to save space as I can C#?
If i < 10 Then
i += 1
End If
Thanks everyone for help / comments