4
LESSON 1 GettinG Started with the ViSual Studio ide
INSTALLING C#
Before you can use C# to write the next blockbuster first-person Xbox game, you need to install it.
So if you haven’t done so already, install C#.
You can install the Express Edition at
www.microsoft.com/express/Windows. If you think you
need some other version (for example, you’re working on a big project and you need test manage-
ment, source code control, and other team programming tools), go to
msdn.microsoft.com/
vcsharp
and install the version that’s right for you.
It’s a big installation, so it could take a while.
TALKIN’ ’BOUT MY GENERATION
Developers talk about different generations of programming languages ranging
from the very primitive to quite advanced. In a nutshell, the different generations
of languages are:
1GL
— Machine language. This is a series of 0s and 1s that the machine can
understand directly.
2GL
— Assembly language. This is a translation of machine language into
terse mnemonics that can be easily translated into machine language. It pro-
vides no structure.
3GL
— A higher-level language such as FORTAN or BASIC. These provide
additional structure (such as looping and subroutines) that makes building
complex programs easier.
4GL
— An even higher-level language or development environment that helps
build programs, typically in a specific problem domain.
5GL
— A language where you specify goals and constraints and the language
figures out how to satisfy them. For example, the database Structured Query
Language (SQL) allows you to use statements like
SELECT FirstName FROM
Employees
. You don’t need to tell the database how to get the names; it fig-
ures that out for you.
Visual Studio provides code snippets that let you copy standard chunks of code into
your program, IntelliSense that helps you select and use functions and other pieces
of code, refactoring tools that help you rearrange and restructure your code, and
more. That makes Visual C# a 4GL (or perhaps a 3.5GL depending on how high
your standards are).
596906c01.indd 4 4/7/10 12:31:23 PM