English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 21 May 2007, 14:33   #21
zenox98
Joy Division
 
zenox98's Avatar
 
Join Date: Nov 2006
Location: East Yorkshire
Age: 60
Posts: 243
What about c#? Is this significantly different to c++?
zenox98 is offline  
Old 21 May 2007, 14:54   #22
Zetr0
Ya' like it Retr0?
 
Zetr0's Avatar
 
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
@zenox98

the main difference between c# and c++ really comes down to portability and dare i say c# is a microsoft attempt of proprietising C and C++

Microsoft created it with Anders Hejlsberg the former Turbo Pascal and Delphi luminary who was the most prominent Borland staff also Jbuilder team worked together with him.

This language has been developed specifically with the .NET framework in mind, and as such is designated to be the .NET developer's language of choice. C#, was one of the first component oriented programming language. not that this means much toffee in todays world, i use c++ for when when i code in .net.

Honestly the rejects from borland and the blood-money from microsoft came together to create a barstardized frankenstien monster known as c#

I have used c#, you can almost feel the delphi-ness of it.... ( i dont like delphi, its a language made for the matter of it *and for those whom couldn`t cut it using 'C'*)

realistically c# is an M$ proprietry wich makes it a bastard to port IMO to any GCC or GNU platform. to combat this and swing megasofts corperate arms even tighter arround the clutches of computer-dom they released a lot of free platfom configurations.

man now did this post turn into a rant!

sorry about that....
Zetr0 is offline  
Old 21 May 2007, 16:08   #23
zenox98
Joy Division
 
zenox98's Avatar
 
Join Date: Nov 2006
Location: East Yorkshire
Age: 60
Posts: 243
@Zetr0

The rant is fine

I did consider learning C# just because it was free with the XNA Game Studio, which I'm playing with. If I go the route of C++ at least I'll have a more thorough grounding then.

Thanx for the heads up!
zenox98 is offline  
Old 22 May 2007, 00:58   #24
ant512
Registered User
 
Join Date: Dec 2002
Location: California
Posts: 965
C# is much closer to Java than C++. I'm pretty sure it's a published standard; it's been ported to Linux as part of Mono, so if you learn it you're not completely throwing yourself into Microsoft-only land. The major differences between C++ and C# are:

- Automatic garbage collection. Forget to free memory you allocate in C++ and you get memory leaks. Forget to do it in C# and the garbage collector will do it for you. Not that you can really do it because...
- C# hides memory access away from you. No pointers, no direct memory access, etc.
- Everything is an object (with the exception of a handful of primitives, such as the int, but they can be converted into objects by "boxing" them); you can't have functions floating around outside of objects as you can in C++.
- Single-inheritance only, to simplify things.
- No header files.
- No need to work out which files in your project need to include other files; this is all done for you.
- Strings are part of the language rather than being included by a standard library.

There are plenty of other differences, too.

All of this makes C# code much easier to write, but you gain this ease of use by trading in all of C++'s low-level power. There will be a learning curve regardless of whether you choose to start with C++ or C#. C++ will teach you more about how everything works, whilst C# will teach you tidier object-orientation techniques. You'll also be able to switch to Java without any real effort, as C# and Java are (in terms of basic syntax, philosophy and core language features) identical.

Thinking about it, there's probably as much similarity between C# and C++ as there is between C# and Javascript. Ignore the "C" in the name; it doesn't really signify any direct lineage. There's no way C# could possibly usurp C++, as the two are squarely aimed at different tasks. C# is designed for writing business applications - it's easy to code in but slow, runs in a VM and therefore is far too abstracted away from the hardware to replace C++. C++ provides much more access to the capabilities of the host computer and much greater control over every aspect of the application as it runs. I seriously doubt you'll see embedded systems being written in C# for a good few years yet.

Last edited by ant512; 22 May 2007 at 01:06.
ant512 is offline  
Old 22 May 2007, 01:04   #25
eLowar
Citizen of Elthesh
 
eLowar's Avatar
 
Join Date: Sep 2003
Location: UK
Posts: 949
It all comes down to personal preference and the nature of the projects you intend to tackle. I personally feel more comfortable having the ability to do things on a low level when I want to. And there are libraries and techniques for C++ that hide much of the more problematic aspects of the language, i.e. smart pointers for a sort of garbage collection.
eLowar is offline  
Old 22 May 2007, 03:13   #26
IFW
Moderator
 
IFW's Avatar
 
Join Date: Jan 2003
Location: ...
Age: 52
Posts: 1,838
If you are interested in gaming as XNA suggests I recommend you learn something relevant, which is C/C++.
IFW is offline  
Old 22 May 2007, 03:22   #27
Zetr0
Ya' like it Retr0?
 
Zetr0's Avatar
 
Join Date: Jul 2005
Location: United Kingdom
Age: 49
Posts: 9,768
*whispers* (C++ and OpenGL: "if there was a god, it is how he/she would intend it!" )
Zetr0 is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
A few questions Muzer project.ClassicWB 10 12 September 2009 14:14
Questions... Jeeva Amiga scene 5 04 April 2008 23:45
Three Little Questions. mindjoker support.Hardware 2 16 March 2003 03:38
Two questions Drakon request.Old Rare Games 7 19 November 2002 19:33
A few questions! One1 New to Emulation or Amiga scene 2 30 October 2002 17:41

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 20:24.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.11604 seconds with 13 queries