Conversation
Notices
-
Embed this notice
Alex Gleason (alex@gleasonator.com)'s status on Friday, 20-Oct-2023 10:13:56 JST Alex Gleason Both. -
Embed this notice
PunishedD (punishedd@poa.st)'s status on Friday, 20-Oct-2023 11:03:24 JST PunishedD @alex Right. Minimal operators and maximum readability, over early return. -
Embed this notice
Alex Gleason (alex@gleasonator.com)'s status on Friday, 20-Oct-2023 11:03:24 JST Alex Gleason @PunishedD It depends on the size of the function. If there's one conditional in the whole function, absolutely prefer blue. For bigger functions with multiple failure conditions, red. -
Embed this notice
GroundBeefHunter (groundbeefhunter@poa.st)'s status on Friday, 20-Oct-2023 11:03:34 JST GroundBeefHunter @alex I know a guy that does:
if (!notPass) return;Alex Gleason likes this. -
Embed this notice
SashimiS (sashimis@poa.st)'s status on Friday, 20-Oct-2023 11:03:55 JST SashimiS @alex Left. I like early return too much 😭 Alex Gleason likes this. -
Embed this notice
NEETzsche (neetzsche@iddqd.social)'s status on Friday, 20-Oct-2023 11:04:40 JST NEETzsche @alex @PunishedD even if it's just one, red
-
Embed this notice