Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


Is C# worth learning?


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
16 replies to this topic

#1 Scyllinice   Members   -  Reputation: 707

Like
Likes
Like

Posted 19 July 2003 - 09:14 AM

I am wondering because Im thinking about it but I don''t want to spend the time if it''s really not worth it. Maybe some pros and cons from those who have used it would help me. It doesn''t matter what you used it for, just what you liked about it/disliked about it. Thanks in advance

Sponsor:

#2 MaulingMonkey   Members   -  Reputation: 1556

Like
Likes
Like

Posted 19 July 2003 - 09:25 AM

You know you''re asking for a flamming, right? :-p.

Since flamers will probably be in here anyways, I might as well post some questions that are less flamable in the context

I''ll tack on a couple questions I''d like to know myself...

1) Are there free compilers for C# that I could download?
2) Are there free linux compilers for C# that I could download?

If "no" is the answer to either of the above questions, ignore the rest of my post :-p. (I''m broke and run linux)

I''ve noted/read that they (the implementors of the C# language) try and shy away from pointers, so that you can ''verify the safety of'' downloaded code (which pointers inheritly ''desafeify'', and require an explicit ''unsafe'' decleration to work) among other things.

3) How else does C# differ from C++ in it''s language?
4) I am not interested in the fact that you get to use different libraries. I am talking about basic syntax and use.
5) Garbage collection?!?

#3 Scyllinice   Members   -  Reputation: 707

Like
Likes
Like

Posted 19 July 2003 - 09:28 AM

People who flame over a simple question like this need help. Im personally going to disregard any flames that may arise

#4 the Speed Bump   Members   -  Reputation: 240

Like
Likes
Like

Posted 19 July 2003 - 10:13 AM

Short version: C# is a souped up Java. Lots of (extremely useful) syntactical sugar. Not as fast as C++, so don''t use it in uber-speed critical stuff. Portability stinks right now. (it''s there, but mono doesn''t do everything MS''s implementation does)

Worth learning, says me.

#5 EdR   Members   -  Reputation: 117

Like
Likes
Like

Posted 19 July 2003 - 10:22 AM

Learning new languages can never hurt (unless you learn BASIC). I want to learn it, but I can''t afford it yet.

#6 Arild Fines   Members   -  Reputation: 968

Like
Likes
Like

Posted 19 July 2003 - 10:36 AM

quote:
Original post by MaulingMonkey
1) Are there free compilers for C# that I could download?


Yes.
quote:

2) Are there free linux compilers for C# that I could download?


Yes.
quote:

3) How else does C# differ from C++ in it''s language?


(Almost) everything is allocated on the heap - stack allocation is possible(with the struct keyword), but useful mostly in specialized scenarios. Heap allocation is orders of magnitude faster than in C/C++ though, due to the garbage collector.
quote:

5) Garbage collection?!?

Yup, like any other civilized language.



AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.

#7 Arild Fines   Members   -  Reputation: 968

Like
Likes
Like

Posted 19 July 2003 - 10:37 AM

quote:
Original post by Maega
People who flame over a simple question like this need help. Im personally going to disregard any flames that may arise

They won''t be directed at you, but at some of the replies.

#8 jmg5   Members   -  Reputation: 100

Like
Likes
Like

Posted 19 July 2003 - 10:40 AM

No.

EDIT - that's just my opinion, but if you want to learn there are these C# course thingies at www.programmersheaven.com



[edited by - jmg5 on July 19, 2003 5:42:27 PM]

#9 GoofProg   Members   -  Reputation: 127

Like
Likes
Like

Posted 19 July 2003 - 10:41 AM

I thought C# was strictly a microsoft language. Sort of like Microsoft''s version of java vs the standard Sun''s java.

#10 JuNC   Members   -  Reputation: 236

Like
Likes
Like

Posted 19 July 2003 - 11:33 AM

I don''t think even Microsoft could win a case ''they stole our language!''

Or could they?

#11 MaulingMonkey   Members   -  Reputation: 1556

Like
Likes
Like

Posted 19 July 2003 - 11:58 AM

