Upvote!
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 10 months ago

How programmers comment their code

lemmy.dbzer0.com

message-square
147
fedilink
1.56K

How programmers comment their code

lemmy.dbzer0.com

Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 10 months ago
message-square
147
fedilink

https://nitter.poast.org/denicmarko/status/1774077890281267451

  • yetAnotherUser@discuss.tchncs.de
    link
    fedilink
    arrow-up
    115
    arrow-down
    1
    ·
    10 months ago
    /*
     * Gets stupidFuckingInteger
     *
     * @returns stupidFuckingInteger
    */
    public double getStupidFuckingInteger() {
        return stupidFuckingInteger;
    }
    
    
    • mrpants@midwest.social
      link
      fedilink
      English
      arrow-up
      42
      arrow-down
      4
      ·
      edit-2
      10 months ago

      The lack of a return type declaration makes this sooo good.

      • expr@programming.dev
        link
        fedilink
        arrow-up
        32
        ·
        edit-2
        10 months ago

        It has the return type declared to be double.

        • mrpants@midwest.social
          link
          fedilink
          English
          arrow-up
          18
          ·
          10 months ago

          I cannot read. Even better.

    • ඞmir@lemmy.ml
      link
      fedilink
      arrow-up
      19
      ·
      10 months ago

      This being a double physically hurts

    • ILikeBoobies@lemmy.ca
      link
      fedilink
      arrow-up
      16
      ·
      10 months ago

      Makes sense, people looking for int would find a double

      • threelonmusketeers@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        9 months ago

        Happy cake day!

    • AdNecrias@lemmy.pt
      link
      fedilink
      arrow-up
      4
      ·
      10 months ago

      Reminds me of a job I had where c# summaries were mandatory and people used a documentation generator just like that.

      /// Ages the Category. public int AgeCategory (…)

      • schnurrito@discuss.tchncs.de
        link
        fedilink
        arrow-up
        2
        ·
        10 months ago

        plenty of APIs in Java have documentation like that and it is worst when I read the documentation in order to find out the definition of the nouns and verbs used there and then it is just like that

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 1.72K users / day
  • 4.77K users / week
  • 9.34K users / month
  • 17.8K users / 6 months
  • 1 local subscriber
  • 23.1K subscribers
  • 1.31K Posts
  • 43.1K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.6
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org