Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
andros_rex@lemmy.world to Trans Memes@lemmy.blahaj.zone · 6 days ago

private String gender;

lemmy.world

message-square
31
fedilink
590

private String gender;

lemmy.world

andros_rex@lemmy.world to Trans Memes@lemmy.blahaj.zone · 6 days ago
message-square
31
fedilink
  • Farid@startrek.website
    link
    fedilink
    arrow-up
    14
    arrow-down
    4
    ·
    edit-2
    5 days ago

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

    • valkyrieangela@lemmy.blahaj.zone
      link
      fedilink
      English
      arrow-up
      8
      ·
      5 days ago

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

      • Farid@startrek.website
        link
        fedilink
        arrow-up
        11
        ·
        5 days ago

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

        • Another Catgirl@lemmy.blahaj.zone
          link
          fedilink
          English
          arrow-up
          3
          ·
          5 days ago

          That requires a recompile though

          • Farid@startrek.website
            link
            fedilink
            arrow-up
            5
            ·
            5 days ago

            Think of the patch notes though.

            added 4 new genders

    • Caveman@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      5 days ago

      C# disagrees

      • Farid@startrek.website
        link
        fedilink
        arrow-up
        1
        ·
        5 days ago

        Idk C#, could you explain?

        • Caveman@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          edit-2
          5 days 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;
                  // ...
              }
          }
          

Trans Memes@lemmy.blahaj.zone

transmemes@lemmy.blahaj.zone

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: [email protected]

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:
  • [CW: Assumes Viewer is Transmasc]
  • [CW: Assumes Viewer is Transfem]
  • [CW: Assumes Viewer is Nonbinary]
  • [CW: Transphobia]
  • [CW: Violence]
  • [CW: Weapons/Firearms]
  • [CW: Disturbing Imagery]
  1. Mods can be arbitrary.

Recommendations

  1. Include other tags in posts for example:
  • [Transfem/Transmasc/Non-binary]
  1. Include image description when possible.
  2. Link to source
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 51 users / day
  • 988 users / week
  • 1.84K users / month
  • 3.73K users / 6 months
  • 1 local subscriber
  • 1.79K subscribers
  • 243 Posts
  • 2.13K Comments
  • Modlog
  • mods:
  • BiNonBi@lemmy.blahaj.zone
  • Lily [she/her, pup/pup's]@lemmy.blahaj.zone
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org