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

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

sopuli.xyz

message-square
18
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
8

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

sopuli.xyz

hydroptic@sopuli.xyz to Programmer Humor@lemmy.ml · 11 months ago
message-square
18
link
fedilink
  • cross-posted to:
  • programmer_humor@programming.dev
alert-triangle
You must log in or # to comment.
  • lelgenio@lemmy.ml
    link
    fedilink
    arrow-up
    4
    ·
    11 months ago
    [🌽].pop() == 🍿
    
    • tetris11@lemmy.ml
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      11 months ago
      "🚴".push() = "🚲🤸"
      
  • socsa@piefed.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    11 months ago

    Be the operator overload you wish to see in the world

  • AllNewTypeFace@leminal.space
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    Then “b” backwards would have to be “d”

    • hydroptic@sopuli.xyzOP
      link
      fedilink
      arrow-up
      3
      ·
      11 months ago

      "E".reverse() == "∃"

  • RiceMunk@sopuli.xyz
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    11 months ago

    but

    "🙂".reverse() == "🙃"

  • tetris11@lemmy.ml
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago
    "🐈".concat() = "😼"
    
  • 418teapot@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    11 months ago

    Best I can do is

    "\ude41🙂".split("").reverse().join("")
    

    returns "\ude42🙁"

  • deathmetal27@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    “:-)”.reverse() == “)-:”

    Close enough

  • BaumGeist@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago
    "☹️".reverse() == "☹️"
    
    • Boomkop3@reddthat.com
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      11 months ago

      wasn’t it
      🙁
      .
      r
      e
      v
      e
      r
      s
      e
      ()

    • hydroptic@sopuli.xyzOP
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      You’re no fun

  • MultipleAnimals@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    11 months ago

    JavaScript taking notes

  • CanadaPlus@lemmy.sdf.org
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    11 months ago

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

    • hydroptic@sopuli.xyzOP
      link
      fedilink
      arrow-up
      0
      ·
      11 months ago

      Calling reverse() on a function should return its inverse

      • tetris11@lemmy.ml
        link
        fedilink
        arrow-up
        2
        arrow-down
        1
        ·
        11 months ago
        isprime.reverse(True)
        // outputs 19 billion prime numbers. Checkmate, atheists.
        
  • Boomkop3@reddthat.com
    link
    fedilink
    arrow-up
    0
    ·
    11 months ago

    You could implement that on a chat, but I wouldn’t do that on a string

    • hydroptic@sopuli.xyzOP
      link
      fedilink
      arrow-up
      1
      ·
      11 months ago

      Where’s your sense of adventure?!

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.

  • 107 users / day
  • 107 users / week
  • 479 users / month
  • 3.98K users / 6 months
  • 2 local subscribers
  • 37.2K subscribers
  • 1.74K Posts
  • 30.1K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org