Ultimate++
Mirek Fidler
cxl at ntllib.org
Fri Feb 2 14:24:06 PST 2007
On Jan 30, 10:25 pm, rob... at roebling.de (Robert Roebling) wrote:
> n.torrey.pi... at gmail.com wrote:
> > Robert wrote:
>
> > > > Ultimate++ has a page where it compares itself to wxWidgets,
> > > > using "Bombs" example program.: [...]
>
> > > > I counted 129 lines of code that contain alpha-numeric characters
> > > > in Ultimate++ version vs 417 in wxWidgets. Thus, the example is
> > > > 3 times shorter in Ultimate++.
>
> > > I don't know why you post this here, but it should be trivial
> > > to make the bombs samples shorter using wxWidgets.
>
> > 3 times shorter or just shorter?
>
> The version in Ultimate++ (stripped of comments etc) has 229 lines
> and my short version (below) using wxWidgets has 262 lines. The only
> technical difference (in the sample) seems to be that Ultimate++
> doesn't need IDs since it combines the line, which defines e.g.
> a menu and the line which binds it to the code. Whereas in
> wxWidgets, we now write
>
> const int ID_EXIT = 101;
> file_menu->Append( ID_EXIT, wxT("Exit") );
> Connect( ID_EXIT, ..., MyFrame::OnExit ).
>
> we could probably add an overload that does this
>
> file_menu->AppendAndConnect( wxT("Exit"), ..., MyFrame::OnExit );
>
> using wxNewId() internally. As I said before, all this means
> and proves nothing. Noone chooses a toolkit for saving
> 14% typing since all that is done using GUI editors anyway.
>
> > > Which, of course, shows, proves and means exactly nothing.
>
> > I could knock out Mike Tyson in one round, but I'm not going to do
> > it, because violence is not the answer :-P
>
> See attachment. Robert: 1, Tyson: 0.
>
> Robert
>
> wxbombs.cpp
> 7KDownload
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscr... at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-h... at lists.wxwidgets.org
Thanks, updating U++ website with this vestion ASAP.
--
Mirek Fidler
U++ team leader. http://www.ultimatepp.org
More information about the wx-users
mailing list