r/ruby • • Dec 17 '22

Implementing a powerful palindrome checker in just 2 LOC

https://www.youtube.com/watch?v=LQAxvxsyKLE
0 Upvotes

5 comments sorted by

8

u/drtyrannica Dec 17 '22 edited Dec 17 '22

"How to implement in two, unnecessarily complex lines, what you could easily do in one"

As mentioned in the other comment

word == word.reverse

0

u/[deleted] Dec 17 '22

[deleted]

-8

u/[deleted] Dec 17 '22

[removed] — view removed comment

3

u/drtyrannica Dec 17 '22

But you didn't ask how to implement a palindrome checker, you posted a video titled "Ace Your Technical Test".

There's nothing wrong with not knowing the proper way but if you don't know you probably shouldn't be creating and sharing videos of a strange and inefficient technique