Pricefield | Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
@[email protected] to Programmer [email protected] • 10 months ago

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

sopuli.xyz

message-square
30
fedilink
  • cross-posted to:
  • [email protected]
232

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

sopuli.xyz

@[email protected] to Programmer [email protected] • 10 months ago
message-square
30
fedilink
  • cross-posted to:
  • [email protected]
  • @[email protected]
    link
    fedilink
    15•
    edit-2
    10 months ago

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

    • @[email protected]OP
      link
      fedilink
      13•10 months ago

      Calling reverse() on a function should return its inverse

      • @[email protected]
        link
        fedilink
        9•10 months ago
        isprime.reverse(True)
        // outputs 19 billion prime numbers. Checkmate, atheists.
        
        • @[email protected]
          link
          fedilink
          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 [email protected]

[email protected]
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: [email protected]

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.
  • 7 users / day
  • 92 users / week
  • 359 users / month
  • 1.54K users / 6 months
  • 4 subscribers
  • 1.83K Posts
  • 38.7K Comments
  • Modlog
  • mods:
  • @[email protected]
  • @[email protected]
  • UI: 0.18.4
  • BE: 0.18.2
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org