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

If only there was a better way

programming.dev

message-square
14
link
fedilink
62

If only there was a better way

programming.dev

Ategon@programming.dev to Programming Horror@programming.dev · 3 years ago
message-square
14
link
fedilink
alert-triangle
You must log in or # to comment.
  • OsrsNeedsF2P@lemmy.ml
    link
    fedilink
    arrow-up
    7
    ·
    3 years ago

    If !!true

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

      if (!(1-1))

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

      deleted by creator

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

    I have to know what that comment says

    • Ategon@programming.devOP
      link
      fedilink
      arrow-up
      7
      ·
      3 years ago

      Comment leaked

      Ignore the double test text

      • adj16
        link
        fedilink
        arrow-up
        1
        ·
        3 years ago

        Well now I’m even more disappointed than I was originally

    • Quasari@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      3 years ago

      Wow I’m a comment

      I like mine better

  • neil@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago

    De Morgan strikes again!

  • lasagna@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    3 years ago

    Unit tests be like

  • CaptPretentious
    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@programming.dev
      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.

  • spacesweedkid27
    link
    fedilink
    arrow-up
    1
    ·
    3 years ago

    That moment when I forget my axioms of boolean algebra

Programming Horror@programming.dev

programming_horror@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: [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.

  • 1 user / day
  • 1 user / week
  • 8 users / month
  • 68 users / 6 months
  • 321 local subscribers
  • 2.29K subscribers
  • 43 Posts
  • 290 Comments
  • Modlog
  • mods:
  • Vacant@programming.dev
  • UI: 0.19.15-5-g3ad4d1d2
  • BE: 0.19.15-4-g508853653
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org