Thread: C++ or C#?

  1. #16
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Yarin View Post
    Use C#, it's by far better.

    C# is bound to the garden of Microsoft, where things are kept nice and ordely for everyone's benefit. But C++ is on any random platform, it's freedom is bad. Like it would be for weed.
    C# uses a nice massive runtime, but C++'s runtime is pretty small and ubiquitous. So when your users don't see those dependencies they'll think it's not a very well supported program.
    C# is dynamic, so when things take a long time to happen, your users will know it's getting stuff done. But C++ is natively compiled so when things happen fast, your users will think it's not getting any real work done.
    C# is spontaneously garbage collected, so you can write code without caring about resources. In C++ you're encouraged to use predictable features like RAII, and when you have to consider everything your code is doing it hurts your productivity.
    Just so people does not take this seriously, this list is biased and not entirely true or blow out of proportion.
    C# is not necessarily slower than C++ by a huge factor. It all depends on what you do and how you do it.
    You can control scope in C# RAII-style (though it's still not as good as C++).
    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.

  2. #17
    Registered User
    Join Date
    Apr 2014
    Location
    Hong Kong, Hong Kong
    Posts
    16
    For anyone seeing this thread after I made a decision, here is my decision:
    1. I wanna use Unity for my first game project, and they have C# but not C++, I believe that when I use Visual Studio only, I will have an easy time to re-learn.
    2. I heard it has a less steep learning curve
    3. I can bring it across major platforms. #mono

  3. #18
    Registered User
    Join Date
    Apr 2014
    Location
    Hong Kong, Hong Kong
    Posts
    16
    BTW, is C# like C++?

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by lolllol View Post
    BTW, is C# like C++?
    Yes and no. Similar syntax, yes, and being object oriented, yes, but otherwise, no. It's a completely different language.
    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.

  5. #20
    Registered User
    Join Date
    Apr 2014
    Location
    Hong Kong, Hong Kong
    Posts
    16
    Thanks

  6. #21
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    Yeah, I was looking Unity up and apparently it's written in C++ but the interface for a user is C#, which I find odd. Perhaps the idea is that a scripting language would be a better choice for interacting with the software without directly dealing with its guts.

  7. #22
    Registered User
    Join Date
    Oct 2008
    Location
    Bloomington, Indiana, United States
    Posts
    40
    Quote Originally Posted by Yarin View Post
    Use C#, it's by far better.

    C# is bound to the garden of Microsoft, where things are kept nice and ordely for everyone's benefit. But C++ is on any random platform, it's freedom is bad. Like it would be for weed.
    C# uses a nice massive runtime, but C++'s runtime is pretty small and ubiquitous. So when your users don't see those dependencies they'll think it's not a very well supported program.
    C# is dynamic, so when things take a long time to happen, your users will know it's getting stuff done. But C++ is natively compiled so when things happen fast, your users will think it's not getting any real work done.
    C# is spontaneously garbage collected, so you can write code without caring about resources. In C++ you're encouraged to use predictable features like RAII, and when you have to consider everything your code is doing it hurts your productivity.
    Garden of Microsoft? That must be news to linux C# developers using mono.

    Since he is wanting to make a game, C# and C++ are still both perfectly viable languages to use. If he wants to be locked to Microsoft only systems then by all means use C# and all MS specific libraries. If you plan to go cross-platform then start looking into cross-platform libraries (most of the tutorials I find for them are in C++). Depending on who you ask, some recommend learning Java or C# before coming to C++. In the end, it is entirely up to you and what you want to use.

  8. #23
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by Elysia View Post
    Quote Originally Posted by lolllol View Post
    BTW, is C# like C++?
    Yes and no. Similar syntax, yes, and being object oriented, yes, but otherwise, no. It's a completely different language.
    This may just be the Lisp, ML, and Prolog in me talking, but C# is a decendant of C++, I would say it's definitely a lot like it.



    Quote Originally Posted by BHXSpecter View Post
    Quote Originally Posted by Yarin View Post
    C# is bound to the garden of Microsoft
    Garden of Microsoft? That must be news to linux C# developers using mono.
    Maybe. But that doesn't discount what I said.

    Alice: The WinAPI is bound to the garden of Microsoft
    Bob: Garden of Microsoft? That must be news to linux WinAPI developers using Wine.

  9. #24
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    Quote Originally Posted by Yarin View Post
    This may just be the Lisp, ML, and Prolog in me talking, but C# is a decendant of C++, I would say it's definitely a lot like it.
    It is just the Lisp, ML, and Prolog in you talking.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  10. #25
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    I still love Yarin's post though XD

    It makes my soul happy

  11. #26
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413
    Quote Originally Posted by Yarin View Post
    Alice: The WinAPI is bound to the garden of Microsoft
    Bob: Garden of Microsoft? That must be news to linux WinAPI developers using Wine.
    Not being argumentative here, just really want to know the truth -- is this a fair comparison? It's my understanding and personal experience that Wine is missing a LOT of functionality. A lot of programs don't work or otherwise I'd never touch Windows ever again. Like, unless someone has taken the time to get a specific program to work, there's like 50% chance it won't work. I was under the impression that Mono had a lot of stuff implemented and does a pretty good job compatibility-wise (I have no experience with this, just hearsay). I looked it up and they've implemented all of .NET 2.0 but are still working on stuff past that.

    My 2 cents on the topic subject: due to the implementation, I'd liken C# more to Java than to C++.

  12. #27
    Registered User MutantJohn's Avatar
    Join Date
    Feb 2013
    Posts
    2,665
    I can only really tell you this much, Wine can't play a lot of videogames. It plays Steam and DotA 2 which is all that matters (Linux version is worse) but aside from that, I'd never put any real faith in Wine aside from it being a fun thing to tinker with.

  13. #28
    Registered User
    Join Date
    Oct 2006
    Posts
    3,445
    you don't need Wine to play any video game that matters. Minecraft runs just fine on linux with java. No Wine required.
    What can this strange device be?
    When I touch it, it gives forth a sound
    It's got wires that vibrate and give music
    What can this thing be that I found?

  14. #29
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by Elkvis View Post
    you don't need Wine to play any video game that matters. Minecraft runs just fine on linux with java. No Wine required.
    Come on! We all know Minecraft is awful and that Terraria rocks! You don't need to be modest =)
    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.

  15. #30
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    Are you two kidding?

    "Drawrf Fortress" crushes both with a massive payload of awesome.

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

Popular pages Recent additions subscribe to a feed