Click here to Skip to main content
15,301,946 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
Dave B 682-Mar-21 23:41
MemberDave B 682-Mar-21 23:41 
GeneralRe: New code in C? Where and why, versus C++? Pin
TheGreatAndPowerfulOz3-Mar-21 11:54
MemberTheGreatAndPowerfulOz3-Mar-21 11:54 
GeneralRe: New code in C? Where and why, versus C++? Pin
Rick York2-Mar-21 5:55
mveRick York2-Mar-21 5:55 
GeneralRe: New code in C? Where and why, versus C++? Pin
steveb2-Mar-21 15:16
Membersteveb2-Mar-21 15:16 
GeneralRe: New code in C? Where and why, versus C++? Pin
Rick York2-Mar-21 16:10
mveRick York2-Mar-21 16:10 
GeneralRe: New code in C? Where and why, versus C++? Pin
Matt McGuire3-Mar-21 5:09
professionalMatt McGuire3-Mar-21 5:09 
AnswerRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 4:01
mveGreg Utas2-Mar-21 4:01 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 4:17
mvahoney the codewitch2-Mar-21 4:17 
Yeah the vtable thing might be overkill, but I don't like extra hidden overhead on my classes.

I'd rather make inheritance not a thing in many cases**

** you can do inheritance, you just have to be careful about who holds things that need to be freed when you don't have a virtual destructor. Most of the time in these cases, I factor my code such that my data is polymorphic, and my classes wrap that. It avoids the issue.
Real programmers use butterflies

GeneralRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 4:23
mveGreg Utas2-Mar-21 4:23 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 4:29
mvahoney the codewitch2-Mar-21 4:29 
GeneralRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 4:32
mveGreg Utas2-Mar-21 4:32 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 4:34
mvahoney the codewitch2-Mar-21 4:34 
GeneralRe: New code in C? Where and why, versus C++? Pin
pkfox2-Mar-21 11:10
professionalpkfox2-Mar-21 11:10 
AnswerRe: New code in C? Where and why, versus C++? Pin
Rage2-Mar-21 4:12
professionalRage2-Mar-21 4:12 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 4:15
mvahoney the codewitch2-Mar-21 4:15 
GeneralRe: New code in C? Where and why, versus C++? Pin
giulicard2-Mar-21 21:48
Membergiulicard2-Mar-21 21:48 
AnswerRe: New code in C? Where and why, versus C++? Pin
PIEBALDconsult2-Mar-21 4:18
professionalPIEBALDconsult2-Mar-21 4:18 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 4:32
mvahoney the codewitch2-Mar-21 4:32 
GeneralRe: New code in C? Where and why, versus C++? Pin
PIEBALDconsult2-Mar-21 4:53
professionalPIEBALDconsult2-Mar-21 4:53 
AnswerRe: New code in C? Where and why, versus C++? Pin
Mike Hankey2-Mar-21 5:32
professionalMike Hankey2-Mar-21 5:32 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 6:58
mvahoney the codewitch2-Mar-21 6:58 
GeneralRe: New code in C? Where and why, versus C++? Pin
Mike Hankey2-Mar-21 8:51
professionalMike Hankey2-Mar-21 8:51 
GeneralRe: New code in C? Where and why, versus C++? Pin
Martin ISDN2-Mar-21 22:37
MemberMartin ISDN2-Mar-21 22:37 
AnswerRe: New code in C? Where and why, versus C++? Pin
  Forogar  2-Mar-21 5:46
professional  Forogar  2-Mar-21 5:46 
GeneralRe: New code in C? Where and why, versus C++? Pin
PIEBALDconsult2-Mar-21 5:52
professionalPIEBALDconsult2-Mar-21 5:52 

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.


Straw Poll

On which operating systems are you writing code?
Let's see if things have changed since we last ran this. "writing code" meaning editing, building, and running the code on that OS.
  Results   667 votes