this post was submitted on 21 Feb 2025
907 points (95.6% liked)

Programmer Humor

20743 readers
1346 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] Whelks_chance@lemmy.world 3 points 2 days ago (1 children)

Why does the bool have brackets? I haven't really used c#, seems odd

[–] rtxn@lemmy.world 12 points 2 days ago* (last edited 2 days ago) (1 children)

It's a method definition. C#'s standard formatting puts the left ~~bracket~~ brace of the method body on a new line. It's equivalent to:

private bool IsSus(){
    ...
}
[–] Whelks_chance@lemmy.world 3 points 2 days ago

Ahhh, that makes way more sense. Thanks