Click here to Skip to main content
16,004,860 members

Survey Results

What do you specifically optimise for when programming?   [Edit]

Survey period: 30 Mar 2009 to 6 Apr 2009

Harder, better, faster, stronger. What parts of your programs do you focus on when optimising?

OptionVotes% 
Speed of execution of core functionality67365.59
Responsiveness of UI60959.36
Memory consumption35834.89
Power consumption333.22
Network utilisation17517.06
Data access speed (including caching)47546.30
Data storage size15014.62
Ease of use54953.51
I don"t optimise my code646.24
Other595.75
Respondents were allowed to choose more than one answer; totals may not add up to 100%

View optional text answers (65 answers)


 
GeneralDefensive Coding Pin
Natza Mitzi5-Apr-09 11:12
Natza Mitzi5-Apr-09 11:12 
GeneralRe: Defensive Coding Pin
Ernest Laurentin5-Apr-09 11:24
Ernest Laurentin5-Apr-09 11:24 
GeneralRe: Defensive Coding Pin
Natza Mitzi5-Apr-09 19:08
Natza Mitzi5-Apr-09 19:08 
GeneralRe: Defensive Coding Pin
John M. Drescher6-Apr-09 3:19
John M. Drescher6-Apr-09 3:19 
AnswerMaintainability Pin
Edw3-Apr-09 11:39
Edw3-Apr-09 11:39 
GeneralRe: Maintainability Pin
JamesA_Dev6-Apr-09 22:45
JamesA_Dev6-Apr-09 22:45 
GeneralMy time Pin
Marc Clifton1-Apr-09 1:40
mvaMarc Clifton1-Apr-09 1:40 
GeneralUsers' time Pin
Nemanja Trifunovic1-Apr-09 4:17
Nemanja Trifunovic1-Apr-09 4:17 
GeneralRe: My time Pin
Ernest Laurentin1-Apr-09 12:35
Ernest Laurentin1-Apr-09 12:35 
GeneralIt really depends... Pin
Ray Cassick31-Mar-09 8:04
Ray Cassick31-Mar-09 8:04 
RantMaintainability/Readability is not optimization... Pin
Jon Rista31-Mar-09 7:39
Jon Rista31-Mar-09 7:39 
In interesting result has come out of this poll, and being the fastidious programmer I am, I have to say something about it. Most of the comments in response to this poll note maintainability as an "optimization". You could look at good maintainability as "optimizing for the reader", but there is already a term for that: Maintainability!

Optimization is tuning an application to meet a required performance bar. There are usually many ways to achieve that performance bar, and many factors involved (cpu load, memory load, bandwidth, efficiency of algorithms, proper design and architecture, etc. etc.) Sometimes optimizations can be done while improving maintainability. More often than not (im my experience at least), optimizing an algorithm can result in the order of statements becomming "less obvious", which makes the code less understandable (thereby affecting maintainability).

Refactoring is tuning an application to meet the needs of developers and improve maintainability. This is usually the purpose and result of reorganizing and restructuring code (See Refactoring), taking complex methods and classes, breaking them down into smaller, more cohesive, more meaningful subcomponents of the whole.

I think its important that this distinction is understood:

* Optimization tunes an application for performance.
* Refactoring tunes an application for developers and maintainability.

Ok, rant over. :P
GeneralRe: Maintainability/Readability is not optimization... Pin
Thomas Weller31-Mar-09 8:14
Thomas Weller31-Mar-09 8:14 
GeneralRe: Maintainability/Readability is not optimization... Pin
Jon Rista31-Mar-09 8:18
Jon Rista31-Mar-09 8:18 
GeneralRe: Maintainability/Readability is not optimization... Pin
Thomas Weller31-Mar-09 8:25
Thomas Weller31-Mar-09 8:25 
GeneralRe: Maintainability/Readability is not optimization... Pin
Ben Morrison31-Mar-09 12:47
Ben Morrison31-Mar-09 12:47 
GeneralRe: Maintainability/Readability is not optimization... Pin
Jon Rista31-Mar-09 15:16
Jon Rista31-Mar-09 15:16 
GeneralRe: Maintainability/Readability is not optimization... Pin
Thomas Weller31-Mar-09 21:00
Thomas Weller31-Mar-09 21:00 
GeneralRe: Maintainability/Readability is not optimization... Pin
PedroMC1-Apr-09 1:53
PedroMC1-Apr-09 1:53 
GeneralMaintainability, Readability, and Reusability Pin
Thomas Weller31-Mar-09 7:32
Thomas Weller31-Mar-09 7:32 
GeneralRe: Maintainability, Readability, and Reusability Pin
Viral Upadhyay1-Apr-09 18:50
Viral Upadhyay1-Apr-09 18:50 
GeneralOptimize for code simplicity and correctness PinPopular
PedroMC31-Mar-09 0:17
PedroMC31-Mar-09 0:17 
GeneralRe: Optimize for code simplicity and correctness Pin
Jon Rista31-Mar-09 6:28
Jon Rista31-Mar-09 6:28 
GeneralRe: Optimize for code simplicity and correctness Pin
PedroMC31-Mar-09 7:10
PedroMC31-Mar-09 7:10 
GeneralRe: Optimize for code simplicity and correctness Pin
Jon Rista31-Mar-09 7:33
Jon Rista31-Mar-09 7:33 
GeneralRe: Optimize for code simplicity and correctness Pin
Nemanja Trifunovic31-Mar-09 6:33
Nemanja Trifunovic31-Mar-09 6:33 

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.