this post was submitted on 10 Feb 2024
207 points (96.4% liked)
196
17057 readers
723 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
Other rules
Behavior rules:
- No bigotry (transphobia, racism, etc…)
- No genocide denial
- No support for authoritarian behaviour (incl. Tankies)
- No namecalling
- Accounts from lemmygrad.ml, threads.net, or hexbear.net are held to higher standards
- Other things seen as cleary bad
Posting rules:
- No AI generated content (DALL-E etc…)
- No advertisements
- No gore / violence
- Mutual aid posts require verification from the mods first
NSFW: NSFW content is permitted but it must be tagged and have content warnings. Anything that doesn't adhere to this will be removed. Content warnings should be added like: [penis], [explicit description of sex]. Non-sexualized breasts of any gender are not considered inappropriate and therefore do not need to be blurred/tagged.
If you have any questions, feel free to contact us on our matrix channel or email.
Other 196's:
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Anything but K&R is psychopathic, fight me
Allman if the condition is very long
vs
Hmm, I think the condition gets newlined and you K&R on the closing parenthesis IMO:
You could also keep
isSomething
on the first line too, but I think it's nice to keep the whole multiline condition at the same indent widthThis is the way.
Allman is allright, anything else I agree.
No no, you're speaking the truth
Isn't Java like this? Everybody I know who codes java does it like this and I've been trying to follow along despite it looking stupid.