Ḹḗṃɯӳ
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 8 months ago

"☹️".reverse() == "🙂"

sopuli.xyz

message-square
26
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
220

"☹️".reverse() == "🙂"

sopuli.xyz

hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 8 months ago
message-square
26
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
  • hydroptic@sopuli.xyzOP
    link
    fedilink
    arrow-up
    13
    ·
    8 months ago

    Calling reverse() on a function should return its inverse

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      9
      ·
      8 months ago
      isprime.reverse(True)
      // outputs 19 billion prime numbers. Checkmate, atheists.
      
      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        It’s a just a joke, but I feel like that actually says something pretty profound about duck typing, and how computable it actually is.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

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: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

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

  • 68 users / day
  • 533 users / week
  • 1.72K users / month
  • 10.4K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.55K Posts
  • 27.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org