FAQ topic pointers



 DEVELOP > c-Plus-Plus > FAQ topic pointers

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1

1

 
Topic: DEVELOP > c-Plus-Plus
User: "David Fisher"
Date: 02 Feb 2004 05:18:57 PM
Object: FAQ topic pointers
In a recent message, "Re: Two questions about...something", Fred H wrote:

This is covered in the FAQ. Please read FAQ before posting.

I have read the FAQ, and I search it quite often. But this time
I didn't know what to search for. Now I know that I could have
searched for "initializaion", and found FAQ 10.6, but hey, I can't
read the whole FAQ through every time I have a question, can I...?

Just a thought ... how about having a sample C++ program for the FAQ that
contains pointers to relevant topics throughout the code ?
For example (assume prefix http://www.parashift.com/c++-faq-lite/ for
references):
/*** Classes and objects: classes-and-objects.html ***/
class ExampleClass // naming conventions: coding-standards.html#faq-27.11
{
// class members private by default: classes-and-objects.html#faq-7.8
int _privateMember; // naming conventions:
coding-standards.html#faq-27.11
public: // member access (public, private and protected):
basics-of-inheritance.html#faq-19.5
/*** constructors: ctors.html ***/
// default constructor: ctors.html#faq-10.4
// (see also Arrays and default constructors: ctors.html#faq-10.5)
ExampleClass();
ExampleClass(int value)
: _privateMember(value) // initialisation lists vs. assignment:
ctors.html#faq-10.6
{
// inline functions in class body: inline-functions.html#faq-9.8
}
};
It could be hard to know where to put some things, and there could be some
duplication - but this could be way to help people locate pointers into the
FAQ.
Or does something like this already exist ?
David F
.

User: "Victor Bazarov"

Title: Re: FAQ topic pointers 02 Feb 2004 05:53:11 PM
"David Fisher" <nospam@nospam.nospam.nospam> wrote...

In a recent message, "Re: Two questions about...something", Fred H wrote:

This is covered in the FAQ. Please read FAQ before posting.

I have read the FAQ, and I search it quite often. But this time
I didn't know what to search for. Now I know that I could have
searched for "initializaion", and found FAQ 10.6, but hey, I can't
read the whole FAQ through every time I have a question, can I...?


Just a thought ... how about having a sample C++ program for the FAQ that
contains pointers to relevant topics throughout the code ?
[...]
It could be hard to know where to put some things, and there could be some
duplication - but this could be way to help people locate pointers into

the

FAQ.

Good idea. Two doubts, though. If (rather, since) such a program does not
exist, would you write one? Once written and placed where available, how to
make sure all newbies actually look at it before posting?
V
.
User: "David Fisher"

Title: Re: FAQ topic pointers 02 Feb 2004 06:53:33 PM
"Victor Bazarov" <v.Abazarov@comAcast.net> wrote:

In a recent message, "Re: Two questions about...something", Fred H wrote:

Just a thought ... how about having a sample C++ program for the FAQ that
contains pointers to relevant topics throughout the code ?
[...]
It could be hard to know where to put some things, and there could be

some

duplication - but this could be way to help people locate pointers into
the FAQ.


Good idea. Two doubts, though. If (rather, since) such a program does

not

exist, would you write one? Once written and placed where available, how

to

make sure all newbies actually look at it before posting?

Thanks -
I think I would by happy to do this ... depends on available time. The basic
idea might be:
- aim is to give an easily-locatable example of each kind of construct
mentioned in the FAQ
- code does not have to do something particularly useful, but should be
complete (compilable) and correct (no undefined behaviour)
- references are just to FAQ, not to other documents (the C++ standard,
etc.)
- include some examples of errors as well (syntactic or semantic) - but
just stick to the ones that are mentioned in the FAQ
I just wrote and asked Marshall Cline (owner of C++ FAQ Lite) what he
thought about this kind of thing. It's up to him, but it would be helpful to
have a pointer to the sample code on the main FAQ page (it's his document,
though ! :-)
David F
.
User: "David Fisher"

Title: Re: FAQ topic pointers 02 Feb 2004 09:14:14 PM
"David Fisher" <nospam@nospam.nospam.nospam> wrote:

Just a thought ... how about having a sample C++ program for the FAQ

that

contains pointers to relevant topics throughout the code ?

[snip]

I just wrote and asked Marshall Cline (owner of C++ FAQ Lite) what he
thought about this kind of thing. It's up to him, but it would be helpful

to

have a pointer to the sample code on the main FAQ page (it's his document,
though ! :-)

Marshall just sent a reply saying:
Very interesting idea. I suppose one could add to that all sorts of other
stuff, like operator overloading, default parameters, etc. The way I'd like
to do it would be to put links on all those things so that a user can simply
(at least when they view the stuff as HTML) simply click on a syntax-snippet
to get the corresponding subject.
Yes, please go for it. Use some simple syntax, such as <LINK:10.3> to
indicate that the preceding element should link to FAQ 10.3. Whatever
syntax you use, I'll modify it via a Perl script or something and will use
that to build the "real" solution. You can add a few things in as comments,
but as much as possible I'd prefer the hyperlink to go on the code snippet
itself - it will make the example less cluttered.
---
So I'll have a try and see how it goes ...
Code suggestions welcome,
David F
.
User: "Gianni Mariani"

Title: Re: FAQ topic pointers 02 Feb 2004 09:31:59 PM
David Fisher wrote:
....


So I'll have a try and see how it goes ...

Code suggestions welcome,

Does it need to do somthing useful ?
If it does - how about using some of my (yet to be published) library ?
(That'll force me to publish the darn thing).
.
User: "osmium"

Title: Re: FAQ topic pointers 02 Feb 2004 10:00:36 PM
Gianni Mariani <gi2nospam@mariani.ws> wrote in message
news:bvn4nf$q3a@dispatch.concentric.net...

David Fisher wrote:
...


So I'll have a try and see how it goes ...

Code suggestions welcome,


Does it need to do somthing useful ?

If it does - how about using some of my (yet to be published) library ?
(That'll force me to publish the darn thing).




.

User: "osmium"

Title: Re: FAQ topic pointers 02 Feb 2004 10:05:17 PM
Gianni Mariani writes:

Does it need to do somthing useful ?

No, it definitely should *not* be something useful! Teach one thing at a
time, the things you are trying to teach are syntax and semantics. Short
meaningless identifiers so no one struggles to attach some meaning to them.
.






  Page 1 of 1

1

 


Related Articles
 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER