Re: code portability



Keith Thompson <kst-u@xxxxxxx> wrote:

Frederick Gotham <fgothamNO@xxxxxxxx> writes:
Here's a few things which a variable can be:

unsigned
volatile
static

Just like my "smoot, yellow, painted, big wall", I don't care what order
they're put in:

If you don't care, why not just do it the way everyone else does it?

Who is this mythical "everyone" you keep harping on about? The
"everyone" who always uses the same style as "everyone" else? The one,
golden, omnipotent, omnipresent, sacrosanct C style?

If you read code that does not come from your own shop, you _are_ going
to encounter different styles of coding. Many of them are a lot less
consistent than Frederick's. And contrary to the assertions made in this
thread, it is not unfamiliarity which makes code hard to read - not for
longer than five minutes - it is inconsistency. I can easily read any
reasonably laid-out code, even if it's different from mine. The problems
start when a coder starts mixing styles at random.

Richard
.



Relevant Pages

  • Re: Mellencamps plan backfires
    ... I agree in the sense that I couldn't flippin care less what an entertainers ... Let me ride on the Wall Of Death one more time ...
    (alt.guitar.amps)
  • Re: Cant keep up with the group
    ... All over body pain too. ... to take care of you, so that we can just love and enjoy you. ... full stop was only because of my hitting the wall and no ... i haven't maxed-out. ...
    (alt.support.arthritis)
  • Re: WALL OF SHAME
    ... it can be done at a fraction of the cost of a wall and the 40,000 it will ... and I guarantee that no employer, right now, is asking them to do it, ... I suspect they don't take the health care plans, ... the wall between Israel and Palestine has stopped terrorism in Israel, ...
    (soc.retirement)
  • Re: Disable Device is persisted, but where?
    ... The reason I care is that the DDK implies the ... Enum is not volatile. ... Don Burn (MVP, Windows DDK) ...
    (microsoft.public.development.device.drivers)
  • Re: [PATCH 0/24] make atomic_read() behave consistently across all architectures
    ... which has no volatile semantics. ... atomic_readand atomic_sethad volatile semantics on almost all ... care to give some example where these historical volatile ...
    (Linux-Kernel)