Author Topic: C# Discussion  (Read 1196 times)

Hello, if anyone is currently learning C# or has already learnt most of the fundamentals I'd gladly like to discuss it with you.

I have just started studying C#, and yes this is my first programming language. It's always fun to have a study buddy or someone to help guide you through those tough parts.

Just p.m me your email address, I use MSN but if you use another type of messenger I'll try to accommodate the best I can.

I refuse to use SharpDeveloper because of how complicated it is for a beginner such as myself.

If you use Microsoft Visual C# 2008 Express Edition that would make things run smoother but I'm sure any IDE designed for C# would work both ways when compiling.

Lastly, if by through the forums you have a bad reputation, you wasted your time reading this, I'm not about to add someone that all I know is is that you piss people off.

Anyways thanks, hope to see people interested in C#.

Using C# means you can only program for Microsoft's .NET framework. If you are interested in programming for more than one operating system or want to work on larger projects of developers, learning C++ would probably be a better way to go.

Using C# means you can only program for Microsoft's .NET framework. If you are interested in programming for more than one operating system or want to work on larger projects of developers, learning C++ would probably be a better way to go.

Is that really true?

Because C# is the most recent language of the C-series I thought it would work but if that's true I will have to learn two languages :\.

Space Guy add me on MSN I'll pm you.

"Got a Torque Script problem? Ask here."

I think this goes in Off-Topic.


Anyway, I'm trying to learn a bit of C++ too.
« Last Edit: May 17, 2008, 02:08:43 PM by n0cturni »

I personally consider C# to be closer to Java than to be part of the 'C-series'.
Either way, I suggest learning C++ because it's faster and more useful.

FYI they're releasing a new standard for C++ next year. It's exciting.

I am taking a C# and a C++ later this year.

What is the difference between C# and C++?

C# is only object-oriented (everything must exist within a class - there's no such thing as a global variable or a free function in C#). Also, C# isn't portable like C++ (it was designed by microsoft).

Like I said, it's a lot more like Java.

C++ is cross-platform, it's "multi-paradigm" (supports OOP and procedural programming like C), and it supports better generic programming.
« Last Edit: May 17, 2008, 02:32:04 PM by exidyne »

Using C# means you can only program for Microsoft's .NET framework. If you are interested in programming for more than one operating system or want to work on larger projects of developers, learning C++ would probably be a better way to go.

Is that really true?

Because C# is the most recent language of the C-series I thought it would work but if that's true I will have to learn two languages :\.

Space Guy add me on MSN I'll pm you.
You really shouldn't see C# as a part of the C-series. The C-series would be B -> C -> C++ -> D (to some extent). C# was built by Microsoft specifically for the .NET framework, and isn't a superset of C++. I'd really recommend learning C++ instead of C#.

I personally [don't] consider C# to be ... part of the 'C-series'.
...
I suggest learning C++
...
(C# ... was designed by microsoft)
You really shouldn't see C# as a part of the C-series.
...
C# was built by Microsoft
...
I'd really recommend learning C++

Is that so...
« Last Edit: May 17, 2008, 03:24:16 PM by exidyne »

"Got a Torque Script problem? Ask here."

I think this goes in Off-Topic.


Anyway, I'm trying to learn a bit of C++ too.

I don't think this goes into Off-Topic, it is pretty on topic with coding, no it's not asking for help with a direct question to coding it's asking for someone else to learn with/ learn off of. Indirect help.



C# is only object-oriented (everything must exist within a class - there's no such thing as a global variable or a free function in C#). Also, C# isn't portable like C++ (it was designed by microsoft).

Like I said, it's a lot more like Java.

C++ is cross-platform, it's "multi-paradigm" (supports OOP and procedural programming like C), and it supports better generic programming.

Depending on the direction you want to go with your game programming, Microsoft wanted to take C++ and fix what was wrong with it.

Java is not similar to C#, Java is similar to .NET. Again Microsoft took what Sun made with Java and vastly improved it.

Portability, C# is yet in it's infancy but it will take hold eventually, no big gaming industry wants to waste millions of dollars on a program they aren't sure of just yet.

However with C# you could say, make a game for .NET and also have it play on a console that supports the code such as the Xbox-2.

Using C# means you can only program for Microsoft's .NET framework. If you are interested in programming for more than one operating system or want to work on larger projects of developers, learning C++ would probably be a better way to go.

Is that really true?

Because C# is the most recent language of the C-series I thought it would work but if that's true I will have to learn two languages :\.

Space Guy add me on MSN I'll pm you.
You really shouldn't see C# as a part of the C-series. The C-series would be B -> C -> C++ -> D (to some extent). C# was built by Microsoft specifically for the .NET framework, and isn't a superset of C++. I'd really recommend learning C++ instead of C#.

From what I learned the same script can be written with C++ ( for example the "Hello world" script) a lot shorter than C# but the similarities are there.

Of course I won't limit myself to just C# I intend to learn other languages but I think it would be in good taste for me to start with C# and work my way into other languages such as C++.
« Last Edit: May 17, 2008, 03:44:32 PM by LoserHero »

[Edited:]

Java is not similar to C#...

Java:
Code: [Select]
class HelloWorld

        public static void main()
        {
           System.out.println("Hello World!");
        }
}

C#:
Code: [Select]
using System; public
class HelloWorld
{
        public static void Main()
        {
                Console.WriteLine("Hello World!");
        }
}

C++: (can you see the difference?)
Code: [Select]
#include <iostream>
using std::cout;

int main()
{
   cout << "Hello World!";
   return 0;
}
« Last Edit: May 17, 2008, 03:57:37 PM by exidyne »

Java is not similar to C#...
I beg to differ:

Java:
Code: [Select]
class HelloWorld

        public static void main()
        {
           System.out.println("Hello World!");
        }
}

C#:
Code: [Select]
using System; public
class HelloWorld
{
        public static void Main()
        {
                Console.WriteLine("Hello World!");
        }
}

Plus, Java and C# both support generics the same way, have the same typing system (basically, everything is treated like a reference, in C++ terms, and you create instances with 'SomeClass obj = new SomeClass();), etc.

Give an example of C++ when writing that same script please.

There's another .NET-based language called J# which is probably a lot closer to Java than C# is:
Code: [Select]
public class Hello {
  public static void main() {
    System.out.println("Hello, World");
  }
}

Also:
Quote
During compilation of .NET programming languages, the source code is translated into CIL code rather than platform or processor-specific object code. CIL is a CPU- and platform-independent instruction set that can be executed in any environment supporting the .NET framework. CIL code is verified for safety during runtime, providing better security and reliability than natively compiled binaries.
i.e. Windows