C#?

This is a discussion on C#? within the C# Programming forums, part of the General Programming Boards category; What is C# used for ? couple of my friends said network but I'm not sure if thats correct can ...

  1. #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.....
    "Blood you have thirsted for -- now, drink your own!"
    (Dante)

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

  3. #3
    Registered User Sshakey6791's Avatar
    Join Date
    Nov 2008
    Location
    -
    Posts
    57
    So is it just like C++
    "Blood you have thirsted for -- now, drink your own!"
    (Dante)

  4. #4
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    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.

  5. #5
    Registered User C_ntua's Avatar
    Join Date
    Jun 2008
    Posts
    1,853
    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....

  6. #6
    Registered User valaris's Avatar
    Join Date
    Jun 2008
    Location
    RING 0
    Posts
    507
    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

  7. #7
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,537
    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...
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  8. #8
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    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.

  9. #9
    Banned
    Join Date
    Dec 2008
    Location
    Maputo, Mozambique
    Posts
    82
    C# iz a fansee wurd for java 4 microsoft.

  10. #10
    Ex scientia vera
    Join Date
    Sep 2007
    Posts
    478
    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."

  11. #11
    Ethernal Noob
    Join Date
    Nov 2001
    Posts
    1,901
    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

  12. #12
    Banned
    Join Date
    Dec 2008
    Location
    Maputo, Mozambique
    Posts
    82
    Y u gotta hait?

  13. #13
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    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?!?

  14. #14
    Registered User
    Join Date
    Oct 2006
    Posts
    2,349
    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.

  15. #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.

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

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