▲ 363 ▼ Anon died on the "clang format bad" hill (programming.dev) submitted 1 week ago by danhab99@programming.dev to c/programmer_humor@programming.dev 544 comments fedilink hide all child comments Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.
[–] Chaser@lemmy.zip 10 points 1 week ago (10 children) Everyone who indents code with 4 spaces also eats children. permalink fedilink source hideshow 10 child comments replies: [–] mindbleach@sh.itjust.works 12 points 1 week ago (2 children) Using spaces at all is indefensible. We have a universal control character specifically to indent code however you want, clientside. I don't care if your variables line up perfectly when they don't fit on one line. Stop trying to do ASCII art with semantic syntax. permalink fedilink source parent hideshow 2 child comments replies: [–] bitfucker@programming.dev 1 point 1 week ago* (1 child) Ahh see, off-side rules is another shit that should die already (whitespace as indentation/scope) permalink fedilink source parent hideshow 1 child comment replies: [–] mindbleach@sh.itjust.works 2 points 1 week ago* Load-bearing whitespace like Python, yeah, absolutely. We can't take a language seriously when the primary cause of incompatibility is literally unprintable. But indent your damn code. It's universal for a reason. If the text exists to be read by humans, format it for how humans think. permalink fedilink source parent [–] Sunrosa@lemmy.world 5 points 1 week ago True, 2 spaces is better :3 permalink fedilink source parent [–] khanh@lemmy.zip 4 points 1 week ago what are you, a 2-space indenter? permalink fedilink source parent [–] psycholocomotor_no2@lemmy.blahaj.zone 4 points 1 week ago (2 children) I hit tab and just never go deeper than 3 indents. permalink fedilink source parent hideshow 2 child comments replies: [–] treesquid@lemmy.world 2 points 1 week ago (1 child) Oh come on, it's fun to nest ternaries 15 layers deep and have your code just slide off to the right permalink fedilink source parent hideshow 1 child comment replies: [–] psycholocomotor_no2@lemmy.blahaj.zone 2 points 1 week ago I am a fan of a good spaghetti, don't get me wrong, but only as a treat sometimes. permalink fedilink source parent [–] treesquid@lemmy.world 1 point 1 week ago I hope you mean as opposed to a tab that's 4 spaces long. 2-spacers can get mauled by angry emus. permalink fedilink source parent [–] fruitcantfly@programming.dev 1 point 1 week ago I'm just doing my part to reduce global climate change. You're welcome permalink fedilink source parent
[–] mindbleach@sh.itjust.works 12 points 1 week ago (2 children) Using spaces at all is indefensible. We have a universal control character specifically to indent code however you want, clientside. I don't care if your variables line up perfectly when they don't fit on one line. Stop trying to do ASCII art with semantic syntax. permalink fedilink source parent hideshow 2 child comments replies: [–] bitfucker@programming.dev 1 point 1 week ago* (1 child) Ahh see, off-side rules is another shit that should die already (whitespace as indentation/scope) permalink fedilink source parent hideshow 1 child comment replies: [–] mindbleach@sh.itjust.works 2 points 1 week ago* Load-bearing whitespace like Python, yeah, absolutely. We can't take a language seriously when the primary cause of incompatibility is literally unprintable. But indent your damn code. It's universal for a reason. If the text exists to be read by humans, format it for how humans think. permalink fedilink source parent
[–] bitfucker@programming.dev 1 point 1 week ago* (1 child) Ahh see, off-side rules is another shit that should die already (whitespace as indentation/scope) permalink fedilink source parent hideshow 1 child comment replies: [–] mindbleach@sh.itjust.works 2 points 1 week ago* Load-bearing whitespace like Python, yeah, absolutely. We can't take a language seriously when the primary cause of incompatibility is literally unprintable. But indent your damn code. It's universal for a reason. If the text exists to be read by humans, format it for how humans think. permalink fedilink source parent
[–] mindbleach@sh.itjust.works 2 points 1 week ago* Load-bearing whitespace like Python, yeah, absolutely. We can't take a language seriously when the primary cause of incompatibility is literally unprintable. But indent your damn code. It's universal for a reason. If the text exists to be read by humans, format it for how humans think. permalink fedilink source parent
[–] Sunrosa@lemmy.world 5 points 1 week ago True, 2 spaces is better :3 permalink fedilink source parent
[–] khanh@lemmy.zip 4 points 1 week ago what are you, a 2-space indenter? permalink fedilink source parent
[–] psycholocomotor_no2@lemmy.blahaj.zone 4 points 1 week ago (2 children) I hit tab and just never go deeper than 3 indents. permalink fedilink source parent hideshow 2 child comments replies: [–] treesquid@lemmy.world 2 points 1 week ago (1 child) Oh come on, it's fun to nest ternaries 15 layers deep and have your code just slide off to the right permalink fedilink source parent hideshow 1 child comment replies: [–] psycholocomotor_no2@lemmy.blahaj.zone 2 points 1 week ago I am a fan of a good spaghetti, don't get me wrong, but only as a treat sometimes. permalink fedilink source parent
[–] treesquid@lemmy.world 2 points 1 week ago (1 child) Oh come on, it's fun to nest ternaries 15 layers deep and have your code just slide off to the right permalink fedilink source parent hideshow 1 child comment replies: [–] psycholocomotor_no2@lemmy.blahaj.zone 2 points 1 week ago I am a fan of a good spaghetti, don't get me wrong, but only as a treat sometimes. permalink fedilink source parent
[–] psycholocomotor_no2@lemmy.blahaj.zone 2 points 1 week ago I am a fan of a good spaghetti, don't get me wrong, but only as a treat sometimes. permalink fedilink source parent
[–] treesquid@lemmy.world 1 point 1 week ago I hope you mean as opposed to a tab that's 4 spaces long. 2-spacers can get mauled by angry emus. permalink fedilink source parent
[–] fruitcantfly@programming.dev 1 point 1 week ago I'm just doing my part to reduce global climate change. You're welcome permalink fedilink source parent