Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* linguist-vendored
*.py linguist-vendored=false
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
*.pyc
*.html
//*.html
*.exe
_out_.txt
*~
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"python.formatting.provider": "black"
}
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
cpp-fqa
=======

_All the vitriol from the original cpp-fqa ported to Python3_

NEW: Saves the generated html files in their own /html directory to keep everything tidy.


FAQ Lite: http://www.parashift.com/c++-faq-lite

FQA Lite: http://yosefk.com/c++fqa/

Super FAQ: http://isocpp.org/faq
2 changes: 1 addition & 1 deletion assign.fqa
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ YetAnotherSoCalledSmartPointer& YetAnotherSoCalledSmartPointer::operator=(const
Self assignment will first delete |_p|, and then dereference it, which is nasty. And it is all /your/ fault - you
should have handled self assignment!

FQA: Oh, so it's my fault, isn't it? Then why isn't this question listed in any other programming language FAQ on the planet?
FQA: Oh, so it's my fault, is it? Then why isn't this question listed in any other programming language FAQ on the planet?
I mean, it's the same me all the time, it's the languages that are different. So why don't we lose the feelings of guilt
and check what it is about C++ that causes the problem?

Expand Down
4 changes: 2 additions & 2 deletions defective.fqa
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ But if we leave the claims about being object-oriented aside, the fact that a la
check things at run time to prevent illegal operations, which translates to a certain (though frequently overestimated)
performance penalty. So when performance isn't that important, a managed environment is the way to go.
But when it's critical, you just have to deal
with the difficulties in debugging. However, C++ (compared to C, for example) makes /that/ much harder that it already has to be, because there are...
with the difficulties in debugging. However, C++ (compared to C, for example) makes /that/ much harder than it already has to be, because there are...

`<h2>No binary implementation rules</h2>`

Expand Down Expand Up @@ -177,7 +177,7 @@ In C++, we have standard and compiler-specific built-in types, structures, enume
multiple, virtual and non-virtual inheritance, |const| and |volatile| qualifiers, pointers, references and arrays,
|typedef|s, global and member functions and function pointers, and /templates/, which can have specializations on (again) /types/ (or integral constants),
and you can "partially specialize" templates by /pattern matching their type structure/
(for example, have a specialization for |std::vector<MySillyTemplate<T> >| for arbitrary values of |T|), and each template can have base classes
(for example, have a specialization for |std::vector<MyRetardedTemplate<T> >| for arbitrary values of |T|), and each template can have base classes
(in particular, it can be /derived from its own instantiations recursively/, which is a /well-known practice documented
in books/), and inner |typedef|s, and... We have lots of kinds of types.

Expand Down
2 changes: 1 addition & 1 deletion faq.fqa
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ of articles replying to other articles make sense some of the time. Comment thre
Special case: Usenet conversations are futile. If they are moderated, they are futile and (almost) polite.

An example of a futile, (almost) polite discussion of the C++ FQA can be found in
[http://groups.google.co.il/group/comp.lang.c++.moderated/browse_frm/thread/870d15c57e831fc5/5868fd6e57f6ae2c?hl=en&tvc=1#5868fd6e57f6ae2c this comp.lang.c++.moderated thread]. For some reason, several people
[http://groups.google.co.il/group/comp.lang.c++.moderated/browse_frm/thread/870d15c57e831fc5/5868fd6e57f6ae2c?hl=en&amp;tvc=1#5868fd6e57f6ae2c this comp.lang.c++.moderated thread]. For some reason, several people
well-known in the C++ community decided to have a bunch of off-topic arguments in that thread
(like how bad it is that some obscure features are going into C++0x and other obscure features aren't).
Off-topic and futile, but amusing and (almost) polite.
Expand Down
Loading