Software Design
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreSoftware Design

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 11th, 2010, 03:17 AM
arasem arasem is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 139 arasem User rank is Corporal (100 - 500 Reputation Level)arasem User rank is Corporal (100 - 500 Reputation Level)arasem User rank is Corporal (100 - 500 Reputation Level)arasem User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 10
C++ Java or .net.. when do you use each

Hi all,
I have a general question for all of you out there. I know there are tons of websites about it but I want to know YOUR view on it from your experience. There are 3 big programming world: C++/JAVA/.net.. I know some would argue there are others but lets take these as the major one given they are taught academically and relatively wide spread.
My question is , when do you use which?.. In other words, when you design an application, how do you make a decision on which language to use for your app?
I always fall in this trap and I don't know the right answer.(or the most right)
Thanks

Reply With Quote
  #2  
Old June 11th, 2010, 06:55 AM
jzd's Avatar
jzd jzd is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2007
Posts: 1,940 jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 4 h 7 m 2 sec
Reputation Power: 3116
The "right" answer would depend on the situation, but when you say .net I assume you mean just C# in which case you are asking the question: " I need to haul a load of bricks how do I know whether to use a old Dodge Truck/ a newer Chevy Truck / or a newer Ford Truck?" One might be slightly better in certain cases but they all do about the same thing so a lot of times the decision is made in terms of cost. If you have a team with experience with C# then you training them to use Java is a cost that Java would have to have noticeable benefits over C# to be selected in a situation.

The easier more common question would be do we build this as a client desktop app or a web app. That is like asking do we use the 15 passenger van or the compact pickup.

If these 3 are the only big programming languages then you won't get very far. What about PHP? SQL? Python? Perl? Ruby? Javascript? VB? COBOL? Delphi? Coldfusion?

Reply With Quote
  #3  
Old June 13th, 2010, 01:36 AM
arasem arasem is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 139 arasem User rank is Corporal (100 - 500 Reputation Level)arasem User rank is Corporal (100 - 500 Reputation Level)arasem User rank is Corporal (100 - 500 Reputation Level)arasem User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 10
Quote:
Originally Posted by jzd
The "right" answer would depend on the situation, but when you say .net I assume you mean just C# in which case you are asking the question: " I need to haul a load of bricks how do I know whether to use a old Dodge Truck/ a newer Chevy Truck / or a newer Ford Truck?" One might be slightly better in certain cases but they all do about the same thing so a lot of times the decision is made in terms of cost. If you have a team with experience with C# then you training them to use Java is a cost that Java would have to have noticeable benefits over C# to be selected in a situation.

The easier more common question would be do we build this as a client desktop app or a web app. That is like asking do we use the 15 passenger van or the compact pickup.

If these 3 are the only big programming languages then you won't get very far. What about PHP? SQL? Python? Perl? Ruby? Javascript? VB? COBOL? Delphi? Coldfusion?


Thanks for your reply.. I was assuming the cost is not a problem. lets say its only me developing a client app then I always fall in the above question trap.. yes I meant C# for ssome reason i keep calling it .net :s

ohh I knew somehow the idea of " not only these langauges are big", and thats why I said academically. becuase talking about how wide spread and what schools (as in universities) teach mostly, then I chose these 3 langauges.

Cobol! comooooon! isnt that dead yet? unless we are talking maintainance not development from scracth

Reply With Quote
  #4  
Old June 13th, 2010, 09:36 AM
E-Oreo's Avatar
E-Oreo E-Oreo is online now
Lost in code
Click here for more information.
 
Join Date: Dec 2004
Posts: 7,938 E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)E-Oreo User rank is General 91st Grade (Above 100000 Reputation Level)  Folding Points: 945 Folding Title: Novice Folder
Time spent in forums: 2 Months 9 h 5 m 58 sec
Reputation Power: 7053
Cost is still the dominating factor though, as far as capabilities all of them are pretty much equal. An experienced programmer in any of the three will be able to program an average piece of code with about the same level of effort and time.

