HN user

systemnate

5 karma
Posts0
Comments3
View on HN
No posts found.

I used to go home during lunch every day to let my dog out. Many days, I was so busy that it seemed like a super chore that would really put me behind. But, it's insane how many insights I had and problems I solved when I forced myself to step away for a bit and do something else. Oddly, now that I work from home, and probably have more time to step away for 10-15 minutes, I do it less. Good reminder to start doing this more!

Using #respond_to? is normally a code smell. The point of duck typing is exactly that it allows you to avoid checking the type of a class. As long as the object responds to the correct messages, the type does not matter.