metaprogramming – Tea-Driven Development https://blog.mattwynne.net Matt Wynne taking it one tea at a time Wed, 21 Aug 2019 12:55:30 +0000 en-US hourly 1 https://wordpress.org/?v=6.2 165828820 A Puzzle for Polite Ruby Programmers https://blog.mattwynne.net/2011/04/10/a-puzzle-for-polite-ruby-programmers/ https://blog.mattwynne.net/2011/04/10/a-puzzle-for-polite-ruby-programmers/#comments Sun, 10 Apr 2011 16:46:09 +0000 http://blog.mattwynne.net/2011/04/10/a-puzzle-for-polite-ruby-programmers/ Continue reading "A Puzzle for Polite Ruby Programmers"

]]>
I really enjoyed Jim Weirich’s session on polite programming at the Scottish Ruby Conference. He covered a problem that’s been vexing me for some time, about avoiding the use of method aliasing, by using inheritance instead. Unfortunately, his suggested solution didn’t tell me anything I hadn’t already tried. I still think this must be possible, but that I just don’t know quite enough about Ruby to be able to achieve it. Maybe you do?

Here’s the puzzle:

https://gist.github.com/912504

Can you solve it?

]]>
https://blog.mattwynne.net/2011/04/10/a-puzzle-for-polite-ruby-programmers/feed/ 2 286