Lemmy.eus
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
mycroftholmess@lemm.ee to Programmer Humor@programming.dev · 2 年前

Golang be like

i.imgur.com

message-square
51
fedilink
48

Golang be like

i.imgur.com

mycroftholmess@lemm.ee to Programmer Humor@programming.dev · 2 年前
message-square
51
fedilink
  • aport@programming.dev
    link
    fedilink
    arrow-up
    0
    ·
    2 年前

    You mean a system like the compiler

    • MJBrune@beehaw.org
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 年前

      Or a linter. Or code reviews. Or anything else. The nice thing is that if the compiler doesn’t demand something, it can be given to the engineer as an option. The compiler should have the option to do it. The option could even be defaulted on. Afaik there is no way in Golang to disable that error (this is the line that does it: https://github.com/golang/go/blob/04fb929a5b7991ed0945d05ab8015c1721958d82/src/go/types/stmt.go#L67-L69). like --no-pedantics or such. Golang’s compiler openly refuses to give engineers more choices in what they think is the best system to handle it.

      • aport@programming.dev
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        2 年前

        Who needs an option to leave unused variables around the code base? Lazybones?

        • MJBrune@beehaw.org
          link
          fedilink
          arrow-up
          1
          ·
          2 年前

          You’ve literally never commented out a line or two but left the variable declaration while debugging?

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.

  • 277 users / day
  • 3.01K users / week
  • 8.1K users / month
  • 20K users / 6 months
  • 3 local subscribers
  • 24.8K subscribers
  • 1.31K Posts
  • 27.3K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org