I just read the London article and I'm not sure that everyone would come to the same conclusion. If you've ever traveled to Japan, I'm sure it's no surprise that almost everyone there is Japanese. If, over the course of…
The article mentions this.
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…
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.
I don't think this is OK with any language.
I just read the London article and I'm not sure that everyone would come to the same conclusion. If you've ever traveled to Japan, I'm sure it's no surprise that almost everyone there is Japanese. If, over the course of…
The article mentions this.
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…
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.
I don't think this is OK with any language.