Lemmy | Tech Haven
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
SavvyWolf@pawb.social to Programmer Humor@programming.devEnglish · 2 years ago

4 billion if statements

andreasjhkarlsson.github.io

external-link
message-square
47
fedilink
343
external-link

4 billion if statements

andreasjhkarlsson.github.io

SavvyWolf@pawb.social to Programmer Humor@programming.devEnglish · 2 years ago
message-square
47
fedilink
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.
  • Aatube@kbin.social
    link
    fedilink
    arrow-up
    13
    ·
    edit-2
    2 years ago

    @programming_horror , anyone? We have an in production version of this used in Wikipedia

    • isildun@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      5
      ·
      2 years ago

      Instance friendly link: !programming_horror@programming.dev

      • DrDeadCrash@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        Thank you!

      • Aatube@kbin.social
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        I’m pretty sure that my link also works regardless of instance. It works when I visit it on your instance.

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
Visibility: Public
globe

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

  • 1.05K users / day
  • 3.66K users / week
  • 9.89K users / month
  • 10K users / 6 months
  • 1 local subscriber
  • 24.6K subscribers
  • 1.22K Posts
  • 32.9K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org