halubilo.social
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 2 years ago

Pure Evil

lemmy.world

message-square
57
fedilink
  • cross-posted to:
  • [email protected]
432

Pure Evil

lemmy.world

@[email protected] to Programmer [email protected] • 2 years ago
message-square
57
fedilink
  • cross-posted to:
  • [email protected]
  • @[email protected]
    link
    fedilink
    32•2 years ago

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

    • newIdentity
      link
      fedilink
      -10•
      edit-2
      2 years ago

      deleted by creator

      • @[email protected]
        link
        fedilink
        10•2 years ago

        ~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?!?”

        • @[email protected]
          link
          fedilink
          1•2 years ago

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

      • @[email protected]
        link
        fedilink
        1•
        edit-2
        2 years ago

        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 [email protected]

[email protected]

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: [email protected]

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
  • 1.29K users / day
  • 3.89K users / week
  • 7.72K users / month
  • 17.4K users / 6 months
  • 23.3K subscribers
  • 1.41K Posts
  • 50.8K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @[email protected]
  • Pierre-Yves Lapersonne
  • BE: 0.19.3
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org