Why Good C++ is Neither Too Low Level Nor Too High Level

In an interview from 2003, Bjarne Stroustrup advised programmers not to treat C++ as C and to take advantage of the STL. He was wary, however, of copying the Java model and making everything too OO.

I particularly dislike classes with a lot of get and set functions. That is often an indication that it shouldn’t have been a class in the first place. It’s just a data structure. And if it really is a data structure, make it a data structure.

The C++ Style Sweet Spot | A Conversation with Bjarne Stroustrup, Part I by Bill Venners (October 13, 2003)

It’s a brief and interesting read.

Leave a Reply