mimiclem.me
  • Communities
  • Create Post
  • 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
10
link
fedilink
25

If only there was a better way

programming.dev

Ategon@programming.dev to Programming Horror@programming.dev · 3 years ago
message-square
10
link
fedilink
  • Doc Avid Mornington@midwest.social
    link
    fedilink
    arrow-up
    2
    ·
    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.

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
  • 49 users / month
  • 136 users / 6 months
  • 1 local subscriber
  • 2.36K subscribers
  • 47 Posts
  • 321 Comments
  • Modlog
  • mods:
  • Vacant@programming.dev
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org