The Enchanted Tavern
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@cm0002@lemmy.world to Programmer Humor@programming.dev • 4 days ago

Tell me the truth …

piefed.jeena.net

message-square
166
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
1.15K

Tell me the truth …

piefed.jeena.net

@cm0002@lemmy.world to Programmer Humor@programming.dev • 4 days ago
message-square
166
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • @timhh@programming.dev
    link
    fedilink
    24•3 days ago

    Well there are containers that store booleans in single bits (e.g. std::vector<bool> - which was famously a big mistake).

    But in the general case you don’t want that because it would be slower.

    • @ethancedwards8@programming.dev
      link
      fedilink
      English
      7•3 days ago

      Why is this a big mistake? I’m not a c++ person

      • @bitcrafter@programming.dev
        link
        fedilink
        4•3 days ago

        The mistake was that they created a type that behaves like an array in every case except for bool, for which they created a special magical version that behaves just subtly different enough that it can break things in confusing ways.

        • @ethancedwards8@programming.dev
          link
          fedilink
          English
          2•3 days ago

          Could you provide an example?

Programmer Humor@programming.dev

!programmer_humor@programming.dev
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
  • 21 users / day
  • 429 users / week
  • 1.09K users / month
  • 3.85K users / 6 months
  • 1 subscriber
  • 1.4K Posts
  • 46.2K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • UI: unknown version
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org