Click here to Skip to main content
15,891,864 members

Survey Results

Do you generally write your code so it can be ported easily?   [Edit]

Survey period: 14 May 2007 to 20 May 2007

When writing your code do you specifically architect and/or write it with the aim of making it simple to port, or, in fact, reusable in different environments?

OptionVotes% 
Yes, to other operating systems (including UI and security issues)14715.65
Yes, to other devices (eg. mobile devices)838.84
Yes, to other types of application (eg. Windows forms to Web Forms)20421.73
Yes, to other compilers (eg Visual C++ to gcc)11912.67
Yes, to other languages.586.18
Yes, to other chipsets (eg 32 to 64 bit)10911.61
Yes, to other libraries and frameworks (eg MFC to ATL)626.60
Only in specific cases30632.59
No, I never worry about porting my own code37439.83
Respondents were allowed to choose more than one answer; totals may not add up to 100%



 
GeneralI love my code Pin
Tarik Guney18-May-07 12:40
Tarik Guney18-May-07 12:40 
GeneralCleaner Separation enables a robust code Pin
Vasudevan Deepak Kumar16-May-07 0:19
Vasudevan Deepak Kumar16-May-07 0:19 
GeneralRe: Cleaner Separation enables a robust code Pin
John R. Shaw16-May-07 23:51
John R. Shaw16-May-07 23:51 
I agree and am amazed that you even knew what GWBasic was (in 1994), let alone programmed in it. Yes I read your bio. You understand what many people who call their self’s programmers do not, separation of work from UI and the KISS principle.

It is difficult to separate the layers some times, but it is well worth the effort to do so. I am not a business programmer and consider breaking down the essentials into separate units second nature (I have always done that). If you see a pattern, then break it off so that it can be used over and over again.

It still confuses me when I look at some code and point out that they are wasting their time writing the same thing again. There are only three levels to be concerned about: low, middle, and high. The low is systems dependant, the high is UI supplier dependent, and the middle is up for grabs. Meaning that in the middle you can write portable code and if that is portable, you can pretty much ignore the low level.


INTP
"Program testing can be used to show the presence of bugs, but never to show their absence."Edsger Dijkstra

GeneralRe: Cleaner Separation enables a robust code Pin
stensones18-May-07 0:14
stensones18-May-07 0:14 
GeneralIn C++ I use cross-platform libraries- In C# I try to support Mono Pin
irrdev15-May-07 9:44
irrdev15-May-07 9:44 
JokeRe: In C++ I use cross-platform libraries- In C# I try to support Mono Pin
Nemanja Trifunovic16-May-07 1:49
Nemanja Trifunovic16-May-07 1:49 
GeneralRe: In C++ I use cross-platform libraries- In C# I try to support Mono Pin
Adam Tibi17-May-07 5:19
professionalAdam Tibi17-May-07 5:19 
GeneralWhen possible Pin
John R. Shaw14-May-07 17:05
John R. Shaw14-May-07 17:05 
GeneralYes to other operating systems - excluding GUI Pin
Nemanja Trifunovic14-May-07 3:48
Nemanja Trifunovic14-May-07 3:48 
GeneralRe: Yes to other operating systems - excluding GUI Pin
El Corazon14-May-07 6:28
El Corazon14-May-07 6:28 
GeneralRe: Yes to other operating systems - excluding GUI Pin
TomM14-May-07 18:01
TomM14-May-07 18:01 
GeneralRe: Yes to other operating systems - excluding GUI Pin
ed welch14-May-07 21:20
ed welch14-May-07 21:20 
GeneralBy Default (Sometimes) Pin
W Balboos, GHB14-May-07 1:31
W Balboos, GHB14-May-07 1:31 
GeneralRe: By Default (Sometimes) Pin
JimFee14-May-07 5:57
JimFee14-May-07 5:57 
GeneralRe: By Default (Sometimes) Pin
W Balboos, GHB14-May-07 6:15
W Balboos, GHB14-May-07 6:15 
JokeRe: By Default (Sometimes) Pin
Phil.Benson14-May-07 20:30
professionalPhil.Benson14-May-07 20:30 
GeneralRe: By Default (Sometimes) Pin
W Balboos, GHB15-May-07 1:02
W Balboos, GHB15-May-07 1:02 
GeneralNo but Pin
Paul Watson13-May-07 23:20
sitebuilderPaul Watson13-May-07 23:20 

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.