this post was submitted on 31 May 2025
601 points (98.9% liked)

Trans Memes

2012 readers
12 users here now

A place to post memes relating to the transgender experience.

Rules

  1. Follow lemmy.blahaj.zone community guidelines.
  2. Posts must be trans related.
  3. No bigotry.
  4. Do not post or link to pornography.
  5. If a post is tagged with a specific gender identity, keep the conversation centered on that identity.
  6. Posts that assume the viewer’s gender and/or contain potentially triggering content must be spoilered and tagged at the beginning of the post title. Example content-warning tags that you can copy include the following:
  1. Mods can be arbitrary.

Recommendations

  1. Include other tags in posts for example:
  1. Include image description when possible.
  2. Link to source

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] abfarid@startrek.website 10 points 1 month ago* (last edited 1 month ago) (2 children)

Should be enum.
And don't capitalize your variables.

[–] valkyrieangela@lemmy.blahaj.zone 8 points 1 month ago (1 children)

enum implies that you cant change it, unless you were referring to the bool then true.

[–] abfarid@startrek.website 11 points 1 month ago (1 children)

Yes, instead of boolean. But instead of String, too, for optimization reasons. You could always just add more enum constants to it.

[–] anothercatgirl@lemmy.blahaj.zone 3 points 1 month ago (1 children)

That requires a recompile though

[–] abfarid@startrek.website 5 points 1 month ago

Think of the patch notes though.

added 4 new genders

[–] olafurp@lemmy.world 1 points 1 month ago (1 children)
[–] abfarid@startrek.website 1 points 1 month ago (1 children)
[–] olafurp@lemmy.world 3 points 1 month ago* (last edited 1 month ago)

The MS style guide, which most C# code follows, says so.

https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/identifier-names#pascal-case

I personally hate it and I prefer the java/js style. The braces are also horrible. Here's an example.

public class ExampleEvents
{
    public bool IsValid;
    public IWorkerQueue WorkerQueue { get; init; }
    public event Action EventProcessing;
    public void StartEventProcessing()
    {
        static int CountQueueItems() => WorkerQueue.Count;
        // ...
    }
}