News for hackers. Stuff that matters.
Re:Theory-building and why employee churn is lethal to softw... by mjevans on Tuesday January 10, 2023 @03:10PM (#34330782)
Observationally, C and related languages frequently use headers as a documentation and API specification point. The internals aren't revealed, but the expectations are distilled into one easier to reference location. I know I appreciate that more than machine (only) readable blobs that expect auto-doc tools to split out the salient information with the technical signatures. The human curation also allows for ordering that matters to organics who must integrate related data, rather than just alphanumeric enumeration.
Re:Theory-building and why employee churn is lethal to softw... by midoridensha on Tuesday January 10, 2023 @08:14PM (#34333734)
>The internals aren't revealed

They are when devs put all the code into those header files.

Re:Theory-building and why employee churn is lethal to softw... by intelVISA on Tuesday January 10, 2023 @09:36PM (#34334385)
...does that happen? Outside of C++ templates or inlining is there a need to pollute the header file?
Re:Theory-building and why employee churn is lethal to softw... by midoridensha on Tuesday January 10, 2023 @10:57PM (#34334852)
A need? Definitely not. It's terrible practice. Does it happen? Absolutely, I've seen it many times. Why some C++ devs do this, I really don't know; I think it's just laziness.