Click here to Skip to main content
15,888,527 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: WSO CCC OTD 2020-09-24 Pin
OriginalGriff24-Sep-20 9:30
mveOriginalGriff24-Sep-20 9:30 
GeneralA programming question Pin
David O'Neil23-Sep-20 20:22
professionalDavid O'Neil23-Sep-20 20:22 
GeneralRe: A programming question Pin
CPallini23-Sep-20 20:39
mveCPallini23-Sep-20 20:39 
GeneralRe: A programming question Pin
David O'Neil23-Sep-20 20:46
professionalDavid O'Neil23-Sep-20 20:46 
GeneralRe: A programming question Pin
CPallini23-Sep-20 20:54
mveCPallini23-Sep-20 20:54 
GeneralRe: A programming question Pin
Jon McKee23-Sep-20 21:07
professionalJon McKee23-Sep-20 21:07 
GeneralRe: A programming question Pin
Jon McKee23-Sep-20 21:05
professionalJon McKee23-Sep-20 21:05 
GeneralRe: A programming question PinPopular
Randor 23-Sep-20 21:06
professional Randor 23-Sep-20 21:06 
Well,

If you ever get to work at a company with thousands of developers (or as a program manager) you'll quickly understand the value. They are a very useful tool for controlling the application binary interface[^].

Let's say that you create an awesome library called DoSomethingAwesome.lib and everybody at your company wants to use DoSomethingAwesome. They take your lib as a dependency and quickly integrate it into dozens of projects. They derive classes from your headers and extend them and now it's DoSomethingMoreAwesome.

Then your team changes some of the internals and DoSomethingAwesome is no longer compatible with DoSomethingMoreAwesome. In fact now dozens of other teams at the company are having to re-write parts of their code to accommodate for the changes in your lib. Paying software engineers is expensive and now this change has cost the company thousands of dollars.

The concept of protected and private inheritance is a useful tool that allows the library development team to control the public interfaces and keep a stable ABI. It's just a tool in the toolbox.

Best Wishes,
-David Delaune
GeneralRe: A programming question Pin
David O'Neil23-Sep-20 21:12
professionalDavid O'Neil23-Sep-20 21:12 
JokeRe: A programming question Pin
Randor 23-Sep-20 21:19
professional Randor 23-Sep-20 21:19 
GeneralRe: A programming question Pin
David O'Neil23-Sep-20 21:27
professionalDavid O'Neil23-Sep-20 21:27 
GeneralRe: A programming question Pin
David O'Neil23-Sep-20 21:56
professionalDavid O'Neil23-Sep-20 21:56 
GeneralRe: A programming question Pin
Randor 23-Sep-20 22:10
professional Randor 23-Sep-20 22:10 
RantRe: A programming question Pin
W Balboos, GHB24-Sep-20 2:40
W Balboos, GHB24-Sep-20 2:40 
GeneralRe: A programming question Pin
Randor 24-Sep-20 3:36
professional Randor 24-Sep-20 3:36 
GeneralRe: A programming question Pin
W Balboos, GHB24-Sep-20 5:45
W Balboos, GHB24-Sep-20 5:45 
GeneralRe: A programming question Pin
David O'Neil24-Sep-20 8:52
professionalDavid O'Neil24-Sep-20 8:52 
GeneralRe: A programming question Pin
Stefan_Lang23-Sep-20 23:01
Stefan_Lang23-Sep-20 23:01 
PraiseRe: A programming question Pin
Randor 24-Sep-20 0:41
professional Randor 24-Sep-20 0:41 
GeneralRe: A programming question Pin
Kornfeld Eliyahu Peter23-Sep-20 21:06
professionalKornfeld Eliyahu Peter23-Sep-20 21:06 
GeneralRe: A programming question Pin
Daniel Pfeffer23-Sep-20 21:07
professionalDaniel Pfeffer23-Sep-20 21:07 
GeneralRe: A programming question Pin
Rage23-Sep-20 21:20
professionalRage23-Sep-20 21:20 
GeneralRe: A programming question Pin
David O'Neil23-Sep-20 21:25
professionalDavid O'Neil23-Sep-20 21:25 
GeneralRe: A programming question Pin
Rage23-Sep-20 21:30
professionalRage23-Sep-20 21:30 
GeneralRe: A programming question Pin
David O'Neil23-Sep-20 21:34
professionalDavid O'Neil23-Sep-20 21:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.