473,406 Members | 2,371 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,406 software developers and data experts.

New at .Net/C#

My programming experience is limited to some vbscript and WinBatch.

Where to start on learning C#? Do I need to work on .Net first?

TIA,

Lang
Jun 21 '07 #1
8 1149
You would benefit from becoming clear on your objectives. If you just want
to write little more than scripts, then any intro level book will do. Given
such a lowly objective, you would then find everything way too difficult,
unintuitive, and gripe [at least to yourself] about how .NET is too hard
("because xyz was so much easier with WinBatch"). But if you want to become
a more serious programmer, then you will benefit from learning
object-oriented programming concepts, principles, and best practices - how
..NET utilizes and promotes such concepts, and finaly how you can use C# to
implement those principles and best practices in your applications.

-HTH

"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:A2**********************************@microsof t.com...
My programming experience is limited to some vbscript and WinBatch.

Where to start on learning C#? Do I need to work on .Net first?

TIA,

Lang

Jun 21 '07 #2
Bob,

Thanks for the response. To be honest, I'm not clear what my objectives
are... I write utility type programs in WB; small apps that don't require the
level of depth one can achieve with C#. And... our management is pushing us
to move to C#. I don't believe they appreciate the difference between WB and
C#.

That said, even for "simple" stuff in C#, I think one would stand a better
chance of comprehending what's going on if one starts "from the beginning."
So... I'm trying to ascertain if the beginning is .Net or not...

Thanks,

Lang

"Bob Johnson" wrote:
You would benefit from becoming clear on your objectives. If you just want
to write little more than scripts, then any intro level book will do. Given
such a lowly objective, you would then find everything way too difficult,
unintuitive, and gripe [at least to yourself] about how .NET is too hard
("because xyz was so much easier with WinBatch"). But if you want to become
a more serious programmer, then you will benefit from learning
object-oriented programming concepts, principles, and best practices - how
..NET utilizes and promotes such concepts, and finaly how you can use C# to
implement those principles and best practices in your applications.

-HTH

"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:A2**********************************@microsof t.com...
My programming experience is limited to some vbscript and WinBatch.

Where to start on learning C#? Do I need to work on .Net first?

TIA,

Lang


Jun 21 '07 #3
IMO, "the beginning" is to grasp what the .NET framework is and how to
leverage it's massive base class library. The particular language has
practically nothing to do with the power of .NET. So those who think that a
C# program or programmer is somehow superior to a VB.NET program or
programmer are likely very naive.

You can certainly write utility programs in .net - just be prepared for a
steeper learning curve than you had with VBScript. Once you're familiar with
the new way of doing things I think you'll like it. There's practically
nothing you can't do.

You will still most certainly wonder why it takes more code in C# than in
VBScript to accomplish certain tasks, like file I/O - but that's just the
way it is.

Apparently the transition to VB.NET is supposed to be easier for those with
a VB background - so you might want to question your management on the move
to C# and get them to approve you to learn VB.NET. The capabilities are
practically identical with VB.NET - but VB.NET has a more familiar syntax
for you - so you'd get up to speed more quickly. VB.NET also offers more
"training wheels".

-FWIW

"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
Bob,

Thanks for the response. To be honest, I'm not clear what my objectives
are... I write utility type programs in WB; small apps that don't require
the
level of depth one can achieve with C#. And... our management is pushing
us
to move to C#. I don't believe they appreciate the difference between WB
and
C#.

That said, even for "simple" stuff in C#, I think one would stand a better
chance of comprehending what's going on if one starts "from the
beginning."
So... I'm trying to ascertain if the beginning is .Net or not...

Thanks,

Lang

"Bob Johnson" wrote:
>You would benefit from becoming clear on your objectives. If you just
want
to write little more than scripts, then any intro level book will do.
Given
such a lowly objective, you would then find everything way too difficult,
unintuitive, and gripe [at least to yourself] about how .NET is too hard
("because xyz was so much easier with WinBatch"). But if you want to
become
a more serious programmer, then you will benefit from learning
object-oriented programming concepts, principles, and best practices -
how
..NET utilizes and promotes such concepts, and finaly how you can use C#
to
implement those principles and best practices in your applications.

