@delroth@mastodon.delroth.net I hate ternary statements so much. I only think they make code less readable.
Conversation
Notices
-
Embed this notice
SuperDicq (superdicq@minidisc.tokyo)'s status on Tuesday, 24-Jun-2025 23:29:37 JST SuperDicq
-
Embed this notice
SuperDicq (superdicq@minidisc.tokyo)'s status on Tuesday, 24-Jun-2025 23:31:24 JST SuperDicq
@delroth@mastodon.delroth.net It's often like one of those "look at me I'm so smart" type of things that people do while not meaningfully changing the code.
-
Embed this notice
Steven Reed (srtcd424@mas.to)'s status on Wednesday, 25-Jun-2025 00:38:25 JST Steven Reed
@SuperDicq @delroth as someone who finds terser code more readable *up to a point*, I'm happy with single ternary ops - but this example is just silly :(
-
Embed this notice
SuperDicq (superdicq@minidisc.tokyo)'s status on Wednesday, 25-Jun-2025 00:41:28 JST SuperDicq
@srtcd424@mas.to @delroth@mastodon.delroth.net If your ternary statement does not fit into a single line, do not use a ternary.
-
Embed this notice