Java is easier to go cross platform with. C (not C++) is easier to use with embedded systems. C++ or C# are easier for interfacing with the Windows API's.
Comments on this post
jzd agrees!
__________________
PHP FAQ
How to program a basic, secure login system using PHP

Quote:
Originally Posted by Spad
Ah USB, the only rectangular connector where you have to make 3 attempts before you get it the right way around

Reply With Quote
  #5  
Old June 14th, 2010, 06:42 AM
jzd's Avatar
jzd jzd is offline
Contributing User
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2007
Posts: 1,940 jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level)jzd User rank is General 32nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 2 Weeks 1 Day 4 h 7 m 2 sec
Reputation Power: 3116
Quote:
Originally Posted by arasem
Cobol! comooooon! isnt that dead yet? unless we are talking maintainance not development from scracth


You said programming world in your OP and did not specify new or existing programing. So in total, COBOL is still around. Which makes sense because a large majority of programming is maintenance. But there is still new development that happens in COBOL (even if it is less than many other languages) .


But going back to 3 main languages academically I would have to disagree. The main languages my school used (about 5 years ago) were Lisp, Python, Java, Smalltalk, C, and PHP.

Reply With Quote
  #6  
Old June 14th, 2010, 05:07 PM
arasem arasem is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 139 arasem User rank is Corporal (100 - 500 Reputation Level)arasem User rank is Corporal (100 - 500 Reputation Level)arasem User rank is Corporal (100 - 500 Reputation Level)arasem User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 11 h 16 m 54 sec
Reputation Power: 10
Quote:
Originally Posted by E-Oreo
Cost is still the dominating factor though, as far as capabilities all of them are pretty much equal. An experienced programmer in any of the three will be able to program an average piece of code with about the same level of effort and time.

Java is easier to go cross platform with. C (not C++) is easier to use with embedded systems. C++ or C# are easier for interfacing with the Windows API's.



Amazing , last statement is what mainly i was looking for .
Thanks a lot for the hint

Reply With Quote
  #7  
Old June 15th, 2010, 01:29 AM
jwdonahue's Avatar
jwdonahue jwdonahue is offline
Bellevue WA, USA
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: May 2004
Location: Bellevue Washington, USA
Posts: 3,398 jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level)jwdonahue User rank is Lieutenant General (80000 - 90000 Reputation Level) 
Time spent in forums: 3 Weeks 5 Days 6 h 48 m 17 sec
Reputation Power: 886
Actually, the Windows API's are all written in C and some of them are absolutely antithetical to common practice in C++ (the use of non-const in params for instance).

C#'s run-time library is .NET so you get a lot richer and easier to use built-in library for Windows than you do with C++. .NET is available for C++ but it involves some ugly language extensions that are best left in the computing history bit-bucket. MFC is a C++ application framework for Windows that is actually superior in many respects to .NET, but it was poorly designed, used to be full of defects and probably isn't getting the care and attention it needs from Microsoft these days.

As an "academic exercise", limiting yourself to just those three languages to select from is foolish. In fact, if you intend to have much of a career, you'll need to be proficient in all three and at least handful of others eventually.
__________________
My worst nightmare was a pointless infinite loop.
Work in progress; don't poke the curmudgeon!
http://www.odonahue.com/

Reply With Quote
  #8  
Old August 6th, 2010, 07:28 AM
Jamesybaby11 Jamesybaby11 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2009
Posts: 15 Jamesybaby11 User rank is Sergeant Major (2000 - 5000 Reputation Level)Jamesybaby11 User rank is Sergeant Major (2000 - 5000 Reputation Level)Jamesybaby11 User rank is Sergeant Major (2000 - 5000 Reputation Level)Jamesybaby11 User rank is Sergeant Major (2000 - 5000 Reputation Level)Jamesybaby11 User rank is Sergeant Major (2000 - 5000 Reputation Level)Jamesybaby11 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 15 h 55 m 50 sec
Reputation Power: 0
Quote:
Cobol! comooooon! isnt that dead yet? unless we are talking maintenance not development from scracth


In my work, we still use COBOL. We use it for both for maintainance and development from scratch.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreSoftware Design > C++ Java or .net.. when do you use each

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap