SDF Chatter
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
realitista@lemmy.world to Programmer Humor@programming.dev · 3 年前

Pure Evil

lemmy.world

message-square
57
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
447

Pure Evil

lemmy.world

realitista@lemmy.world to Programmer Humor@programming.dev · 3 年前
message-square
57
link
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
  • seitanicdeleted by creator
    link
    fedilink
    arrow-up
    32
    ·
    3 年前

    Programmers who care about best practices. Here are a couple of scenarios where not using a semicolon will bite you in the ass.

    • newIdentity@sh.itjust.works
      link
      fedilink
      arrow-up
      1
      arrow-down
      11
      ·
      3 年前

      deleted by creator

      • seitanicdeleted by creator
        link
        fedilink
        arrow-up
        10
        ·
        3 年前

        ~95% of the JS code you see on the Web has semicolons. Apparently, a lot of programmers think it’s worth that extra keystroke to avoid these types of bugs. I agree with them. The difficulty with programming isn’t “Arrgh, there are too many keystrokes, my hands are tired!” It’s “Arrgh, HTF did this bug get in here?!?”

        • tryagain@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          3 年前

          I don’t even bother typing them because I like having eslint do it for me.

      • rockSlayer@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        3 年前

        They made it a named function, but this is literally how you format anonymous functions in js, a key feature that usually gets called with stuff like an onclick or onload call in the html domain.

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.

  • 282 users / day
  • 4.07K users / week
  • 7.86K users / month
  • 11.4K users / 6 months
  • 325 local subscribers
  • 32.7K subscribers
  • 1.92K Posts
  • 70.8K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.20
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org