Dr. Dobb's is part of the Informa Tech Division of Informa PLC

This site is operated by a business or businesses owned by Informa PLC and all copyright resides with them. Informa PLC's registered office is 5 Howick Place, London SW1P 1WG. Registered in England and Wales. Number 8860726.


Channels ▼
RSS

Editor's Forum


CUJ Editor's Forum


The C++ Experience

Let me begin by welcoming Miro Samek as a new columnist. “The Embedded Angle” will give bimonthly insight to the world of embedded programming, something I personally want to know more about. If you think it’s going to be a look at C-only techniques (not that that would be bad), think again and read this month’s installment. I saw C++ techniques that were new to me. (Time yourself to see how long it takes you to understand that he’s not doing infinite recursion in line 12 of Listing 1 — and be honest!)

Speaking of which (i.e., innovative C++ stuff), last October I was favored to attend The C++ Seminar, three wild and crazy days with five wild and crazy C++ experts [1]. I continue to be amazed at what one can do with C++, and how much there is to know. While some moments bordered on Too Much Information [2], it was at once enjoyable and enlightening. Part of the fun was watching the experts try to work out questions between each other in real time, or, failing that, to at least call each other names. Scott Meyers boldly proclaimed that reverse iterators are really not iterators after all, and it turns out he was at least half right (or so it looked to me). Dan Saks revealed things about friends in C++ that I believe most people have never considered.

Though I may someday forget many of the gems imparted, I doubt I will ever fail to recall the Trivia Contest, moderated by the singular Bobby Schmidt (whom you can always count on to bring Balance to any Force). Names were drawn at random in groups of five, which nominees proceeded to the front of the room to get weeded out of the running for prizes (I already have a CUJ t-shirt, thank you). It was fun to sit in the back of the room and answer all the questions under my breath, but when my name was chosen I did what most anyone would do: commenced porcine perspiring. I handily eliminated the other four by being the only one in the group who knew the answer to the first question: Who wrote a landmark paper in the mid-1990s that raised doubts about the safety of exceptions? (Tom Cargill). Sometimes it pays to be old.

I then proceeded to embarrass myself — something I’m always wont to do while sitting in the Hot Seat. I won’t recount in detail what happened (I don’t know that I can), but please believe me: I really do understand zero-initialization of PODs in C++ (have for years). I just chose that moment to space it out (of course, the question was not direct enough to know that was the “gotcha”). They say (and I have to believe them, since it was all a blur to me) I answered enough questions correctly to win both a CUJ t-shirt and a Japanese version of Effective C++, both of which I passed on immediately to someone more interested, uh, I mean deserving. Having been previously introduced to the group as the editor of CUJ contributed to the festive outcome, I’m sure.

Would I attend again? In a minute. Would I put my name in the hat again for public humiliation [3]? I’ll have to get back to you on that one.

Notes

[1] viz. Scott Meyers, Herb Sutter, Dan Saks, Stephen Dewhurst, and Andrei Alexandrescu. Visit <www.thecppseminar.com> for more information.
[return to text]

[2] Don’t ask me, or anyone for that matter, about the intricate pseudo-balance between templates and Koenig Lookup (a.k.a. Argument-Dependent Lookup, or ADL). Believe me, you don’t want to know.
[return to text]

[3] Scott actually made me do it.
[return to text]

Chuck Allison
Senior Editor
[email protected]


Related Reading


More Insights






Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dr. Dobb's encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dr. Dobb's moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing or spam. Dr. Dobb's further reserves the right to disable the profile of any commenter participating in said activities.

 
Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.