Jack William Bell on Nostr: One of the 'unwritten standards' of #C and C++ is the 'include' directory, where you ...
One of the 'unwritten standards' of #C and C++ is the 'include' directory, where you keep all your header files separate from the 'src' directory.
I followed this 'standard' for decades, before abandoning it in favor of keeping header and source files in the same directories; at least for my own projects.
I honestly do not see how it makes *anything* about managing your code easier or better. Especially when you need to maintain parallel subdir structures in two places.
[contd]
#programming
Published at
2025-03-23 19:37:34 UTCEvent JSON
{
"id": "1bed537051bf13ed0764fc0d020f4fac1e8c613f02a46f992f4ab29bb8f0bcfd",
"pubkey": "dabbd84cf3c8b13f3e2eda48ef4bb23dba3d54eb147c774a07f11996476bd349",
"created_at": 1742758654,
"kind": 1,
"tags": [
[
"proxy",
"https://rustedneuron.com/@jackwilliambell/114213431183527974",
"web"
],
[
"t",
"c"
],
[
"t",
"programming"
],
[
"proxy",
"https://rustedneuron.com/users/jackwilliambell/statuses/114213431183527974",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://rustedneuron.com/users/jackwilliambell/statuses/114213431183527974",
"pink.momostr"
],
[
"-"
]
],
"content": "One of the 'unwritten standards' of #C and C++ is the 'include' directory, where you keep all your header files separate from the 'src' directory.\n\nI followed this 'standard' for decades, before abandoning it in favor of keeping header and source files in the same directories; at least for my own projects.\n\nI honestly do not see how it makes *anything* about managing your code easier or better. Especially when you need to maintain parallel subdir structures in two places.\n\n[contd]\n\n#programming",
"sig": "798e0cb955379d79e582924df8e668b9cd0875f84056644d39a1bc310709189eec4f58671df3b73dc888278f1e207b2a90ad047c4f76344ed1ff7695c8127fd0"
}