VA-11 Hall-A Bar
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
SavvyWolf to Programmer Humor@programming.devEnglish • 1 year ago

4 billion if statements

andreasjhkarlsson.github.io

message-square
24
48
external-link

4 billion if statements

andreasjhkarlsson.github.io

SavvyWolf to Programmer Humor@programming.devEnglish • 1 year ago
message-square
24
I recently stumbled upon this screenshot while researching social media on the train. Of course, it was followed by a cascade of spiteful comments, criticizing this fresh programmer’s attempt to solve a classical problem in computer science. The modulus operation.
  • @sus@programming.dev
    link
    fedilink
    0•1 year ago

    turns out that 2^53 + 1 is an even number

    • @iknowitwheniseeit@lemmynsfw.com
      link
      fedilink
      1•1 year ago

      The article only covers unsigned 32-bit numbers, so floating point division would be fine.

Programmer Humor@programming.dev

!programmer_humor@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: !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
  • 1.38K users / day
  • 4.94K users / week
  • 9.79K users / month
  • 18.3K users / 6 months
  • 24.3K subscribers
  • 1.52K Posts
  • 52.8K Comments
  • Modlog
  • mods:
  • Feyter
  • adr1an
  • @BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne
  • BE: 0.19.1
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org