Re: Segfault City



"pemo" <usenetmeister@xxxxxxxxx> wrote
spinoza1111@xxxxxxxxx wrote:
Keith Thompson wrote:

It's still a good example of ugly C (they're called argc and argv,
not intArgCount and strArgValues), and it could probably be written
more

Nope, they are called what I called them. The abandonment of Hungarian
notation was a mistake.


I think Keith's comment on argc/argv is right, i.e., using argc/argv
follows the rule of keeping 'the least possible surprise value' to a
minimium. It's what's 'expected' - I feel that there's no good reason for
changing the parameter names, and doing so will only cause confusion
somewhere down the line.

On Hungarian Notation, a few years ago [oh, now that I come to think about
it, that's quite a few years ago] I would have agreed with you - I used HN
all of the time, and liked it once I got used to it [I *had* to adopt
their use where I worked].

However, IMHO, modern development environments makes their use redundant -
now, if you want to know the type-of-something, its storage-class, or
where it's declared/defined - you simply use some shortcut/gesture built
into the development environment and you'll get all the information you
need. And that's great - this kind of feature, when used with meaningful
names makes code more readable [more easily parsable, and kinder on the
eye]. In fact, in dropping them, it might also make one think just a
little harder about the 'usage' part of any name used?

The irony is that the more modern your computer, the more antiquated your
development environment. I've got a nice parallel cluster to play with, but
it uses Fortran 77 and a C compiler so old-fashioned that it won't even
accept // comments. I edit the source files in emacs. My one concession to a
modern environment is that I flat refuse to have anything to do with vi.

The reason is that when something is brand new, there isn't time to get nice
tools together. It happens with games consoles as well.

--
Buy my book 12 Common Atheist Arguments (refuted)
$1.25 download or $7.20 paper, available www.lulu.com/bgy1mm


.



Relevant Pages

  • Re: DDT
    ... As for "development environment", it's nice of you to try any ... things that go along with a C compiler in a modern environment. ... > We are entering a new world of RISCOS compatible boards running RO6 ... but> ACORN thrived originaly on work from individuals who would never ...
    (comp.sys.acorn.programmer)
  • Re: For those that hand code...
    ... Why do you need a home server with PHP? ... For the same reason you have a development environment for any kind of ...
    (alt.html)
  • Trouble when I upload code
    ... I have a problem when I upload code from my development environment to ... my production environment. ... VS for some reason doesn't recognize all of ...
    (microsoft.public.vstudio.general)
  • Re: VFP sending 8 character date in runtime with SET(CENT)=ON
    ... the development environment can remember ... The runtime environment ... that failed for some reason. ... Any function assuming CENTURY OFF? ...
    (microsoft.public.fox.programmer.exchange)