News for hackers. Stuff that matters.
Re:Programming Idioms by jhgb on Sunday August 15, 2021 @04:29PM (#28192231)
> Why would you use fgets() instead of just gets()?

I assume it's because gets() ranks as "-10: It's impossible to get right" on Rusty's API Design Manifesto? (http://sweng.the-davies.net/Home/rustys-api-design-manifesto)

Re:Programming Idioms by WJW on Sunday August 15, 2021 @04:54PM (#28192455)
TIL. I have been leading a sheltered life in languages with garbage collectors that obscured the true horror of gets() from me.