86thumbs
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 10 months ago

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

sopuli.xyz

message-square
24
fedilink
215

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

sopuli.xyz

hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 10 months ago
message-square
24
fedilink
  • hydroptic@sopuli.xyzOP
    link
    fedilink
    arrow-up
    12
    ·
    10 months ago

    Calling reverse() on a function should return its inverse

    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      9
      ·
      10 months ago
      isprime.reverse(True)
      // outputs 19 billion prime numbers. Checkmate, atheists.
      
      • CanadaPlus@lemmy.sdf.org
        link
        fedilink
        arrow-up
        2
        ·
        10 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

remote_follow_modal_title

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.
community_visibility: public
globe

public_blurb

  • 277 users / day
  • 1.1K users / week
  • 3.22K users / month
  • 9.89K users / 6 months
  • number_of_local_subscribers
  • 37K subscribers
  • 1.78K Posts
  • 37.9K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.5
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org