logo

Quotes About C++

I would send out some contests. "Here's some code. Here's the benchmark. Make it fast." I sent our load balancer's header parsing. We were all writing crazy regexps that didn't backtrack and tried to capture things with the most efficient capture groups. And we were all competing, getting faster and faster and faster. Then one guy comes over the next day. He had written it all in C++ with XS, and so he was like, "I win.
~ Peter Seibel
ptrnote.cpp // array accessed with pointer notation #include using namespace std; int main() { //array int intarray[5] = { 31, 54, 77, 52, 93 }; for(int j=0; j<5; j++) //for each element, cout << *(intarray+j) << endl; //print value return 0; } The expression
~ Robert Lafore
passarr.cpp // array passed by pointer #include using namespace std; const int MAX = 5; //number of array elements int main() { void centimize(double*); //prototype double varray[MAX] = { 10.0, 43.1, 95.9, 59.7, 87.3 }; centimize(varray); //change elements of varray to cm for(int j=0; j
~ Robert Lafore
std::bind(setAlarm,             std::bind(std::plus<>(),                       std::bind(steady_clock::now),                       1h),             _1,             30s);
~ Scott Meyers
representation. C++ uses the term data member. interaction diagram A diagram that shows the flow of requests between objects. interface The set of all signatures
~ Erich Gamma
Personally, I look forward to better tools for analyzing C++ source code.
~ Bjarne Stroustrup
Warum wollen sie unbedingt, dass ich den Auftrag storniere?' Der Mann klingt auf einmal misstrauisch. 'Seid ihr überbucht?' 'Ich will Ihnen nur helfen. Wirklich, unsere Kurse sind grottenschlecht. Es ist immer die gleiche Teamwork-Botschaft, nur unter verschiedenen Namen verpackt.' 'Ich hab nichts mit Teamwork bestellt. >Leitung von C++-Programmierern im Rahmen terminsensibler Projekte< - das wollte ich.' 'Das ist der Teamwork-Kurs. Und alle anderen sind auch der Teamwork-Kurs!
~ Max Barry
This evolution may compromise Java's claim of being simpler than C++, but my guess is that the effort will make Java a better language than it is today.
~ Bjarne Stroustrup
Web servers are written in C, and if they're not, they're written in Java or C++, which are C derivatives, or Python or Ruby, which are implemented in C.
~ Rob Pike
C++ is designed to allow you to express ideas, but if you don't have ideas or don't have any clue about how to express them, C++ doesn't offer much help.
~ Bjarne Stroustrup
Macro substitution is almost never necessary in C++. Use const (§7.5), constexpr (§2.2.3, §10.4), enum or enum class (§8.4) to define manifest constants, inline (§12.1.5) to avoid function-calling overhead, templates (§3.4, Chapter 23) to specify families of functions and types, and namespaces (§2.4.2, §14.3.1) to avoid name clashes.
~ Bjarne Stroustrup
C++ offers a small zoo of fundamental types, but since I'm not a zoologist, I will not list them all.
~ Bjarne Stroustrup
The practice of writing code in C++ continually upset Cutler because it created so much confusion and inefficiency.
~ G. Pascal Zachary
learn Python? Why not a language that was made for beginners, such as Scratch? Why not learn Java or C++, which most colleges seem to be using? Personally, I believe that Python is an ideal language for beginners. It runs on multiple systems. The syntax (the grammar of the language) isn't fussy. It's easy to read, and many people can walk through a simple script and understand
~ Katie Cunningham
Most demons are as dumb as a sackful of hammers. This does not mean they're safe to mess with, any more than a C++ compiler is "safe" in the hands of an enthusiastic computer science undergrad. Some people can mess up anything, and computational demonology adds a new and unwelcome meaning to terms like "memory leak" and "debugger." Now
~ Charles Stross
With the increasing importance of standards for system-level objects such as COM and CORBA, it is particularly important that the C++ bindings to those be clean, well documented, and simple to use.
~ Bjarne Stroustrup
a table and diagram showing exactly how the algorithm would be fed into the computer, step by step, including two recursive loops. It was a numbered list of coding instructions that included destination registers, operations, and commentary—something that would be familiar to any C++ coder today.
~ Walter Isaacson
If C++ has taught me one thing, it's this: Just because the system is consistent doesn't mean it's not the work of Satan.
~ Unknown
Whereas smaller computer languages have features designed into them, C++ is unusual in having a whole swathe of functionality discovered, like a tract of 19th century Africa.
~ Unknown
In Chapter 32, we'll also meet Python static methods (akin to those in C++), which are just self-less functions that usually process class attributes.
~ Unknown
Factories can be a major undertaking in a strongly typed language such as C++ but are almost trivial to implement in Python.
~ Unknown