Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 23rd, 2003, 01:13 AM
untwisted untwisted is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Pittsburgh
Posts: 9 untwisted User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 43 sec
Reputation Power: 0
Send a message via ICQ to untwisted Send a message via AIM to untwisted Send a message via Yahoo to untwisted
C# vs. C++

I recently got my hands on Visual Studio.net and it came with C#. Now, I've been using C++ for a while now, and am starting to get into the nitty gritty of windows programming (using GDI, not MFC) and I wanted to know if I should learn C# instead. I mean, I plan on learning some C#, but is C++ still more powerful? I've looked for articles on the subject, but I really wanted to hear some people's oppinions. What do you guys think? Is C# as clean as C++? Is it as powerful? As fast?

Thanks for your input!

-untwisted

Reply With Quote
  #2  
Old June 23rd, 2003, 11:03 AM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,382 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 4 Weeks 11 h 1 m 51 sec
Reputation Power: 1784
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
There's a C Languages and C# forum in here... you may have better luck asking in one of those...

---John Holmes...

Reply With Quote
  #3  
Old June 23rd, 2003, 11:05 AM
Onslaught's Avatar
Onslaught Onslaught is offline
/(bb|[^b]{2})/
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: Nov 2001
Location: Somewhere in the great unknown
Posts: 4,840 Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level)Onslaught User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 2 Days 27 m 47 sec
Reputation Power: 88
Send a message via ICQ to Onslaught
Actually I moved this from there, thought that the poster would get more un-biased answers here than double posting in the other two forums.

Reply With Quote
  #4  
Old June 23rd, 2003, 11:10 AM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,382 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 4 Weeks 11 h 1 m 51 sec
Reputation Power: 1784
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
Oh... show's what I know.

Reply With Quote
  #5  
Old June 23rd, 2003, 11:16 AM
untwisted untwisted is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Pittsburgh
Posts: 9 untwisted User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 43 sec
Reputation Power: 0
Send a message via ICQ to untwisted Send a message via AIM to untwisted Send a message via Yahoo to untwisted
Ya, I wasn't sure which to post in so I just posted in both. I did the same on the codeproject.com boards, and got an interresting result. It seems as though everyone in the C++ board disliked C#, or knew little of it while those in the C# boards seemed to give me good answeres :P

Thanks!

-Brian

Reply With Quote
  #6  
Old June 23rd, 2003, 11:21 AM
icrf's Avatar
icrf icrf is offline
Perl Monkey
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2003
Location: the far end of town where the Grickle-grass grows
Posts: 1,856 icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 10 h 28 m 31 sec
Reputation Power: 103
Send a message via AIM to icrf
If you're programming entirely in windows (which you must be to be considering C# at this point) and you're not programming very time critical things (games, CAD, etc), then C# can vastly decrease your development time. Ever made a GUI in VB? It's all kinds of stupid easy. You'll have to get used to the excessively object-oriented nature of C# (if you know any java, you'll feel right at home), but it's really not difficult to pick up. I've known several people, from both Java and C++ backgrounds, that now perfer C# to anything else. I'd give it a try.

It runs slower than C++, but not excessively slow. I mean, it's not java slow or anything. Plus, we have gobs of extra computing power in this world. There's even an unsafe mode in C# that lets you use real pointers, like C++, for real speedy number crunching secions.

Reply With Quote
  #7  
Old June 23rd, 2003, 11:26 AM
untwisted untwisted is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Pittsburgh
Posts: 9 untwisted User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 43 sec
Reputation Power: 0
Send a message via ICQ to untwisted Send a message via AIM to untwisted Send a message via Yahoo to untwisted
AhhH! That's the kind of reply I've been looking for! Much thanks! My main problem is convincing a friend to switch to C# for a program we're going to be working on. He is stoneset in C++ and I don't think Bill Gates himself could change the guy's mind. This is the kind of reply that might just change it though! Much thanks!


-Brian

Reply With Quote
  #8  
Old June 23rd, 2003, 11:52 AM
Sepodati's Avatar
Sepodati Sepodati is offline
Banned
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Dec 1999
Location: Afghanistan
Posts: 14,382 Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)Sepodati User rank is General 12nd Grade (Above 100000 Reputation Level)  Folding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate FolderFolding Points: 70626 Folding Title: Intermediate Folder
Time spent in forums: 2 Months 4 Weeks 11 h 1 m 51 sec
Reputation Power: 1784
Send a message via ICQ to Sepodati Send a message via Yahoo to Sepodati
What kind of project, though?

Reply With Quote
  #9  
Old June 23rd, 2003, 11:54 AM
untwisted untwisted is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Pittsburgh
Posts: 9 untwisted User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 43 sec
Reputation Power: 0
Send a message via ICQ to untwisted Send a message via AIM to untwisted Send a message via Yahoo to untwisted
A client/server windows application.

Reply With Quote
  #10  
Old June 23rd, 2003, 01:15 PM
icrf's Avatar
icrf icrf is offline
Perl Monkey
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: May 2003
Location: the far end of town where the Grickle-grass grows
Posts: 1,856 icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level)icrf User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 10 h 28 m 31 sec
Reputation Power: 103
Send a message via AIM to icrf
I'm pretty sure networking is vastly simplified in C#. Really, C# gets (pretty fairly) compared to java a lot (there's at least two threads in the C# forum for that comparison, on named "C# sucks!" and the other one more appropriate), and socket programming in java is a lot easier than C++. I could only imagine it got better with C#.

If you did the project in C++, would you use Visual Studio, or at least Windows?

Reply With Quote
  #11  
Old June 23rd, 2003, 01:34 PM
untwisted untwisted is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Pittsburgh
Posts: 9 untwisted User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 43 sec
Reputation Power: 0
Send a message via ICQ to untwisted Send a message via AIM to untwisted Send a message via Yahoo to untwisted
We'd be using Visual studio, and visual C++ I guess. I'm trying to sway him toward using C#. I want this app done quickly. I'm willing to sacrafice a bit of speed. *sigh*

Reply With Quote
  #12  
Old June 24th, 2003, 09:54 AM
drgroove's Avatar
drgroove drgroove is offline
pushing envelopes, not pencils
Dev Shed God 2nd Plane (6000 - 6499 posts)
 
Join Date: Feb 2002
Posts: 6,225 drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level)drgroove User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Day 4 h 44 m 44 sec
Reputation Power: 174
Quote:
Originally posted by icrf

It runs slower than C++, but not excessively slow. I mean, it's not java slow or anything.


I'm sorry, but what is 'java slow'? Speed might have been an issue with java applications in the late 90's, but it is not an issue today. Perpetuating the myth that 'java is slow' is just foolish.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever.
Analyze twice; hack once.
The world's first existential ITIL question: If a change is released into production without a ticket to track it,
was it actually released?


About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect -
Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire


Reply With Quote
  #13  
Old June 24th, 2003, 11:42 AM
untwisted untwisted is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Pittsburgh
Posts: 9 untwisted User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 45 m 43 sec
Reputation Power: 0
Send a message via ICQ to untwisted Send a message via AIM to untwisted Send a message via Yahoo to untwisted
No no no, I've played with java for the past year now, and I have noticed a speed difference. Plus, there's no way around a bit of a speed setback when using the JVM, things always go slower with an intermediary involved.

Reply With Quote
  #14  
Old June 24th, 2003, 12:06 PM
drgroove's Avatar
drgroove drgroove is offline