Click here to Skip to main content
14,838,395 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: New code in C? Where and why, versus C++? Pin
Stuart Dootson3-Mar-21 1:10
professionalStuart Dootson3-Mar-21 1:10 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch3-Mar-21 1:19
mvahoney the codewitch3-Mar-21 1:19 
GeneralRe: New code in C? Where and why, versus C++? Pin
Stuart Dootson3-Mar-21 1:24
professionalStuart Dootson3-Mar-21 1:24 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch3-Mar-21 1:29
mvahoney the codewitch3-Mar-21 1:29 
GeneralRe: New code in C? Where and why, versus C++? Pin
Stuart Dootson3-Mar-21 1:54
professionalStuart Dootson3-Mar-21 1:54 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch3-Mar-21 2:06
mvahoney the codewitch3-Mar-21 2:06 
AnswerRe: New code in C? Where and why, versus C++? Pin
Gary R. Wheeler3-Mar-21 2:57
MemberGary R. Wheeler3-Mar-21 2:57 
AnswerRe: New code in C? Where and why, versus C++? Pin
mischasan3-Mar-21 6:46
Membermischasan3-Mar-21 6:46 
I use C heavily, because it's easier to write cross-platform, cross-compiler code.
In particular, the ABI doesn't change between different (minor!) versions of the compiler.

For performance, C tends to be simpler code for sharp new algorithms.
That's particularly true for data-oriented designs and flow-based programming.
Also for libraries that other (C++) systems depend on.

There are C conventions that make "subclassing" easier. FWIW C99 made that simpler.

Opinion:
I'm tired of C++ trying to fix last version's problems with yet another complicated construct,
(auto_ptr? smart_ptr? unique_ptr? ...) requiring code restructuring in ways that other teams may have problems grokking. C++ seems to prefer hiding things, or at least slapping another coat of paint on them. Like getting from point A to point B via a Hilbert curve.
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch3-Mar-21 6:50
mvahoney the codewitch3-Mar-21 6:50 
AnswerRe: New code in C? Where and why, versus C++? Pin
Chad3F9-Mar-21 11:46
MemberChad3F9-Mar-21 11:46 
GeneralIs this right place? Pin
Nagy Vilmos2-Mar-21 2:14
professionalNagy Vilmos2-Mar-21 2:14 
GeneralRe: Is this right place? Pin
den2k882-Mar-21 2:16
professionalden2k882-Mar-21 2:16 
GeneralRe: Is this right place? Pin
OriginalGriff2-Mar-21 2:17
mveOriginalGriff2-Mar-21 2:17 
GeneralRe: Is this right place? Pin
Nagy Vilmos2-Mar-21 2:27
professionalNagy Vilmos2-Mar-21 2:27 
GeneralRe: Is this right place? Pin
OriginalGriff2-Mar-21 2:28
mveOriginalGriff2-Mar-21 2:28 
GeneralRe: Is this right place? Pin
Nagy Vilmos2-Mar-21 2:46
professionalNagy Vilmos2-Mar-21 2:46 
GeneralRe: Is this right place? Pin
OriginalGriff2-Mar-21 2:50
mveOriginalGriff2-Mar-21 2:50 
GeneralRe: Is this right place? Pin
W Balboos, GHB2-Mar-21 2:18
mveW Balboos, GHB2-Mar-21 2:18 
GeneralRe: Is this right place? Pin
OriginalGriff2-Mar-21 2:29
mveOriginalGriff2-Mar-21 2:29 
GeneralRe: Is this right place? Pin
W Balboos, GHB2-Mar-21 2:33
mveW Balboos, GHB2-Mar-21 2:33 
GeneralRe: Is this right place? Pin
OriginalGriff2-Mar-21 2:51
mveOriginalGriff2-Mar-21 2:51 
GeneralRe: Is this right place? Pin
W Balboos, GHB2-Mar-21 3:12
mveW Balboos, GHB2-Mar-21 3:12 
GeneralRe: Is this right place? Pin
OriginalGriff2-Mar-21 3:26
mveOriginalGriff2-Mar-21 3:26 
GeneralRe: Is this right place? Pin
W Balboos, GHB2-Mar-21 3:33
mveW Balboos, GHB2-Mar-21 3:33 
GeneralRe: Is this right place? Pin
honey the codewitch2-Mar-21 5:04
mvahoney the codewitch2-Mar-21 5:04 

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.