Conversation
Notices
-
Embed this notice
:ihavenomouth: (inginsub@clubcyberia.co)'s status on Monday, 28-Oct-2024 22:58:41 JST :ihavenomouth: how about I keep using them anyway -
Embed this notice
翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Monday, 28-Oct-2024 23:01:57 JST 翠星石 @Inginsub Methods? I don't have those in GNU C (that's a good thing). -
Embed this notice
hazlin no plap pirate (hazlin@shortstacksran.ch)'s status on Monday, 28-Oct-2024 23:08:43 JST hazlin no plap pirate @Inginsub Did you find out why, he is suggesting such a thing xD ?
Makes me wonder how he is storing pre-computed binary choices 🤔:ihavenomouth: likes this. -
Embed this notice
:ihavenomouth: (inginsub@clubcyberia.co)'s status on Monday, 28-Oct-2024 23:09:06 JST :ihavenomouth: @hazlin no, but I'm guessing to get the views -
Embed this notice
hazlin no plap pirate (hazlin@shortstacksran.ch)'s status on Monday, 28-Oct-2024 23:11:38 JST hazlin no plap pirate @Inginsub transcendent thumbnail analysis :ihavenomouth: likes this. -
Embed this notice
binkle (binkle@clubcyberia.co)'s status on Monday, 28-Oct-2024 23:15:06 JST binkle @Inginsub watched the first 40 seconds and it turns out he's responding to someone else giving that (bad) advice. also his accent is really messed up where is this guy from? spain? latvia? no idea impossible to tell :ihavenomouth: likes this. -
Embed this notice
:blank: (i@declin.eu)'s status on Monday, 28-Oct-2024 23:17:30 JST :blank: @hazlin @Inginsub the video reacts to dogmatic linkedin clean code BS about boolean blindness as uncle bob put it, making a typed enum instead making another person figure out what the true/false means in every single function call :ihavenomouth: likes this. -
Embed this notice
Lina Inver?e (lina@eientei.org)'s status on Monday, 28-Oct-2024 23:21:09 JST Lina Inver?e @binkle @Inginsub he's probably from gayland :ihavenomouth: likes this. -
Embed this notice
hazlin no plap pirate (hazlin@shortstacksran.ch)'s status on Monday, 28-Oct-2024 23:21:27 JST hazlin no plap pirate @i @Inginsub
At the function input definition? Sort of feel like the input variable name should clue the programmer into what it does.:ihavenomouth: likes this. -
Embed this notice
PunishedD (punishedd@clubcyberia.co)'s status on Monday, 28-Oct-2024 23:33:11 JST PunishedD @Inginsub Real Men use enums.
typedef enum boolean { TRUE, FALSE }; -
Embed this notice
:ihavenomouth: (inginsub@clubcyberia.co)'s status on Monday, 28-Oct-2024 23:59:55 JST :ihavenomouth: @inertia @RustyCrab @hazlin (bool)(x & 1) for every input variable -
Embed this notice
Inertia (inertia@pone.social)'s status on Monday, 28-Oct-2024 23:59:56 JST Inertia But what if it is
doTheThing(1, 9, 8, 4)
?
WHAT THEN ENUM MAN? -
Embed this notice
Inertia (inertia@pone.social)'s status on Monday, 28-Oct-2024 23:59:57 JST Inertia @Inginsub @hazlin
Uncle Bob recommended something like that IIRC.Because bools are named true and false and that could confuse particular individuals.
So he advised to always use enums.
Lamp state = true/false
vs
Lamp state = on/offIt's one of those micro optimizations to readability that only academia could have come up with.
-
Embed this notice
Rusty Crab (rustycrab@clubcyberia.co)'s status on Monday, 28-Oct-2024 23:59:57 JST Rusty Crab @inertia @Inginsub @hazlin this is only really useful when you have functions like doTheThing(true,false,false,true,true) <--- (shockingly common)
-
Embed this notice