According to Ramon van Handel ([EMAIL PROTECTED]):
> I posted this before, but it doesn't seem to have gotten on the list ---
> isn't it a better idea to write the GUI code in C ? In Java, none of the
> code is reusable, which is a shame...
There are a number of problems with using C for a prototype:
- you are forced to instantly make the decision of what toolkit to use
(gtk, qt, motif, mfc ...), instead of being able to delay this choice
until the GUI code actually get's implemented in the Real Thing.
- you will have to focus on one architecture, while something like java
works exactly the same on win32, linux, solaris, and a few others I
forgot. This means that more people can contribute to the code.
- there are absolutely no plans whatsoever on how the final GUI code,
including hooks, is going to look like. So even if we were to write this
in C, we'd probably be forced to rewrite large portions of it just
because the code doesn't fit the rest of the project.
- your focus shifts from the User Interface to the code.
It would be perfectly possible to make a prototype in C instead, but it
would be a whole lot more difficult.
According to Ramon van Handel ([EMAIL PROTECTED]) in another message:
> >BTW: what GUI lib would yo use to be portable in C?
>
> Well-coded programs should be independant of this. You can separate out
> the main GUI code from the platform-specific implementation. If you do
> this right,
> it doesn't really matter what GUI lib you initially use to prototype.
A GUI toolkit such as MFC is quite different from something like GTK, so
either this would mean we'd have to use some cross-platform toolkit
(wxWindows? GTK ported to win32?), or write something by ourselves. Either
way, it would mean focusing on the code, instead of on the interface.
> The BOCHS gui code is probably a good example.
It probably is, but the Bochs GUI code doesn't have things like settings
panels (which I'm working on right now btw) or menu bars, so getting this to
work cross-platform doesn't involve much work (no offence).
Wouter
--
* Wouter Coene * [EMAIL PROTECTED], [EMAIL PROTECTED] *
* PGP key on request * UNIX/PHP/SQL/OS development *
Daily crap:
GREAT MOMENTS IN HISTORY (#7): April 2, 1751
Issac Newton becomes discouraged when he falls up a flight of stairs.