English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 21 May 2007, 15:33   #21
zenox98
Komakino

zenox98's Avatar
 
Join Date: Nov 2006
Location: East Yorkshire
Age: 53
Posts: 172
What about c#? Is this significantly different to c++?
zenox98 is offline  
AdSense AdSense  
Old 21 May 2007, 15:54   #22
Zetr0
Ya' like it Retr0?
Zetr0's Avatar
 
Join Date: Jul 2005
Location: United Kingdom
Age: 42
Posts: 9,769
@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, 17:08   #23
zenox98
Komakino

zenox98's Avatar
 
Join Date: Nov 2006
Location: East Yorkshire
Age: 53
Posts: 172
@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, 01:58   #24
ant512
Registered User
 
Join Date: Dec 2002
Location: California
Posts: 942
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 02:06.
ant512 is offline  
Old 22 May 2007, 02:04   #25
eLowar
Citizen of Elthesh
eLowar's Avatar
 
Join Date: Sep 2003
Location: London, 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, 04:13   #26
IFW
Moderator
IFW's Avatar
 
Join Date: Jan 2003
Location: ...
Age: 46
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, 04:22   #27
Zetr0
Ya' like it Retr0?
Zetr0's Avatar
 
Join Date: Jul 2005
Location: United Kingdom
Age: 42
Posts: 9,769
*whispers* (C++ and OpenGL: "if there was a god, it is how he/she would intend it!" )
Zetr0 is offline  
AdSense AdSense  
 


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 15:14
Questions... Jeeva Amiga scene 5 05 April 2008 00:45
Three Little Questions. mindjoker support.Hardware 2 16 March 2003 04:38
Two questions Drakon request.Old Rare Games 7 19 November 2002 20:33
A few questions! One1 New to Emulation or Amiga scene 2 30 October 2002 18: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 03:54.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Page generated in 0.16099 seconds with 14 queries