Ruby Fish Reverse Method
Learned the most amazing thing about Ruby yesterday. The String#reverse method doesn't do anything when you use it on strings **that are pictures of fish** [2022-05-17 15:42:18 ~/misc > cat fish.rb fish = "><>" puts fish.reverse fish2 = "🐟" puts fish2.reverse [2022-05-17 15:42:19 ~/misc > ruby fish.rb ><> 🐟
A programming meme shows Ruby code reversing a string that looks like a fish and an actual fish emoji. The joke is that reversing the ASCII fish changes its direction, while reversing the fish emoji leaves it visually unchanged, humorously treating the emoji as a picture rather than text. It is shared as a reaction to quirky programming behavior or amusing technical discoveries.
- @ithueti / 6323 2022-05-18
- Type
- image
- Size
- 800×800 · 79.8 KiB
- Mood
- absurd, humorous
- Language
- en
- Added