Paul on Nostr: One thing that I find a lot when working with existing code is how so many developers ...
One thing that I find a lot when working with existing code is how so many developers ignore warnings and don't use the equivalent of E_ALL (PHP) or -Wall -Wextra -Werror (C).
The first thing I do when taking on a new project is to enable all warnings and turn them into errors, and there's usually a huge number of bugs to fix as a result (e.g. invalid assumptions about what will happen if you use an undefined variable).
#C #PHP
Published at
2024-07-05 09:11:28Event JSON
{
"id": "019655e730923f1636b7b389ea5b088bcec38bf68dd0501ac2dfed448d638e2a",
"pubkey": "cd1235fa453225b15d2633014c95ac79d7f388669e8a81580ec991b915ff88c8",
"created_at": 1720170688,
"kind": 1,
"tags": [
[
"t",
"c"
],
[
"t",
"php"
],
[
"proxy",
"https://fosstodon.org/@pwaring/112733106241680229",
"web"
],
[
"proxy",
"https://fosstodon.org/users/pwaring/statuses/112733106241680229",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/pwaring/statuses/112733106241680229",
"pink.momostr"
],
[
"expiration",
"1722762689"
]
],
"content": "One thing that I find a lot when working with existing code is how so many developers ignore warnings and don't use the equivalent of E_ALL (PHP) or -Wall -Wextra -Werror (C).\n\nThe first thing I do when taking on a new project is to enable all warnings and turn them into errors, and there's usually a huge number of bugs to fix as a result (e.g. invalid assumptions about what will happen if you use an undefined variable).\n\n#C #PHP",
"sig": "ff45078651f2200858e49ff5d74e7187df08cb0721ecd94888ba037f4273b9c0a7039a123b0b1771e2392743ce3f0f61727801bf3a273ad593f591f89005d71c"
}