{"id":567,"date":"2007-05-31T09:11:49","date_gmt":"2007-05-31T14:11:49","guid":{"rendered":"http:\/\/UnhinderedByTalent.com\/Phi\/?p=567"},"modified":"2007-05-30T09:12:08","modified_gmt":"2007-05-30T14:12:08","slug":"and-people-accuse-_me_-of-using-long-method-names","status":"publish","type":"post","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2007\/05\/31\/and-people-accuse-_me_-of-using-long-method-names\/","title":{"rendered":"And people accuse _me_ of using long method names"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/media.xircles.codehaus.org\/_projects\/jmock\/_logos\/small.png?w=840\" alt=\"JMock logo\" data-recalc-dims=\"1\" \/><\/p>\n<p>MJ tipped me to <a href=\"http:\/\/www.jmock.org\/javadoc\/2.0.0\/org\/hamcrest\/Matcher.html#_dont_implement_Matcher___instead_extend_BaseMatcher_()\">this amazing method name<\/a> in the <code>Matcher<\/code> interface in JMock2:<\/p>\n<blockquote><p>\n<code>void _dont_implement_Matcher___instead_extend_BaseMatcher_()<\/code>\n<\/p><\/blockquote>\n<p>Yeah, I&#8217;m not making that up.<\/p>\n<p>As the documentation goes on to explain:<\/p>\n<blockquote><p>\nThis method simply acts a friendly reminder not to implement Matcher directly and instead extend BaseMatcher. It&#8217;s easy to ignore JavaDoc, but a bit harder to ignore compile errors :).\n<\/p><\/blockquote>\n<p>The third grader in me <em>loves<\/em> stuff like that.  To be honest, I&#8217;m not entirely convinced that this is a great idea &#8211; it smells like a workaround instead of a solution.  Still, it&#8217;s clever and funny and accomplishes a meaningful task, which is more than I can say for most code in this world.<\/p>\n<p>Makes me want to go do this just for fun.  I just need to create an interface you shouldn&#8217;t implement &#8230;  Well, like I said, I&#8217;m not sure it&#8217;s such a good idea after all&#8230;<\/p>\nNo tag for this post.\n\t<h4>Related posts<\/h4>\n\t<ul class=\"st-related-posts\">\n\t<li>No related posts.<\/li>\n\t<\/ul>\n\n","protected":false},"excerpt":{"rendered":"<p>MJ tipped me to this amazing method name in the Matcher interface in JMock2: void _dont_implement_Matcher___instead_extend_BaseMatcher_() Yeah, I&#8217;m not making that up. As the documentation goes on to explain: This method simply acts a friendly reminder not to implement Matcher directly and instead extend BaseMatcher. It&#8217;s easy to ignore JavaDoc, but a bit harder to &hellip; <a href=\"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2007\/05\/31\/and-people-accuse-_me_-of-using-long-method-names\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;And people accuse _me_ of using long method names&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0},"categories":[4],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p90sy-99","jetpack_sharing_enabled":true,"jetpack_likes_enabled":false,"jetpack-related-posts":[{"id":15,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/01\/10\/sub-evil-boys-frantic-scrabblings-u03c6-i-am-u2026-unhindered-by-talent-ufffd-wordpress-static-pages\/","url_meta":{"origin":567,"position":0},"title":"Testing PingBack &#8211; ignore","author":"Nic McPhee","date":"10 Jan 05","format":false,"excerpt":"Sub-Evil Boy's frantic scrabblings \ufffd %u03C6: I am %u2026 unhindered by talent %uFFFD WordPress : Static Pages Me neither...","rel":"","context":"In &quot;General&quot;","block_context":{"text":"General","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":530,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2007\/04\/08\/party-crashers-unite-is-a-blast\/","url_meta":{"origin":567,"position":1},"title":"&#8220;Party crashers unite&#8221; is a blast!","author":"Nic McPhee","date":"8 Apr 07","format":false,"excerpt":"Making pancakes for the family and catching up on Brainwashed podcasts, I caught a deeply fun tune. The opening track on Podcast 102 (and someone's apparently posting them to archive.org now) is \"Party Crashers Unite\" by Bullets 4 Brunch and it's a blast. Sonically it reminds me a lot of\u2026","rel":"","context":"In &quot;Music&quot;","block_context":{"text":"Music","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/music\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":412,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2006\/12\/18\/evil-marketing-ray-guns-are-eating-my-brain\/","url_meta":{"origin":567,"position":2},"title":"Evil marketing ray guns are eating my brain!","author":"Nic McPhee","date":"18 Dec 06","format":false,"excerpt":"pink Christmas, originally uploaded by ahyc. Not my shot, but a wonderful (in the deeply scary sort of way) shot by the talented ahyc at a Harrods window display. Luckily we avoid a lot of this sort of thing out here in the hinterland. We have our little Parade of\u2026","rel":"","context":"In &quot;Family&quot;","block_context":{"text":"Family","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/family\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":681,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2007\/11\/09\/the-world-our-kids-live-in\/","url_meta":{"origin":567,"position":3},"title":"The world our kids live in","author":"Nic McPhee","date":"9 Nov 07","format":false,"excerpt":"Another in the generally excellent series of TED talks, this time with Lessig in fine form on his favorite subject of how horribly broken our current approaches to copyright are. One of his repeated points that rings very true for the father of a 13 year is the role that\u2026","rel":"","context":"In &quot;Computing&quot;","block_context":{"text":"Computing","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/computing\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":261,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2005\/11\/21\/i-smell-a-trend\/","url_meta":{"origin":567,"position":4},"title":"I smell a trend&#8230;","author":"Nic McPhee","date":"21 Nov 05","format":false,"excerpt":"On the same day that I (finally) post about my biking accident, PeeZed has an unfortunate interaction with a ladder and leaves. While the casual observer might not make a connection...I smell a conspiracy! Think about it - there are just too many connections to ignore. PeeZed and I are\u2026","rel":"","context":"In &quot;Events&quot;","block_context":{"text":"Events","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/events\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":854,"url":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/2008\/07\/04\/weeeeeere-back\/","url_meta":{"origin":567,"position":5},"title":"Weeeeee&#8217;re back!","author":"Nic McPhee","date":"4 Jul 08","format":false,"excerpt":"We're back in Morris, Minnesota, sleeping in our own beds for the first time in 10 months! We arrived late Tuesday after a long, but generally uneventful trip. (Well, uneventful if we ignore a bit of a rush transferring in Chicago that contributed to WeatherGirl leaving her iPods on the\u2026","rel":"","context":"In &quot;Events&quot;","block_context":{"text":"Events","link":"https:\/\/UnhinderedByTalent.com\/Phi\/archives\/category\/events\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/posts\/567"}],"collection":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/comments?post=567"}],"version-history":[{"count":0,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/posts\/567\/revisions"}],"wp:attachment":[{"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/media?parent=567"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/categories?post=567"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/UnhinderedByTalent.com\/Phi\/wp-json\/wp\/v2\/tags?post=567"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}