Click here to Skip to main content
15,884,176 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.

 
AnswerRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 4:01
professionalGreg 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 
GeneralRe: New code in C? Where and why, versus C++? Pin
Greg Utas2-Mar-21 4:23
professionalGreg 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
professionalGreg 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 
honey the codewitch wrote:
What is the purpose of writing new code in C for targeting, well ... anything?

For products that you want to put on market, you have to comply to a lot of standards (like MISRA) that are much easier to implement in C, which is the state-of-the-art language. Given the amount of legacy code, this will probably not change in the next decade, so C remains the language if choice because, well, it was the language of choice.

Of course, footprint & co also play a role, but not that much with modern compilers.

Honestly, I am working in the automotive industry, and when I see what people are able to do with C, I am glad they are not given more powerful tools to work with ; I have my personal blacklist of vehicles I will never put a foot in, unless their code gets rewritten and their hardware redesigned.

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
giulicard2-Mar-21 21:48 
AnswerRe: New code in C? Where and why, versus C++? Pin
PIEBALDconsult2-Mar-21 4:18
mvePIEBALDconsult2-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
mvePIEBALDconsult2-Mar-21 4:53 
AnswerRe: New code in C? Where and why, versus C++? Pin
Mike Hankey2-Mar-21 5:32
mveMike 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
mveMike Hankey2-Mar-21 8:51 
GeneralRe: New code in C? Where and why, versus C++? Pin
Martin ISDN2-Mar-21 22:37
Martin 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
mvePIEBALDconsult2-Mar-21 5:52 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch3-Mar-21 1:22
mvahoney the codewitch3-Mar-21 1:22 
AnswerRe: New code in C? Where and why, versus C++? Pin
Daniel Pfeffer2-Mar-21 5:52
professionalDaniel Pfeffer2-Mar-21 5:52 
AnswerRe: New code in C? Where and why, versus C++? Pin
glennPattonWork32-Mar-21 6:04
professionalglennPattonWork32-Mar-21 6:04 
GeneralRe: New code in C? Where and why, versus C++? Pin
honey the codewitch2-Mar-21 7:16
mvahoney the codewitch2-Mar-21 7:16 
GeneralRe: New code in C? Where and why, versus C++? Pin
giulicard2-Mar-21 21:52
giulicard2-Mar-21 21:52 
AnswerRe: New code in C? Where and why, versus C++? Pin
trønderen2-Mar-21 6:32
trønderen2-Mar-21 6:32 

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.