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

 
GeneralI like C more than I thought I would Pin
honey the codewitch14-Sep-22 1:08
mvahoney the codewitch14-Sep-22 1:08 
GeneralRe: I like C more than I thought I would Pin
Rage14-Sep-22 1:12
professionalRage14-Sep-22 1:12 
GeneralRe: I like C more than I thought I would Pin
Greg Utas14-Sep-22 1:57
professionalGreg Utas14-Sep-22 1:57 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 10:35
mvahoney the codewitch14-Sep-22 10:35 
GeneralRe: I like C more than I thought I would Pin
Greg Utas14-Sep-22 11:05
professionalGreg Utas14-Sep-22 11:05 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 11:38
mvahoney the codewitch14-Sep-22 11:38 
GeneralRe: I like C more than I thought I would Pin
den2k8814-Sep-22 20:19
professionalden2k8814-Sep-22 20:19 
GeneralRe: I like C more than I thought I would Pin
Member 1330167914-Sep-22 23:23
Member 1330167914-Sep-22 23:23 
Quote:
I'd guess that the mantra "C is for embedded" is mostly because of legacy systems. There was also Embedded C++, which removed templates, exceptions, and RTTI. Memory is now so cheap that C is only justified in small systems.


I tend to enforce it on my teams the other way around: provide a real justification for using C++ over C. It becomes very hard to justify using C++ over C for embedded projects that cannot use exceptions, as at that point you're into real implementation-defined behaviour which changes with the compiler being used, or even the flags passed to it.

When C is not suitable for some problem space, I don't find myself reaching for C++ because there are much nicer languages.

C++ is in this weird position - for very small embedded systems, C is better, for very large embedded systems (SBCs, for example), any other high-level language can be used.

For uncrippled C++, the target needs to be larger than atmega level and smaller than Raspberry Pi level. Not a lot of need in that particular niche.

Quote:

I wouldn't sign onto a C project unless the team was small and disciplined. The risk of dealing with hacked-together code is simply too great.


I would.

C is one of the easier languages to unf***k.

A C++ project that was hacked together can be very difficult to reason about (OTOH, A Lisp project that was hacked together may as well be thrown away)
GeneralRe: I like C more than I thought I would Pin
Greg Utas15-Sep-22 1:22
professionalGreg Utas15-Sep-22 1:22 
GeneralRe: I like C more than I thought I would Pin
CPallini14-Sep-22 1:43
mveCPallini14-Sep-22 1:43 
GeneralRe: I like C more than I thought I would Pin
Mike Hankey14-Sep-22 2:27
mveMike Hankey14-Sep-22 2:27 
GeneralRe: I like C more than I thought I would Pin
Richard MacCutchan14-Sep-22 3:16
mveRichard MacCutchan14-Sep-22 3:16 
GeneralRe: I like C more than I thought I would Pin
megaadam14-Sep-22 7:12
professionalmegaadam14-Sep-22 7:12 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 7:14
mvahoney the codewitch14-Sep-22 7:14 
GeneralRe: I like C more than I thought I would Pin
megaadam14-Sep-22 7:41
professionalmegaadam14-Sep-22 7:41 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 7:46
mvahoney the codewitch14-Sep-22 7:46 
GeneralRe: I like C more than I thought I would Pin
pkfox14-Sep-22 10:22
professionalpkfox14-Sep-22 10:22 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 10:31
mvahoney the codewitch14-Sep-22 10:31 
GeneralRe: I like C more than I thought I would Pin
Member 1330167914-Sep-22 23:26
Member 1330167914-Sep-22 23:26 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 23:46
mvahoney the codewitch14-Sep-22 23:46 
GeneralRe: I like C more than I thought I would Pin
David O'Neil14-Sep-22 12:05
professionalDavid O'Neil14-Sep-22 12:05 
GeneralRe: I like C more than I thought I would Pin
jmaida14-Sep-22 15:38
jmaida14-Sep-22 15:38 
GeneralRe: I like C more than I thought I would Pin
David O'Neil14-Sep-22 15:53
professionalDavid O'Neil14-Sep-22 15:53 
GeneralRe: I like C more than I thought I would Pin
jmaida14-Sep-22 16:16
jmaida14-Sep-22 16:16 
GeneralRe: I like C more than I thought I would Pin
David O'Neil14-Sep-22 16:48
professionalDavid O'Neil14-Sep-22 16:48 

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.