this post was submitted on 04 Apr 2024
28 points (96.7% liked)

C Programming Language

993 readers
1 users here now

Welcome to the C community!

C is quirky, flawed, and an enormous success.
... When I read commentary about suggestions for where C should go, I often think back and give thanks that it wasn't developed under the advice of a worldwide crowd.
... The only way to learn a new programming language is by writing programs in it.

ยฉ Dennis Ritchie

๐ŸŒ https://en.cppreference.com/w/c

founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 1 points 7 months ago (4 children)

Aren't there compiler warnings for potential overflows already, that come in the form of warning: something when compiling? Aren't runtime overflows detected using the coredump in gdb, not gcc?

Shiny ASCII art seems like a waste of time and/or calling the dev stupid. What am i missing here?

[โ€“] [email protected] 6 points 7 months ago (3 children)

Well, I don't mind being called stupid if it makes my debugging easier. For many people visual/ graphical representation is much easier to comprehend than a block of text.

[โ€“] [email protected] 1 points 7 months ago (2 children)

It is, our brains are graphical. So is gdbs TUI. Is this another tool? 'Cos ASCII art in compiler output just seems odd to me.

[โ€“] [email protected] 1 points 7 months ago

I mean, it would probably make sense to make this optional to accommodate as many preferences as possible. I, for one, prefer to get the human readable message right away instead of having to use another tool for it.

load more comments (1 replies)
load more comments (1 replies)
load more comments (1 replies)