Lemmy.wtf
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 1 年前

How programmers comment their code

lemmy.dbzer0.com

message-square
144
link
fedilink
1.53K

How programmers comment their code

lemmy.dbzer0.com

Andromxda 🇺🇦🇵🇸🇹🇼@lemmy.dbzer0.com to Programmer Humor@programming.devEnglish · 1 年前
message-square
144
link
fedilink

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

  • yetAnotherUser@discuss.tchncs.de
    link
    fedilink
    arrow-up
    114
    arrow-down
    1
    ·
    1 年前
    /*
     * Gets stupidFuckingInteger
     *
     * @returns stupidFuckingInteger
    */
    public double getStupidFuckingInteger() {
        return stupidFuckingInteger;
    }
    
    
    • mrpants@midwest.social
      link
      fedilink
      English
      arrow-up
      40
      arrow-down
      4
      ·
      1 年前

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

      • expr@programming.dev
        link
        fedilink
        arrow-up
        32
        ·
        1 年前

        It has the return type declared to be double.

        • mrpants@midwest.social
          link
          fedilink
          English
          arrow-up
          18
          ·
          1 年前

          I cannot read. Even better.

    • ඞmir@lemmy.ml
      link
      fedilink
      arrow-up
      19
      ·
      1 年前

      This being a double physically hurts

    • ILikeBoobies@lemmy.ca
      link
      fedilink
      arrow-up
      16
      ·
      1 年前

      Makes sense, people looking for int would find a double

      • threelonmusketeers@sh.itjust.works
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 年前

        Happy cake day!

    • AdNecrias@lemmy.pt
      link
      fedilink
      arrow-up
      4
      ·
      1 年前

      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
        3
        ·
        1 年前

        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.

  • 638 users / day
  • 4.12K users / week
  • 8.34K users / month
  • 18K users / 6 months
  • 117 local subscribers
  • 28.1K subscribers
  • 2K Posts
  • 77.5K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org