Click here to Skip to main content
15,887,027 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: I like C more than I thought I would Pin
David O'Neil15-Sep-22 6:21
professionalDavid O'Neil15-Sep-22 6:21 
GeneralRe: I like C more than I thought I would Pin
inlandchris114-Sep-22 21:34
inlandchris114-Sep-22 21:34 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 22:14
mvahoney the codewitch14-Sep-22 22:14 
GeneralRe: I like C more than I thought I would Pin
giulicard14-Sep-22 21:57
giulicard14-Sep-22 21:57 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 22:13
mvahoney the codewitch14-Sep-22 22:13 
GeneralRe: I like C more than I thought I would Pin
giulicard14-Sep-22 22:25
giulicard14-Sep-22 22:25 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 23:04
mvahoney the codewitch14-Sep-22 23:04 
GeneralRe: I like C more than I thought I would Pin
Martin ISDN14-Sep-22 23:35
Martin ISDN14-Sep-22 23:35 
"Also, using the preprocessor freely is kind of liberating"

C will set you free. the oldest dogmas i've heard were: goto is evil and macros are evil

i remember you once said (probably here on The Lounge) that you prefer C++ and even that you work with it like it is C# (translating C++ to C# in your head and vice versa)

what i don't like about C is the standards. there are nice things in every standard that benefit, but they push with the Undefined Behavior as a way to shame and discipline the coder. what the creators of C didn't put in the language, they try to force thru the standards

the spirit of C is kind of hippie, uncertain. that made me search for the first edition of The C Programming Language:

"C is a general-purpose programming language with features economy of expression...", "its absence of restrictions and its generality make it more convenient and effective for many tasks than supposedly more powerful languages."

"...the run-time library required to implement self-contained programs is tiny.", "...efficient enough that there is no compulsion to write assembly language instead." - this seems like something that is not important now, but lets think of the energy consumption.

"Existing compilers provide no run-time checking of array subscripts, argument types, etc." - wooow, you just put an int where the function takes a float, the sizeof float bytes are copied from the address of the integer object to the stack frame. the function treats the data as float.

the most astonishing for me has always been "The arguments to functions are passed by copying the value of the argument, and it is impossible for the called function to change the actual argument in the caller", i interpret as Ritchie's intention towards pure functions. yes, you can pass Person's pointer to a function, but the default is passing a copy of Person.

i chose C because it doesn't change, although C++ was my first choice. C++ now changes every 3 years? i cannot even recognize the language. anyway, i'm not a competent programmer.
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 23:53
mvahoney the codewitch14-Sep-22 23:53 
GeneralRe: I like C more than I thought I would Pin
Martin ISDN15-Sep-22 2:22
Martin ISDN15-Sep-22 2:22 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch14-Sep-22 23:58
mvahoney the codewitch14-Sep-22 23:58 
GeneralRe: I like C more than I thought I would Pin
Cpichols15-Sep-22 2:23
Cpichols15-Sep-22 2:23 
GeneralRe: I like C more than I thought I would Pin
Juan Pablo Reyes Altamirano15-Sep-22 4:43
Juan Pablo Reyes Altamirano15-Sep-22 4:43 
GeneralRe: I like C more than I thought I would Pin
sasadler15-Sep-22 6:14
sasadler15-Sep-22 6:14 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch15-Sep-22 6:19
mvahoney the codewitch15-Sep-22 6:19 
GeneralRe: I like C more than I thought I would Pin
rjmoses17-Sep-22 23:39
professionalrjmoses17-Sep-22 23:39 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch17-Sep-22 23:49
mvahoney the codewitch17-Sep-22 23:49 
GeneralRe: I like C more than I thought I would Pin
rjmoses19-Sep-22 0:29
professionalrjmoses19-Sep-22 0:29 
GeneralRe: I like C more than I thought I would Pin
Clive Hudson23-Sep-22 5:52
Clive Hudson23-Sep-22 5:52 
GeneralRe: I like C more than I thought I would Pin
honey the codewitch23-Sep-22 7:09
mvahoney the codewitch23-Sep-22 7:09 
AnswerPrograming gut feeling - ** Update! ** Pin
megaadam13-Sep-22 23:37
professionalmegaadam13-Sep-22 23:37 
AnswerRe: Programing gut feeling Pin
honey the codewitch13-Sep-22 23:39
mvahoney the codewitch13-Sep-22 23:39 
AnswerRe: Programing gut feeling Pin
CPallini14-Sep-22 0:27
mveCPallini14-Sep-22 0:27 
AnswerRe: Programing gut feeling Pin
OriginalGriff14-Sep-22 0:44
mveOriginalGriff14-Sep-22 0:44 
GeneralRe: Programing gut feeling Pin
honey the codewitch14-Sep-22 1:03
mvahoney the codewitch14-Sep-22 1:03 

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.