M
MJL
I am trying to figure out how to make my code as portable as possible.
I do not really use much of the STL. I could get by with a linked
list of strings. Microsoft does provide an object list and a string
list class but then I have to rewrite my code when using Borland or
other environments.
The other problem is GUIs. I know it is best to separate the
functional code from the visual interface code, but that still leaves
a lot of work to do when porting to another platform. Maybe the GUI
concept is over-rated and can be done away with for programs used in
the workplace that have to be functional but not pretty.
So to be most portable, I will write a linked list of strings class
and minimize use of GUI components. Any other ideas?
I am not going to:
1) Switch to Java.
2) Buy a library to supplement a deficient one.
Maybe it does pay to re-invent the wheel occasionally.
I do not really use much of the STL. I could get by with a linked
list of strings. Microsoft does provide an object list and a string
list class but then I have to rewrite my code when using Borland or
other environments.
The other problem is GUIs. I know it is best to separate the
functional code from the visual interface code, but that still leaves
a lot of work to do when porting to another platform. Maybe the GUI
concept is over-rated and can be done away with for programs used in
the workplace that have to be functional but not pretty.
So to be most portable, I will write a linked list of strings class
and minimize use of GUI components. Any other ideas?
I am not going to:
1) Switch to Java.
2) Buy a library to supplement a deficient one.
Maybe it does pay to re-invent the wheel occasionally.