-HTH

"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:A2**********************************@microso ft.com...
My programming experience is limited to some vbscript and WinBatch.

Where to start on learning C#? Do I need to work on .Net first?

TIA,

Lang



Jun 21 '07 #4
OK... to dig a little deeper... I can do most of the basic stuff I need to do
in C#. But... we do a lot of reading and -writing- to ini files and now we're
being told to do that with XML files and, from what I've seen, reading XML's
is fairly easy but -writing- to them is perhaps a little harder.

I found two libraries that read/write XML's but, gosh, when I look at the
code, I'm lost. So... I'm not sure if understanding what's going on in those
libraries is solely a C# question or a .Net question...

Thanks,

Lang

"Bob Johnson" wrote:
You would benefit from becoming clear on your objectives. If you just want
to write little more than scripts, then any intro level book will do. Given
such a lowly objective, you would then find everything way too difficult,
unintuitive, and gripe [at least to yourself] about how .NET is too hard
("because xyz was so much easier with WinBatch"). But if you want to become
a more serious programmer, then you will benefit from learning
object-oriented programming concepts, principles, and best practices - how
..NET utilizes and promotes such concepts, and finaly how you can use C# to
implement those principles and best practices in your applications.

-HTH

"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:A2**********************************@microsof t.com...
My programming experience is limited to some vbscript and WinBatch.

Where to start on learning C#? Do I need to work on .Net first?

TIA,

Lang


Jun 21 '07 #5
"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:64**********************************@microsof t.com...
[...] from what I've seen, reading XML's
is fairly easy but -writing- to them is perhaps a little harder.

I found two libraries that read/write XML's but, gosh, when I look at the
code, I'm lost. So... I'm not sure if understanding what's going on in
those
libraries is solely a C# question or a .Net question...
Writing to XML files need not be difficult. You can load the xml file
into an XmlDocument object, manipulate the contents in memory, and then save
the XmlDocument. The difficulty here would be in understanding object model
of the XmlDocument. But this is a standard: it follows the DOM (Document
Object Model), which is useful to learn anyway, since it is not specific of
..Net. For instance, if you were to work with xml from VBscript, you would
most likely create a MSXML object, which internally uses the same DOM. So
it's worth investing the time and effort to learn the DOM, and once you've
done that, you will find that using the XmlDocument to read and write xml
files on .Net is a breeze.

http://msdn2.microsoft.com/en-us/library/ms764620.aspx
http://msdn2.microsoft.com/en-us/lib...ldocument.aspx

Jun 21 '07 #6

"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:64**********************************@microsof t.com...
OK... to dig a little deeper... I can do most of the basic stuff I need to
do
in C#. But... we do a lot of reading and -writing- to ini files and now
we're
being told to do that with XML files and, from what I've seen, reading
XML's
is fairly easy but -writing- to them is perhaps a little harder.
Writing XML is incredibly easy, you barely need any sort of library at all
(maybe a utility function to properly encode special characters). Just
simple string concatenation will make an XML file.
>
I found two libraries that read/write XML's but, gosh, when I look at the
code, I'm lost. So... I'm not sure if understanding what's going on in
those
libraries is solely a C# question or a .Net question...

Thanks,

Lang

"Bob Johnson" wrote:
>You would benefit from becoming clear on your objectives. If you just
want
to write little more than scripts, then any intro level book will do.
Given
such a lowly objective, you would then find everything way too difficult,
unintuitive, and gripe [at least to yourself] about how .NET is too hard
("because xyz was so much easier with WinBatch"). But if you want to
become
a more serious programmer, then you will benefit from learning
object-oriented programming concepts, principles, and best practices -
how
..NET utilizes and promotes such concepts, and finaly how you can use C#
to
implement those principles and best practices in your applications.

