supernova.place
  • 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
220

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

sopuli.xyz

hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 8 months ago
message-square
26
fedilink
  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    15
    ·
    edit-2
    8 months ago

    Also, it should turn an error into an empty but successful call. /s

    • 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.

  • 61 users / day
  • 533 users / week
  • 1.67K users / month
  • 10.5K users / 6 months
  • 1 local subscriber
  • 35.6K subscribers
  • 1.65K Posts
  • 33.3K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • BE: 0.19.8
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org