Maega: The world is full of people who need help. Disregarding them, although not very effective in making them quit, does seem to be the best option, though .

Edward Ropple: Basic is good for teaching people the basics of programming, and thus, learning it in order to teach people might be helpfull .

Arild Fines:
"Are there free linux compilers for C# that I could download?"
"Yes"
Don''t supposed you could spare a link?

"Garbage collection?!?"
"Yup, like any other civilized language" (and GC related comments)
Let me interpret correctly:

1) returning items such as classes would be easier legally than in C++, as things are done from the heap.
2) Heap allocation is faster because it does memory allocation for you, in effect.
3) That is useful in cases where I am not writing my own memory manager for a specific task (aka, projects which need speed, but also need to stay fairly general to speed improvements).

Given the scenario where I am writing a game, with it''s own fast memory manager (with pre-allocated memory), this would not be of help to me. Also, in the given scenario, would I be able to overload new/delete or the like to achieve the desired result?

This would be the primary background that I am comming from. I understand, however, that GC would/will be usefull to lower end games/projects.

GoofProg: Me too .

JuNC: Don''t give them any ideas.

#12 JackRabbit   Members   -  Reputation: 122

Like
Likes
Like

Posted 19 July 2003 - 11:59 AM

Hi,

My answer to the first question is yes.
I''m a C++ programmer, but i''ve started to learn C#,
and i find it very enjoyable and easy to work with.

From what i understand, C# was, primarly made to be used as the
primary language to develop for the .NET framework ( someone correct me if im wrong here)

And yes, you get a free compiler with .NET framework, which
you can download from MS site.

As to the differences between C# and C++, i dont know a heck of alot about it, but
one of the larger ones, is that C# is a PURE OO languages,
whereas, C++ is a PROCEDURAL language, with OO extensions.

In short, you should definatly learn it. C# , in my oppionion,
is here to stay. That means that if you want to work professionaly as a programmer,
you will most likely end up in a situation where it''s required of you to know it.

Well, thats all from me at the moment
I hope this was of some help to you.

Good luck my friend!


#13 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 19 July 2003 - 03:03 PM

I''ll throw in my 2 cents..

If you already know C++ or Java, then C# takes about an hour to learn (5 minutes for syntax, 55 minutes to browse through the framework and get a general understanding of what''s in it).

So.. IMO, why not learn it? It certainly doesn''t hurt.

Linux compiler can be found here;
www.go-mono.org

Windows compiler can be found here;
www.microsoft.com/net/

There''s also a free IDE for Windows called SharpDevelop (or something like that). I don''t have a link on hand, so search google.

#14 Scyllinice   Members   -  Reputation: 707

Like
Likes
Like

Posted 19 July 2003 - 03:08 PM

I really don''t like Java much at all. Is it that close to Java?

#15 Fredrik Dahlberg   Members   -  Reputation: 122

Like
Likes
Like

Posted 19 July 2003 - 03:27 PM

As I see it, C# is something between C++ and Java. Now, why learn a language that looks like Java but lacks most of the benefits of Java and is less advanced then C++?

#16 Anonymous Poster_Anonymous Poster_*   Guests   -  Reputation:

Likes

Posted 19 July 2003 - 03:34 PM

C# has pointer support, unlike Java.
-N

#17 Ascent   Members   -  Reputation: 122

Like
Likes
Like

Posted 19 July 2003 - 03:44 PM

I don''t think it''s been ported to linux (yet) but Sharp Develop is a pretty nice C# IDE and can be found here: http://www.icsharpcode.net -- a couple of other nice beenfits of it, is that it''s written in C# itself, and it''s open source.

The C# compiler itself comes with the .NET framework, which you have to install whether you use Sharp Develop or Visual Studio.NET or whatever. I''d imagine microsoft.com/net/ would be the place to pick that up, as the previous posted mentioned.

If you''re wanting to go the free route and wanting to develop ASP.NET (i.e. web database) applications and services, you should go to www.asp.net and download WebMatrix. It''s pretty nice. SharpDevelop, as nice as it is, isn''t officially supporting asp.net stuff yet.

Hope all this info helps.

-Ascent







Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS