Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Strange Question

Reply
Thread Tools

Strange Question

 
 
REH
Guest
Posts: n/a
 
      06-07-2006
OK, I was at a code review today and got asked a strange questions (at
least I thought it was). I pointed out that the naming convention they
were using for macros clashed with one of the reserved forms for
identifies in the standard. After some shock and disbelief, the lead
of the project agreed to change to convention. One of the engineers
piped up and asked, "Do we really want to accept the standard?" I
didn't know how to answer other than response, "If you are writing C
code, why would you not?"

REH

 
Reply With Quote
 
 
 
 
Richard Heathfield
Guest
Posts: n/a
 
      06-07-2006
REH said:

> OK, I was at a code review today and got asked a strange questions (at
> least I thought it was). I pointed out that the naming convention they
> were using for macros clashed with one of the reserved forms for
> identifies in the standard. After some shock and disbelief, the lead
> of the project agreed to change to convention. One of the engineers
> piped up and asked, "Do we really want to accept the standard?" I
> didn't know how to answer other than response, "If you are writing C
> code, why would you not?"


There are definite benefits to /not/ accepting the Standard. It means you
can write any old junk you like and expect it to work. If it doesn't, you
simply yell "there's a bug in the compiler!" and switch to another vendor.
And another. And another...

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
 
Reply With Quote
 
 
 
 
Richard Tobin
Guest
Posts: n/a
 
      06-07-2006
In article <>,
Richard Heathfield <> wrote:

>There are definite benefits to /not/ accepting the Standard. It means you
>can write any old junk you like and expect it to work. If it doesn't, you
>simply yell "there's a bug in the compiler!" and switch to another vendor.


It's much the same if you *do* follow the standard...

-- Richard
 
Reply With Quote
 
bcaller@gmail.com
Guest
Posts: n/a
 
      06-07-2006
Really.. you should follow conventions. In practise, who can be
bothered
____________
Compilr - the online C#, C, VB.NET, Fortran compiler -
http://www.caller.me.uk/Compilr

 
Reply With Quote
 
Keith Thompson
Guest
Posts: n/a
 
      06-07-2006
writes:
> Really.. you should follow conventions. In practise, who can be
> bothered


Conventions like quoting previous context when posting a followup?

There are reports that groups.google.com has updated their software so
followups include the previous article by default. Did you
deliberately delete the lines starting with "> "?

--
Keith Thompson (The_Other_Keith) kst- <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
 
Reply With Quote
 
spibou@gmail.com
Guest
Posts: n/a
 
      06-07-2006

REH wrote:

> One of the engineers
> piped up and asked, "Do we really want to accept the standard?" I
> didn't know how to answer other than response, "If you are writing C
> code, why would you not?"


Because your compiler supports some very useful extensions ?

 
Reply With Quote
 
spibou@gmail.com
Guest
Posts: n/a
 
      06-07-2006

Keith Thompson wrote:

> Conventions like quoting previous context when posting a followup?


Similar remarks have been made to me and I must say I find them very
puzzling.

First , do people who post here really have trouble remembering
the context of a thread which only contains 5-6 posts ? I don't see how
anyone can participate in a thread if their memory is that bad.

Second , is it so hard for people to obtain a newsreader which can
display all the
messages of a thread together and make it easy to switch back and
forth between messages ? Pine can do that , is available for a large
variety of platforms and free. I'm sure emacs can as well. I'm sure the
same applies to many other newsreaders.

Third , if it is so hard why not access the group through Google ? Or
is
that considered sacrilegious ?

Quoting context when the context is obvious is distracting and wastes
the reader's time.

 
Reply With Quote
 
kyle york
Guest
Posts: n/a
 
      06-07-2006
Greetings,

wrote:
> Keith Thompson wrote:
>
>
>>Conventions like quoting previous context when posting a followup?

>
>
> Similar remarks have been made to me and I must say I find them very
> puzzling.
>
> First , do people who post here really have trouble remembering
> the context of a thread which only contains 5-6 posts ? I don't see how
> anyone can participate in a thread if their memory is that bad.


If I only read one thread/day, this wouldn't be a problem. When I read
several hundred it is. Also realize that my newsfeed may not get all of
the messages, or may get them out of order in which case I've no context
to determine to what the responses relate.

>
> Third , if it is so hard why not access the group through Google ? Or
> is
> that considered sacrilegious ?


I download messages & read at my leasure, often times when not connected
to a network. Google doesn't help much here, does it?

>
> Quoting context when the context is obvious is distracting and wastes
> the reader's time.
>


Do explain the logic in that statement. Someone can read this message as
written, without any others around it, and follow it clearly. How
exactly is this distracting and wasting time? If I don't need the
context, it's easy enough to skip the quoted parts.


--
Kyle A. York
Sr. Subordinate Grunt
 
Reply With Quote
 
spibou@gmail.com
Guest
Posts: n/a
 
      06-07-2006

kyle york wrote:

> Do explain the logic in that statement. Someone can read this message as
> written, without any others around it, and follow it clearly. How
> exactly is this distracting and wasting time? If I don't need the
> context, it's easy enough to skip the quoted parts.


But in order to realize that _you_could_have_skipped_them_
you need to read them first. If it turns out that you didn't need
to read them then you have wasted your time. Furthermore if
you are replying to a long post and you need to concentrate on
specific parts to comment on it makes it harder to locate those
parts on repeated readings if there is additional stuff.

Spiros Bousbouras

 
Reply With Quote
 
Flash Gordon
Guest
Posts: n/a
 
      06-07-2006
wrote:
> REH wrote:
>
>> One of the engineers
>> piped up and asked, "Do we really want to accept the standard?" I
>> didn't know how to answer other than response, "If you are writing C
>> code, why would you not?"

>
> Because your compiler supports some very useful extensions ?


And when you then need, or would find it useful, to use a different
compiler?

There are times when extensions are required, but why limit yourself to
your current platform without good reason? See
http://clc-wiki.net/wiki/Portability...I_C_Compliance for rather
more reasons for following the standard.
--
Flash Gordon, living in interesting times.
Web site - http://home.flash-gordon.me.uk/
comp.lang.c posting guidelines and intro:
http://clc-wiki.net/wiki/Intro_to_clc
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
AVG Email Scanner activating at strange times with strange IP addresses dennispublic@hotmail.com Computer Support 1 08-26-2006 04:27 AM
strange VHDL syntax question Michael Riepe VHDL 1 10-11-2004 05:49 PM
Strange Question... Dragon MCSE 17 01-16-2004 07:21 PM
Question About Strange 'C' Code Syntax ( Well strange to me anyway ) Harvey Twyman C Programming 8 10-25-2003 05:54 AM
Strange question unknown ASP .Net 0 10-17-2003 02:19 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57