Re: Segfault City
- From: "Malcolm" <regniztar@xxxxxxxxxxxxxx>
- Date: Sat, 24 Jun 2006 19:16:22 +0100
"pemo" <usenetmeister@xxxxxxxxx> wrote
spinoza1111@xxxxxxxxx wrote:The irony is that the more modern your computer, the more antiquated your
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?
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
.
- References:
- Re: Segfault City
- From: Keith Thompson
- Re: Segfault City
- From: spinoza1111
- Re: Segfault City
- From: pemo
- Re: Segfault City
- Prev by Date: Re: Multiple Arguements like in printf
- Next by Date: Re: Segfault City
- Previous by thread: Re: Segfault City
- Next by thread: Re: Segfault City
- Index(es):
Relevant Pages
|