programming.dev
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
AtegonA to Programming Horror · 3 years ago

If only there was a better way

message-square
11
link
fedilink
61

If only there was a better way

AtegonA to Programming Horror · 3 years ago
message-square
11
link
fedilink
alert-triangle
You must log in or # to comment.
  • OsrsNeedsF2P@lemmy.ml
    link
    fedilink
    arrow-up
    8
    ·
    3 years ago

    If !!true

    • burgersc12@sh.itjust.works
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      Dude, this is so non-non heinous

    • pe1uca@lemmy.pe1uca.dev
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      if (!(1-1))

  • adj16@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    3 years ago

    I have to know what that comment says

    • AtegonOPA
      link
      fedilink
      arrow-up
      6
      ·
      3 years ago

      Comment leaked

      Ignore the double test text

    • Quasari
      link
      fedilink
      arrow-up
      3
      ·
      3 years ago

      Wow I’m a comment

      I like mine better

  • lasagna
    link
    fedilink
    arrow-up
    6
    ·
    3 years ago

    Unit tests be like

  • neil
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago

    De Morgan strikes again!

  • CaptPretentious@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    3 years ago

    I like to think it’s a former web designer who’s thinking Important

  • Doc Avid Mornington@midwest.social
    link
    fedilink
    arrow-up
    3
    ·
    3 years ago

    Ever see things like: if ((x == 0) == true)? Or: x = y == 'z' ? true : false? Some things just really make me worry about people, you know?

    • VaxHacker
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I did once see if (!x) strcpy(x, ""); It was from a VB “programmer” who was experimenting with C. In production code.

Programming Horror

programming_horror

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 Programming Horror!

This is a place to share strange or terrible code you come across.

For more general memes about programming there’s also Programmer Humor.

Looking for mods. If youre interested in moderating the community feel free to dm @[email protected]

Rules

  • Keep content in english
  • No advertisements (this includes both code in advertisements and advertisement in posts)
  • No generated code (a person has to have made it)

Credits

  • Icon base made by Lorc under CC BY 3.0 with modifications to add a gradient
Visibility: Public
globe

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

  • 2 users / day
  • 48 users / week
  • 55 users / month
  • 103 users / 6 months
  • 798 local subscribers
  • 2.3K subscribers
  • 43 Posts
  • 322 Comments
  • Modlog
  • mods:
  • Vacant
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org