Click here to Skip to main content
15,909,498 members

Survey Results

What features are most important to you in a programming language?   [Edit]

Survey period: 17 Dec 2007 to 24 Dec 2007

If one language did everything there would only be one language... (suggested by Milan1612)

OptionVotes% 
Automatic memory management93649.81
Industry acceptance as a "standard" language80142.63
Support for Object Oriented Programming1,50279.94
Templates or Generics77141.03
Strong Typing94450.24
Inbuilt support for regular expressions46824.91
Support for reflection55129.32
Cross-platform support76440.66
Support for default parameter values in functions43222.99
Namespace support68036.19
Support for First-class functions25313.46
An extensive standard library1,22565.19
Multiple return values from functions32917.51
Compile to native code (instead of byte code or intermediate code)64034.06
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
GeneralRe: Multiple return values from functions? Pin
PIEBALDconsult20-Dec-07 17:24
mvePIEBALDconsult20-Dec-07 17:24 
GeneralRe: Multiple return values from functions? Pin
Anton Afanasyev19-Dec-07 11:28
Anton Afanasyev19-Dec-07 11:28 
AnswerRe: Multiple return values from functions? [modified] Pin
Marshall Rosenstein20-Dec-07 6:09
Marshall Rosenstein20-Dec-07 6:09 
GeneralRe: Multiple return values from functions? Pin
Anton Afanasyev20-Dec-07 17:07
Anton Afanasyev20-Dec-07 17:07 
GeneralRe: Multiple return values from functions? Pin
PIEBALDconsult18-Dec-07 10:04
mvePIEBALDconsult18-Dec-07 10:04 
JokeRe: Multiple return values from functions? Pin
Xiangyang Liu 刘向阳18-Dec-07 11:00
Xiangyang Liu 刘向阳18-Dec-07 11:00 
GeneralRe: Multiple return values from functions? Pin
leppie18-Dec-07 21:10
leppie18-Dec-07 21:10 
GeneralRe: Multiple return values from functions? Pin
DQNOK19-Dec-07 5:48
professionalDQNOK19-Dec-07 5:48 
Xiangyang Liu wrote:
it will return { True, False, NotSure, WhateverAnswerYouWant }


No, not an enumerated value, actually two or more values; like MatLab

(x,y) = getXandYvalues();


A good language allows a programmer to *quickly* convert the ideas in their mind to simple, easy to understand language constructs (lines of code), while enforcing enough "discipline" to keep the programmer out of trouble. Yes, a programmer can always go declare a struct or class to return multiple values, but I have found over the years that this is a real roadblock to creative thinking. I have to stop what I'm doing, go find a good place in the code to declare the new struct (give it the proper scope), think of a good descriptive name for it (and make sure it doesn't clash), worry about "what happens if someone uses this for...", i.e. I have to start building constructors and destructors, etc. All in all, by the time I'm finished with the struct to return more than one value, I've forgotten why I wanted it in the first place!

To paraphrase an old adage; I just wanted to know what time it was, but the language forced me to build a watch!
David
---------
Empirical studies indicate that 20% of the people drink 80% of the beer. With C++ developers, the rule is that 80% of the developers understand at most 20% of the language. It is not the same 20% for different people, so don't count on them to understand each other's code.
http://yosefk.com/c++fqa/picture.html#fqa-6.6

---------

GeneralRe: Multiple return values from functions? Pin
PIEBALDconsult20-Dec-07 18:01
mvePIEBALDconsult20-Dec-07 18:01 
GeneralA good IDE Pin
Nibu babu thomas17-Dec-07 21:17
Nibu babu thomas17-Dec-07 21:17 
GeneralRe: A good IDE Pin
Vasudevan Deepak Kumar17-Dec-07 23:01
Vasudevan Deepak Kumar17-Dec-07 23:01 
GeneralRe: A good IDE Pin
Nibu babu thomas17-Dec-07 23:12
Nibu babu thomas17-Dec-07 23:12 
GeneralAdvanced dev Pin
Paul Watson18-Dec-07 22:38
sitebuilderPaul Watson18-Dec-07 22:38 
GeneralRe: Advanced dev Pin
Nibu babu thomas19-Dec-07 0:12
Nibu babu thomas19-Dec-07 0:12 
GeneralRe: Advanced dev Pin
Paul Watson19-Dec-07 0:22
sitebuilderPaul Watson19-Dec-07 0:22 
GeneralRe: Advanced dev Pin
Nibu babu thomas19-Dec-07 0:40
Nibu babu thomas19-Dec-07 0:40 
GeneralRe: Advanced dev Pin
Paul Watson19-Dec-07 0:50
sitebuilderPaul Watson19-Dec-07 0:50 
GeneralRe: A good IDE Pin
Paul Watson18-Dec-07 22:36
sitebuilderPaul Watson18-Dec-07 22:36 
GeneralRe: A good IDE Pin
Vasudevan Deepak Kumar19-Dec-07 2:43
Vasudevan Deepak Kumar19-Dec-07 2:43 
GeneralSo many missing aspects Pin
leppie17-Dec-07 20:32
leppie17-Dec-07 20:32 
GeneralRe: So many missing aspects Pin
Gary Wheeler18-Dec-07 1:31
Gary Wheeler18-Dec-07 1:31 
GeneralRe: So many missing aspects Pin
leppie18-Dec-07 10:24
leppie18-Dec-07 10:24 
GeneralRe: So many missing aspects Pin
PIEBALDconsult18-Dec-07 9:59
mvePIEBALDconsult18-Dec-07 9:59 
GeneralRe: So many missing aspects Pin
leppie18-Dec-07 10:21
leppie18-Dec-07 10:21 
GeneralNo text box. How do we mention RAII? Pin
Nathan Holt at EMOM17-Dec-07 7:41
Nathan Holt at EMOM17-Dec-07 7:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.