C Board  

Go Back   C Board > General Programming Boards > C# Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 12-09-2008, 10:17 AM   #1
Registered User
 
Sshakey6791's Avatar
 
Join Date: Nov 2008
Location: -
Posts: 57
Question C#?

What is C# used for ? couple of my friends said network but I'm not sure if thats correct can someone set me on the right path here. And is it worth learning ? thanks.....
__________________
Quote:
"Blood you have thirsted for -- now, drink your own!"
(Dante)
Sshakey6791 is offline   Reply With Quote
Old 12-09-2008, 10:23 AM   #2
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
It is a general purpose programming language, and can be used for (almost) anything. It can be used for networking programs, and it is often used for GUI programming.

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Old 12-09-2008, 10:24 AM   #3
Registered User
 
Sshakey6791's Avatar
 
Join Date: Nov 2008
Location: -
Posts: 57
So is it just like C++
__________________
Quote:
"Blood you have thirsted for -- now, drink your own!"
(Dante)
Sshakey6791 is offline   Reply With Quote
Old 12-09-2008, 10:39 AM   #4
Kernel hacker
 
Join Date: Jul 2007
Location: Farncombe, Surrey, England
Posts: 15,686
As very brief summary yes. There are many small differences. The biggest one is that the memory management is done by the "language" itself, and that it's not a native compiler - it generates .Net code, which is the same concept as Jave ByteCode, not pure machine-code. It then uses clever techniques to translate this into actual machine code when you run the app - as far as I understand.

--
Mats
__________________
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
matsp is offline   Reply With Quote
Old 12-09-2008, 12:21 PM   #5
Registered User
 
C_ntua's Avatar
 
Join Date: Jun 2008
Posts: 1,280
Quote:
Originally Posted by Sshakey6791 View Post
So is it just like C++
Well, it is clearly based on C++. So it is more modern than C++. But C++ is a better choice when you want something to run faster. It has offers more management it is an evolution from C, meaning speed is always a must for the language. Not that C# is slow. Well, google C# vs C++ and you will find a lot of opinions

My personal opinion is that C# it is easier than C++. But as a language it has fewer things than C++.

It is created by Microsoft and uses the .NET framework. Meaning that if a PC doesn't have the framework it cannot run the program. Of course installing the framework in Windows is free and simple. It can be done (they say) in Linux or some Linux.
As far as I know you can use the .NET library also with C++, but it will be probably better to do it with C#.

.NET / ASP.NET is really create for a GUI or a Internet based program. C++ is better when speed is an issue, like creating a game.

P.S1: I prefer C++, but that is because I like C.
P.S2: I played DMC 3 and 4 mostly to see the scenematics with Dante. There awesome. Probably the best is the Intro of DMC 3. Though that's also the first one so it's the first impression. From DMC 4 I liked the theatrical/drama scene most... and... wait this is a C forum....
C_ntua is offline   Reply With Quote
Old 12-09-2008, 04:46 PM   #6
Registered User
 
valaris's Avatar
 
Join Date: Jun 2008
Location: RING 0
Posts: 468
Quote:
Originally Posted by C_ntua View Post
Well, it is clearly based on C++. So it is more modern than C++. But C++ is a better choice when you want something to run faster. It has offers more management it is an evolution from C, meaning speed is always a must for the language. Not that C# is slow. Well, google C# vs C++ and you will find a lot of opinions

My personal opinion is that C# it is easier than C++. But as a language it has fewer things than C++.

It is created by Microsoft and uses the .NET framework. Meaning that if a PC doesn't have the framework it cannot run the program. Of course installing the framework in Windows is free and simple. It can be done (they say) in Linux or some Linux.
As far as I know you can use the .NET library also with C++, but it will be probably better to do it with C#.

.NET / ASP.NET is really create for a GUI or a Internet based program. C++ is better when speed is an issue, like creating a game.

P.S1: I prefer C++, but that is because I like C.
P.S2: I played DMC 3 and 4 mostly to see the scenematics with Dante. There awesome. Probably the best is the Intro of DMC 3. Though that's also the first one so it's the first impression. From DMC 4 I liked the theatrical/drama scene most... and... wait this is a C forum....

http://www.mono-project.com/Main_Page
valaris is offline   Reply With Quote
Old 12-10-2008, 06:23 AM   #7
Mysterious C++ User
 
Elysia's Avatar
 
Join Date: Oct 2007
Posts: 14,785
Quote:
Originally Posted by C_ntua View Post
P.S1: I prefer C++, but that is because I like C.
But you have been all the rage about C# for a while now...
__________________
Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System
I dedicated my life to helping others. This is only a small sample of what they said:
"Thanks Elysia. You're a programming master! How the hell do you know every thing?"
Quoted... at least once.
Quote:
Originally Posted by cpjust
If C++ is 2 steps forward from C, then I'd say Java is 1 step forward and 2 steps back.
Elysia is offline   Reply With Quote
Old 12-10-2008, 05:58 PM   #8
Cat
Registered User
 
Join Date: May 2003
Posts: 1,199
Quote:
Originally Posted by Sshakey6791 View Post
So is it just like C++
One important difference is that C# can't be used for kernel mode software, such as (many) device drivers.

Or rather, if you wrote it in C# without using .NET, you could probably write a compiler to do kernel mode drivers, as I don't believe any of the existing compilers have that capability.
__________________
You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.
Cat is offline   Reply With Quote
Old 12-10-2008, 06:03 PM   #9
Banned
 
Join Date: Dec 2008
Location: Maputo, Mozambique
Posts: 82
C# iz a fansee wurd for java 4 microsoft.
c++0x is offline   Reply With Quote
Old 12-10-2008, 06:04 PM   #10
Ex scientia vera
 
Join Date: Sep 2007
Posts: 464
Quote:
Originally Posted by Cat View Post
One important difference is that C# can't be used for kernel mode software, such as (many) device drivers.

Or rather, if you wrote it in C# without using .NET, you could probably write a compiler to do kernel mode drivers, as I don't believe any of the existing compilers have that capability.
Except that C# is .NET, as much as .NET is C#. It's bytecode compiled and runs on a virtual host, and cannot be compiled to a binary by itself(You get what I mean - it isn't the binary code itself the binary that gets made consists of).
__________________
"What's up, Doc?"
"'Up' is a relative concept. It has no intrinsic value."
IceDane is offline   Reply With Quote
Old 12-10-2008, 08:26 PM   #11
Ethernal Noob
 
Join Date: Nov 2001
Posts: 1,891
Quote:
Originally Posted by c++0x View Post
C# iz a fansee wurd for java 4 microsoft.
This post solves any question that will ever come out of this thread.

but will it solve the question, "Is indigo0086 being sarcastic there"...that's for you to decide.
__________________
Here to Deceive, Inveigle, Obfuscate Since 1945
indigo0086 is offline   Reply With Quote
Old 12-10-2008, 08:48 PM   #12
Banned
 
Join Date: Dec 2008
Location: Maputo, Mozambique
Posts: 82
Y u gotta hait?
c++0x is offline   Reply With Quote
Old 12-11-2008, 06:08 AM   #13
Woof, woof!
 
zacs7's Avatar
 
Join Date: Mar 2007
Location: Australia
Posts: 3,295
i don no y hez been sarcaztc

Lollies

Anyway it certainly does have it's place, although I'd pick Java over it anyday. What's the point of a managed, interpreted language if it's hardly portable?!?
__________________
"I.T. gets the chicky-babes" - M. Kelly
bakefile | vim
zacs7 is offline   Reply With Quote
Old 12-11-2008, 07:04 AM   #14
Registered User
 
Join Date: Oct 2006
Posts: 298
Quote:
Originally Posted by c++0x View Post
Y u gotta hait?
If you really don't know how to spell properly, then I pity you. However, if it is by choice that you construct your sentences that way, don't expect to get any respect or useful help from normal people. if you want people to take you seriously, please conform to the same standard of spelling, sentence structure, and punctuation that everyone else has adopted. What do you think a potential employer would think if you wrote that way in your resume? they would read the first sentence and throw it in the trash can. Posts on this board are just as easily discarded or ignored.
Elkvis is offline   Reply With Quote
Old 12-11-2008, 10:57 AM   #15
Registered User
 
Join Date: Aug 2008
Posts: 188
Quote:
Originally Posted by zacs7 View Post
Anyway it certainly does have it's place, although I'd pick Java over it anyday. What's the point of a managed, interpreted language if it's hardly portable?!?
because it's not just interpreted, it's JITed, is portable with mono/gtk/qt, and one of the cleanest languages i've ever programmed in.
bling is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump


All times are GMT -6. The time now is 12:29 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22