[Request] Opinions

02/19/2010 22:50 Decker_#1
Hello.
I am trying to learn C# but I don't know what to learn first.
Can someone tell me a list of what I should learn First-Last?
I will be really grateful.
Thanks!
02/19/2010 22:53 Arcо#2
Npc's learn all the basics that an npc can do.
Cps give and take
Silver give and take
Attribute points give and take.
Learn everything that an npc can be used for.
02/19/2010 22:58 ArtOfWar#3
Quote:
Originally Posted by .Arco View Post
Npc's learn all the basics that an npc can do.
Cps give and take
Silver give and take
Attribute points give and take.
Learn everything that an npc can be used for.
Hes trying to learn to code in c# so he should do some enums, bools, definitions, encryptions and stuff o.o
02/19/2010 23:03 Arcо#4
Quote:
Originally Posted by ArtOfWar View Post
Hes trying to learn to code in c# so he should do some enums, bools, definitions, encryptions and stuff o.o
Well here's a little need to know about definitions.

Bool: If something is defined as a bool, then it is a true or false statement.
Like public bool GWOn = false;
If its true then where ever it is coded GW will be on.

Byte:Anything defined as a byte is an unsigned 8-bit integer that can go from 0-255, like public byte Level = 0;
A character's level is defined as a byte so it can only go up to 255.

Int:Anything defined as an int is a signed 32-bit integer that can range anywhere from -2,147,483,648 to 2,147,483,647.

Long:Anything defined as a Long is a Signed 64-bit integer that can range anywhere from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.

Sbyte: Anything defined as an sbyte is a Signed 8-bit integer that can range anywhere from -128 to 127.

Short: Anything defined as a short is a Signed 16-bit integer that can range anywhere from
-32,768 to 32,767.

Uint: Anything defined as a uint is a Unsigned 32-bit integer that can range anywhere from 0 to 4,294,967,295.

Ulong: Anything defined as a ulong is a Unsigned 64-bit integer that can range anywhere from 0 to 18,446,744,073,709,551,615.

Ushort: Anything defined as a ushort is an Unsigned 16-bit integer that can range anywhere from 0 to 65,535.

More to come..
02/19/2010 23:04 KraHen#5
First, this belongs to the Programming section.

Second, you need to learn the syntax of the language, after that you`re on your own. I personally started with console apps, then going a bit on forms, then basic scripting for CO, after that I started coding in XNA and some very basic C++ in school, which two have helped me improve my coding skills.
02/19/2010 23:08 pro4never#6
I'd start with ummm

Basic data types (int/uint/bool/string/etc)

basic operators (+ - / * += -= ** etc)

if/else if/else statements

loops (while, for, foreach, etc)

Basic functions

try/catch statements

basic data structures (dictionaries/hashtables)

basic I/O (flatfile and through sql)

switch statements

break/continue/etc


There's alot more basic stuff you could learn but those are really easy to get a grasp on and will be useful for ANYTHING you program. Learn the basics before you try anything more advanced or you will fail.


I know I tend to advertise it alot... but I do have tutorials for at least some of those basics in my siggy.
02/19/2010 23:11 Decker_#7
Quote:
Originally Posted by .Arco View Post
Well here's a little need to know about definitions.

Bool: If something is defined as a bool, then it is a true or false statement.
Like public bool GWOn = false;
If its true then where ever it is coded GW will be on.

Byte:Anything defined as a byte is an unsigned 8-bit integer that can go from 0-255, like public byte Level = 0;
A character's level is defined as a byte so it can only go up to 255.

Int:Anything defined as an int is a signed 32-bit integer that can range anywhere from -2,147,483,648 to 2,147,483,647.

Long:Anything defined as a Long is a Signed 64-bit integer that can range anywhere from –9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.

Sbyte: Anything defined as an sbyte is a Signed 8-bit integer that can range anywhere from -128 to 127.


More to come..
Thanks

Quote:
Originally Posted by ElDeRnEcRo View Post
First, this belongs to the Programming section.

Second, you need to learn the syntax of the language, after that you`re on your own. I personally started with console apps, then going a bit on forms, then basic scripting for CO, after that I started coding in XNA and some very basic C++ in school, which two have helped me improve my coding skills.
This doesn't necessarily go there because i'm learning to code conquer private servers, so this kind of has something to do with conquer private servers. :S

Quote:
Originally Posted by pro4never View Post
I'd start with ummm

Basic data types (int/uint/bool/string/etc)

basic operators (+ - / * += -= ** etc)

if/else if/else statements

loops (while, for, foreach, etc)

Basic functions

try/catch statements

basic data structures (dictionaries/hashtables)

basic I/O (flatfile and through sql)

switch statements

break/continue/etc


There's alot more basic stuff you could learn but those are really easy to get a grasp on and will be useful for ANYTHING you program. Learn the basics before you try anything more advanced or you will fail.


I know I tend to advertise it alot... but I do have tutorials for at least some of those basics in my siggy.
Thanks
02/19/2010 23:14 Arcо#8
I suggest:
[Only registered and activated users can see links. Click Here To Register...]
02/20/2010 00:56 Decker_#9
Thanks, i'll take a look at it. ;)
02/20/2010 00:59 Korvacs#10
Even if you are learning to program because you wish to write a private server, your still learning all aspects of a programming language, so it belongs in programming.

Moved.
02/21/2010 15:06 Nullable#11
First, you'll never advance in programming without learning all the corners of the language, you just wish to cut through and suddenly have all the knowledge needed to run a server.
Regarding my last statement:

1. If you are going C# just because its simple, don't! Doing simple stuff first in programming isn't that good as some people think, you should start with an intermediate language that doesn't really kill you and enables you to practice the advanced stuff more and more(i.e memory stuff and pointers), a language like C++ will help you greatly understand how pointers and computer memory works, also regarding servers, C++ will open up WSA widely for you unlike C# which contains implementations of WSA functions

2. If you still don't like C++, C# .NET is a great language and .NET is also a great framework. however, you should practice the most avoidable programming methods in C#(around here) as the System.Reflection and System.Linq namespaces

3. This might not be in any means related to servers but, anyway. Assembly(or machine code) isn't really tough to understand and will help amazingly to understand some programming concepts as Stack and calling conventions
03/01/2010 01:01 spare2#12
You can't learn calculus without learning algebra.

Java/.Net languages are the ways to go for beginners.