Re: size_t problems



Malcolm McLean wrote:


"Kelsey Bjarnason" <kbjarnason@xxxxxxxxx> wrote in message
news:cl9rq4-8cc.ln1@xxxxxxxxxxxxxxxxxxxxxxx
On Sat, 01 Sep 2007 20:16:43 +0100, Malcolm McLean wrote:

No, limited experience, Not the same thing as incompetence at all.

If you write say, mainly code to drive GUIs under Windows, you will find
>> that there's little point making much portable. Everything has to be
ripped
up and rewritten whenever the denizens of Redmond decide to realease a
new compiler anyway.

He said incompetence, and you just demonstrated it.

If I were writing such apps, I'd write the body of the code to be as
conforming as possible, meaning it is effectively immune to switching to
a different OS, compiler, or version of a compiler.

What you not uncommonly find is that the actual processing that the app
performs is trivial - maybe it adds a few columns of numbers together and
produces a report. However the GUI to allow the user to enter these
numbers, check them, specify which columns to add up, and format the
report might be very non-trivial. So in fact the portable bit of the code
is a sum() function and maybe a few histogram or pie chart generators,
without the graphical part.

You can always write your own wrappers for platform specific GUI
functionality. Things like Java's Swing and wxWidgets prove that it can be
done. Of course it still won't be as portable as C code using only Standard
facilities, *and* it's likely to be a lot of work, but it's possible.

.



Relevant Pages

  • Re: size_t problems
    ... a different OS, compiler, or version of a compiler. ... produces a report. ... If you constrain yourself to nothing but toy programs, ... There are zillions of C apps, ...
    (comp.lang.c)
  • Re: size_t problems
    ... up and rewritten whenever the denizens of Redmond decide to realease a>> new compiler anyway. ... If I were writing such apps, I'd write the body of the code to be as ... What you not uncommonly find is that the actual processing that the app performs is trivial - maybe it adds a few columns of numbers together and produces a report. ...
    (comp.lang.c)
  • Re: GUI vs: CLI (was: Shell command in VB6)
    ... >> Using only existing GUI applications could not duplicate ... > If the point is that, therefore CLI apps are better, I've not ... this aspect of cli apps, but it does not apply to me" ?). ...
    (comp.programming)
  • Re: RosAsm - right click
    ... into the GUI. ... making sure that labels are sequenced correctly while writing ... However the Luxasm compiler modules are taking priority over it ...
    (alt.lang.asm)
  • Re: GUI vs: CLI (was: Shell command in VB6)
    ... > this aspect of cli apps, but it does not apply to me" ?). ... between GUI and CLI is actually fairly slight. ... how many of us programmers would ...
    (comp.programming)