Interested in learning C#?

Just talk about stuff in general...Doesn't matter what it is.
Post Reply
User avatar
K73SK
Level 89
Posts: 3953
Joined: Tue Feb 01, 2011 7:00 am
Location: USA
Contact:

Interested in learning C#?

Post by K73SK » Sat Mar 14, 2015 9:45 pm

I hold a C# Programming Group at school and thought that maybe I should share what we go over. Please don't sign up for it's really supposed to only be UTSA students signing up. There's no benefit for you to sign up since it's literally only for us to manage who's paid and who hasn't paid at this moment (although future changes MAY happen on the site, depends on activity from the group).

Here's the site: http://www.csharpgroup.org/

Tell me what you all think. Also tell me if you have any questions about what we have gone over up to this point. :)
Donate to legendoflegaia.net if you are one who wants to keep it alive! http://www.legendoflegaia.net/donate.html

User avatar
Nightshade
Level 60
Posts: 1797
Joined: Tue Jul 26, 2011 9:07 pm
Location: the the the the

Re: Interested in learning C#?

Post by Nightshade » Sun Mar 15, 2015 9:43 pm

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

I probably can't pick up much since I am busy trying to address climate change, but I wouldn't mind learning a few snippets of the language here and there.
Do not question yourself with the why or the how. I simply am, and that is all you need to know.

GoldenPower89
Level 57
Posts: 1638
Joined: Mon Sep 09, 2013 3:12 am
Location: Indiana

Re: Interested in learning C#?

Post by GoldenPower89 » Sun Mar 15, 2015 11:44 pm

I think I'll try to learn this. Could be useful for school.
Image

User avatar
K73SK
Level 89
Posts: 3953
Joined: Tue Feb 01, 2011 7:00 am
Location: USA
Contact:

Re: Interested in learning C#?

Post by K73SK » Mon Mar 16, 2015 8:18 am

Nightshade wrote:What is the difference between C, C++, and C#?
C: Not an object-oriented programming (OOP) language ( http://en.wikipedia.org/wiki/Object-ori ... rogramming ) and a very low level programming language. More often than not, it's used to create operating systems or software that works very close to the operating system (from my experience, mostly Linux).

C++ : Like C, but an OOP language. The key difference is that it's an OOP language but it's really an "extension" to C. It's higher level (meaning that it's farther from binary and even closer to human-readable) but is still extremely efficient in performance and speed. But, like in C, memory management is critical to understand to truly have an efficient program.

C#: Extremely different than C and C++. Most people like to say it's like Java, but it's not except for the "syntax" of the language... That's a whole different conversation and I can go on and on about that. C# is also a high-level programming language, but even though it's much higher level, it's an extremely powerful language and applications can be just as good as if they were written in C++ instead. Also, memory management is less of a concern (although it's still a concern when you deal with pointers and dynamic programming) because C# takes care of it with a "Garbage Collector" like in Java.

As for syntax between all three, C and C++ look very similar and C# is the oddball out. The reason it still uses the letter "C" is probably because it allows you to use pointers and import C++ code and dll files into it... I'm not 100% sure on that one though.

I'm literally typing this all at the top of my head... It's been awhile since I've programmed in C++ so I may have it wrong, but here's a sample of the difference in "Hello World" programs between the three:

C:

Code: Select all

#include <stdio.h>

int main(int argc, char* argv[])
{
   printf("Hello, World!\n");
   return 0;
}
C++:

Code: Select all

#include <iostream>

int main(int argc, char* argv[])
{
   std::cout << "Hello, World!" << std::endl;
   return 0;
}
C#:

Code: Select all

using System;

namespace ConsoleApplication
{
   class Program
   {
       static void Main(string[] args)
       {
           Console.WriteLine("Hello World!");
       }
   }
}
Donate to legendoflegaia.net if you are one who wants to keep it alive! http://www.legendoflegaia.net/donate.html

Post Reply