▲ 630 ▼ fixed rule (lemmy.blahaj.zone) submitted 2 years ago by ambrosiaforest@lemmy.blahaj.zone to c/196@lemmy.blahaj.zone 99 comments fedilink hide all child comments original: https://lemmy.blahaj.zone/post/8572031
[–] psycho_driver@lemmy.world 46 points 2 years ago (1 child) Allman works best if you like folding code blocks. permalink fedilink source hideshow 2 child comments replies: [–] JackbyDev@programming.dev 4 points 2 years ago (1 child) Why? permalink fedilink source parent hideshow 2 child comments replies: [–] psycho_driver@lemmy.world 3 points 2 years ago (1 child) If you use if (blah) { then when you fold your code you still see the { but not the closing } (I suppose some IDEs might be smart enough to do something about this, but when not it looks like your code has an overbite). And then you've got a mental disorder if you indent your opening and closing brace more than the statement spawning them. permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 4 points 2 years ago Yeah, I just don't see why IDEs couldn't make them all fold in the same way. It's trivial. I don't see it as a valid complaint. permalink fedilink source parent
[–] JackbyDev@programming.dev 4 points 2 years ago (1 child) Why? permalink fedilink source parent hideshow 2 child comments replies: [–] psycho_driver@lemmy.world 3 points 2 years ago (1 child) If you use if (blah) { then when you fold your code you still see the { but not the closing } (I suppose some IDEs might be smart enough to do something about this, but when not it looks like your code has an overbite). And then you've got a mental disorder if you indent your opening and closing brace more than the statement spawning them. permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 4 points 2 years ago Yeah, I just don't see why IDEs couldn't make them all fold in the same way. It's trivial. I don't see it as a valid complaint. permalink fedilink source parent
[–] psycho_driver@lemmy.world 3 points 2 years ago (1 child) If you use if (blah) { then when you fold your code you still see the { but not the closing } (I suppose some IDEs might be smart enough to do something about this, but when not it looks like your code has an overbite). And then you've got a mental disorder if you indent your opening and closing brace more than the statement spawning them. permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 4 points 2 years ago Yeah, I just don't see why IDEs couldn't make them all fold in the same way. It's trivial. I don't see it as a valid complaint. permalink fedilink source parent
[–] JackbyDev@programming.dev 4 points 2 years ago Yeah, I just don't see why IDEs couldn't make them all fold in the same way. It's trivial. I don't see it as a valid complaint. permalink fedilink source parent