Lemmy Mengsk
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Vordimous@lemmy.ml to Programmer Humor@lemmy.ml · 7 months ago

Comenting code

lemmy.ml

external-link
message-square
106
fedilink
1.21K
external-link

Comenting code

lemmy.ml

Vordimous@lemmy.ml to Programmer Humor@lemmy.ml · 7 months ago
message-square
106
fedilink
  • essteeyou@lemmy.world
    link
    fedilink
    arrow-up
    129
    ·
    edit-2
    7 months ago
    /**
     * Gets the user
     **/
    fun getUser() {
        return this.user;
    }
    
    • some_guy@lemmy.sdf.org
      link
      fedilink
      arrow-up
      33
      ·
      7 months ago

      I’m sorry, I don’t think I understand what’s happening here…

      • essteeyou@lemmy.world
        link
        fedilink
        arrow-up
        29
        ·
        7 months ago

        Let me find the sequence diagram…

        • jaybone@lemmy.world
          link
          fedilink
          arrow-up
          12
          ·
          7 months ago

          You need the requirements doc from marketing. Then it will all totally make sense for sure. No cap.

          • essteeyou@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            7 months ago

            deleted by creator

    • Fonzie!@ttrpg.network
      link
      fedilink
      arrow-up
      8
      ·
      edit-2
      7 months ago

      Okay now I get the joke.
      I hate these kind of people.

      By the way, your ``` both need to be on their own, separate line

      • essteeyou@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        7 months ago

        It renders correctly in my client (Sync), what are you using? I’ll edit it anyway.

        • Fonzie!@ttrpg.network
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          7 months ago

          It renders correctly on the web as well for me.

          But the ``` being on their own line is how to write it properly, as stated this website among many others.

          This way, you can put the intended programming language on the same line as the first ```, ensuring proper colour coding!

          Ex.

          echo "Hello $name\n";
          
          echo "Hello $name\n";
          

          EDIT I checked on mobile, it rendered odd on Jerboa for me:

          Screenshot of essteeyou@lemmy.world their comment in the Jerboa client before the edit

          Now it is fixed:

          Screenshot of essteeyou@lemmy.world their comment in the Jerboa client after the edit

          • essteeyou@lemmy.world
            link
            fedilink
            arrow-up
            2
            ·
            7 months ago

            Yep, I know, but my code isn’t in a real language.

            • Fonzie!@ttrpg.network
              link
              fedilink
              arrow-up
              1
              ·
              7 months ago

              You can also not do it, it was just an additional comment!

              • essteeyou@lemmy.world
                link
                fedilink
                arrow-up
                2
                ·
                7 months ago

                Thanks for your code review. :-D

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 93 users / day
  • 567 users / week
  • 2.07K users / month
  • 10.5K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.03K Posts
  • 10.3K Comments
  • Modlog
  • mods:
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org