Thread: Why learn C#?

  1. #31
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    The generational garbage collecting runtime is simply better than unoptimized direct management in non-trivial cases.
    What do you mean by "simply better" and "non-trivial"?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  2. #32
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >a more objective test might be to build your software, and than see how long you can
    >maintain it, and to monitor the cost depending on what you can afford
    Unless you do that with both options, it's hardly a test, much less an objective one. A vastly superior stance would be to stop trying to figure out what's better and make a decision based on your needs. That's far more productive than going back and forth about unrelated language features.
    My best code is written with the delete key.

  3. #33
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Quote Originally Posted by siavoshkc
    What do you mean by "simply better" and "non-trivial"?
    By "non-trivial", I mean real-world applications. By "simply better", I mean faster, more efficient.
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #34
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    By "non-trivial", I mean real-world applications. By "simply better", I mean faster, more efficient.
    These meanings should be added to dictionaries!!!!!!!!!!!!

    I don't want to proove Unmanaged code is better or C++ is better than C#. Of course C# programs are easier to write, safer, portable and eseaier to maintaine. But C++ code is faster and smaller significantly.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  5. #35
    Registered User
    Join Date
    Aug 2009
    Posts
    1
    In my opinion, C# is not going to be better than Java because of the proprietary nature of the .NET framework (well, it's how Mircosoft is about their proprietary stuff), and the fact that Java is multi-platform.
    I'd learn Java before I learned C#, BUT in Java (unfortunately) it is easy to decompile and reverse engineer any compiled .Jar file.
    After learning that, I switched to C++.
    Doesn't mean you can't copyright a program you make with Java, but how many closed source Java programs have you seen being sold? There are very few.
    Java is used mainly in servers and business where people never really see the actual Java program, or where it is programmed for usage on large servers, so it doesn't matter. They use it because of it's immense portability between architectures AND platforms. WebCT (if you've ever taken an online class at a college) uses it for this reason.
    But with C# you are limited to Microsoft (and a lot of their stuff is half-assed or worse).
    There is a good garbage collector, Boehm-Demers-Weiser, for C and C++.

    Oh, I forgot to mention that both Java and C# are interpreted languages, so they will always be slower overall (speaking about ideals here, if a compiled language, or even a compiler, is poorly or partially implemented (and believe you me, of both, THERE ARE
    SO VERY MANY), then it would be faster to use the compiler / interpreted language (but if your job is that of a software engineer, you have to use the most efficient tools available to you)) than compiled languages.
    Abstraction (metaphorically, distance from the hardware) always has a cost, but with interpreted languages, the abstraction never goes away (The Java bytecode, an intermediate format, is run within a virtual machine. This is how it's so portable).
    Last edited by thehand; 08-17-2009 at 07:41 AM. Reason: Forgot to talk about something

  6. #36
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    Quote Originally Posted by siavoshkc View Post
    But C++ code is faster and smaller significantly.
    The speed difference is actually extremely small in most cases; in fact the degree of optimization done within a language affects performance far more than differences between languages.
    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.

  7. #37
    Ugly C Lover audinue's Avatar
    Join Date
    Jun 2008
    Location
    Indonesia
    Posts
    489
    The power of .NET is:
    Code:
    nmake /nodependencies
    Hopefully there is also optimized native Java compiler.
    Just GET it OFF out my mind!!

  8. #38
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    This thread was resurrected only to further a language debate. I am going to contain the zombies before it is too late.

    *thread closed*
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Do you ever try to learn too much?
    By Stonehambey in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 06-17-2008, 07:55 AM
  2. Looking to learn C++
    By Fuzzy91 in forum C++ Programming
    Replies: 40
    Last Post: 04-13-2006, 02:38 AM
  3. You have to learn C in order to learn C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 07-16-2004, 10:33 AM
  4. Novice trying to learn C++
    By dead in forum C++ Programming
    Replies: 10
    Last Post: 12-01-2003, 09:25 PM
  5. Advice on how to being to learn C++
    By VenomUK in forum C++ Programming
    Replies: 9
    Last Post: 05-18-2002, 01:06 PM