-HTH

"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:A2**********************************@microso ft.com...
My programming experience is limited to some vbscript and WinBatch.

Where to start on learning C#? Do I need to work on .Net first?

TIA,

Lang



Jun 21 '07 #7
Bob,

Thanks for the response. C# is the way forward for our group. VB was
considered, from what I've heard, but C# was chosen.

I appreciate your insights. I'll start studying .Net while I continue to
muddle about in C#.

Thanks!

Lang

"Bob Johnson" wrote:
IMO, "the beginning" is to grasp what the .NET framework is and how to
leverage it's massive base class library. The particular language has
practically nothing to do with the power of .NET. So those who think that a
C# program or programmer is somehow superior to a VB.NET program or
programmer are likely very naive.

You can certainly write utility programs in .net - just be prepared for a
steeper learning curve than you had with VBScript. Once you're familiar with
the new way of doing things I think you'll like it. There's practically
nothing you can't do.

You will still most certainly wonder why it takes more code in C# than in
VBScript to accomplish certain tasks, like file I/O - but that's just the
way it is.

Apparently the transition to VB.NET is supposed to be easier for those with
a VB background - so you might want to question your management on the move
to C# and get them to approve you to learn VB.NET. The capabilities are
practically identical with VB.NET - but VB.NET has a more familiar syntax
for you - so you'd get up to speed more quickly. VB.NET also offers more
"training wheels".

-FWIW

"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:05**********************************@microsof t.com...
Bob,

Thanks for the response. To be honest, I'm not clear what my objectives
are... I write utility type programs in WB; small apps that don't require
the
level of depth one can achieve with C#. And... our management is pushing
us
to move to C#. I don't believe they appreciate the difference between WB
and
C#.

That said, even for "simple" stuff in C#, I think one would stand a better
chance of comprehending what's going on if one starts "from the
beginning."
So... I'm trying to ascertain if the beginning is .Net or not...

Thanks,

Lang

"Bob Johnson" wrote:
You would benefit from becoming clear on your objectives. If you just
want
to write little more than scripts, then any intro level book will do.
Given
such a lowly objective, you would then find everything way too difficult,
unintuitive, and gripe [at least to yourself] about how .NET is too hard
("because xyz was so much easier with WinBatch"). But if you want to
become
a more serious programmer, then you will benefit from learning
object-oriented programming concepts, principles, and best practices -
how
..NET utilizes and promotes such concepts, and finaly how you can use C#
to
implement those principles and best practices in your applications.

-HTH

"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:A2**********************************@microsof t.com...
My programming experience is limited to some vbscript and WinBatch.

Where to start on learning C#? Do I need to work on .Net first?

TIA,

Lang


Jun 21 '07 #8
Alberto,

Thanks for the feedback and links; appreciated!

Lang

"Alberto Poblacion" wrote:
"Lang Murphy" <La********@discussions.microsoft.comwrote in message
news:64**********************************@microsof t.com...
[...] from what I've seen, reading XML's
is fairly easy but -writing- to them is perhaps a little harder.

I found two libraries that read/write XML's but, gosh, when I look at the
code, I'm lost. So... I'm not sure if understanding what's going on in
those
libraries is solely a C# question or a .Net question...

Writing to XML files need not be difficult. You can load the xml file
into an XmlDocument object, manipulate the contents in memory, and then save
the XmlDocument. The difficulty here would be in understanding object model
of the XmlDocument. But this is a standard: it follows the DOM (Document
Object Model), which is useful to learn anyway, since it is not specific of
..Net. For instance, if you were to work with xml from VBscript, you would
most likely create a MSXML object, which internally uses the same DOM. So
it's worth investing the time and effort to learn the DOM, and once you've
done that, you will find that using the XmlDocument to read and write xml
files on .Net is a breeze.

http://msdn2.microsoft.com/en-us/library/ms764620.aspx
http://msdn2.microsoft.com/en-us/lib...ldocument.aspx

Jun 21 '07 #9

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

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.