<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Dr Nic &#187; Magic Wiggly Lines</title>
	<atom:link href="http://drnicwilliams.com/category/ruby/ruby-on-rails/magic-models/magic-wiggly-lines/feed/" rel="self" type="application/rss+xml" />
	<link>http://drnicwilliams.com</link>
	<description>Ruby makes Rails, Javascript makes Ajax, Dr Nic makes Magic</description>
	<lastBuildDate>Tue, 03 Aug 2010 23:44:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Magic Wiggly Lines =&gt; GuessMethod, by Chris Shea</title>
		<link>http://drnicwilliams.com/2007/07/23/magic-wiggly-lines-guessmethod-by-chris-shea/</link>
		<comments>http://drnicwilliams.com/2007/07/23/magic-wiggly-lines-guessmethod-by-chris-shea/#comments</comments>
		<pubDate>Mon, 23 Jul 2007 07:44:02 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[Link]]></category>
		<category><![CDATA[Magic Wiggly Lines]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Trick]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2007/07/23/magic-wiggly-lines-guessmethod-by-chris-shea/</guid>
		<description><![CDATA[If you ever make time to code just for pleasure, then method_missing and const_missing are just begging for abuse. Chris Shea has come up with GuessMethod &#8211; a very cool hack that now deprecates my concept of Magic Wiggly Lines &#8211; a spell-checker for runtime code. What&#8217;s it do? Cop a squiz at this genius&#8230; [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2007/05/23/dr-nics-magic-show-at-rejectconf2007/' rel='bookmark' title='Permanent Link: Dr Nic&#8217;s Magic Show at RejectConf2007'>Dr Nic&#8217;s Magic Show at RejectConf2007</a> <small>Update: there is a patch available for edge rails to...</small></li><li><a href='http://drnicwilliams.com/2007/04/12/magic-multi-connections-a-facility-in-rails-to-talk-to-more-than-one-database-at-a-time/' rel='bookmark' title='Permanent Link: Magic Multi-Connections: A &#8220;facility in Rails to talk to more than one database at a time&#8221;'>Magic Multi-Connections: A &#8220;facility in Rails to talk to more than one database at a time&#8221;</a> <small>At this point in time there’s no facility in Rails...</small></li><li><a href='http://drnicwilliams.com/2007/04/12/spring-collection-the-modular-magic-models/' rel='bookmark' title='Permanent Link: Spring Collection &#8211; the Modular Magic Models'>Spring Collection &#8211; the Modular Magic Models</a> <small>Dr Nic&#8217;s Magic Models are like cheating on your taxes...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>If you ever make time to code just for pleasure, then <code>method_missing</code> and <code>const_missing</code> are just begging for abuse.</p>
<p><a href="http://ruby.tie-rack.org/">Chris Shea</a> has come up with <a href="http://ruby.tie-rack.org/9/guessmethod-002/">GuessMethod</a> &#8211; a very cool hack that now deprecates my concept of <a href="http://drnicwilliams.com/2007/03/22/meta-magic-in-ruby-presentation/">Magic Wiggly Lines</a> &#8211; <strong>a spell-checker for runtime code.</strong></p>
<p>What&#8217;s it do? Cop a squiz at this genius&#8230;</p>
<pre class="syntax">
$ gem install guessmethod -y
$ irb
> require 'rubygems'
> require 'guessmethod'
> class Object; include GuessMethod; end  # though this could go in the guessmethod.rb file in the gem
> class Product; def name; "Some product"; end; end
> Prodct.nw.nae
<span class="ident">attention</span>: replacing non-existant constant <span class="constant">Prodct</span> with <span class="constant">Product</span> for <span class="constant">Object</span>
<span class="ident">attention</span>: sending <span class="symbol">new</span> instead of <span class="symbol">nw</span> to <span class="constant">Product:Class</span>
<span class="ident">attention</span>: sending <span class="symbol">name</span> instead of <span class="symbol">nae</span> to <span class="constant">#&lt;Product:0x144ff10>:Product</span>
=> "Some product"
</pre>
<p>That&#8217;s going straight into my <a href="http://drnicwilliams.com/2006/10/12/my-irbrc-for-consoleirb/">.irbrc</a> file. My bad spelling, coupled with my British/Australian English, will never slow me down again!</p>
<p>UPDATE: actually, it doesn&#8217;t like being in the .irbrc file for Rails console; so in the config/environments/development.rb files will have to do for the moment.</p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2007/05/23/dr-nics-magic-show-at-rejectconf2007/' rel='bookmark' title='Permanent Link: Dr Nic&#8217;s Magic Show at RejectConf2007'>Dr Nic&#8217;s Magic Show at RejectConf2007</a> <small>Update: there is a patch available for edge rails to...</small></li><li><a href='http://drnicwilliams.com/2007/04/12/magic-multi-connections-a-facility-in-rails-to-talk-to-more-than-one-database-at-a-time/' rel='bookmark' title='Permanent Link: Magic Multi-Connections: A &#8220;facility in Rails to talk to more than one database at a time&#8221;'>Magic Multi-Connections: A &#8220;facility in Rails to talk to more than one database at a time&#8221;</a> <small>At this point in time there’s no facility in Rails...</small></li><li><a href='http://drnicwilliams.com/2007/04/12/spring-collection-the-modular-magic-models/' rel='bookmark' title='Permanent Link: Spring Collection &#8211; the Modular Magic Models'>Spring Collection &#8211; the Modular Magic Models</a> <small>Dr Nic&#8217;s Magic Models are like cheating on your taxes...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2007/07/23/magic-wiggly-lines-guessmethod-by-chris-shea/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Meta-Magic in Ruby: Dr Nic Unplugged in Stockholm</title>
		<link>http://drnicwilliams.com/2007/03/22/meta-magic-in-ruby-presentation/</link>
		<comments>http://drnicwilliams.com/2007/03/22/meta-magic-in-ruby-presentation/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 05:52:35 +0000</pubDate>
		<dc:creator>Dr Nic</dc:creator>
				<category><![CDATA[BTS]]></category>
		<category><![CDATA[Magic Models]]></category>
		<category><![CDATA[Magic Wiggly Lines]]></category>
		<category><![CDATA[Meta-Programming]]></category>
		<category><![CDATA[Presentation]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Trick]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://drnicwilliams.com/2007/03/22/meta-magic-in-ruby-presentation/</guid>
		<description><![CDATA[Last nights&#8217; Ruby meeting in Stockholm had a great turn out and starred Ola Bini sharing the latest and greatest about JRuby, and myself giving an overview on the wonders of Meta-Magic in Ruby. I&#8217;ll write a separate post on Ola&#8217;s presentation shortly. It was awesome and I videoed it. Hehehe. But first and foremost, [...]


Related posts:<ol><li><a href='http://drnicwilliams.com/2010/06/01/validate-and-save-your-ruby-in-textmate-with-secret-rubinus-superpowers/' rel='bookmark' title='Permanent Link: Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers'>Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers</a> <small>In some TextMate bundles, if you save a file it...</small></li><li><a href='http://drnicwilliams.com/2009/04/15/cucumber-building-a-better-world-object/' rel='bookmark' title='Permanent Link: Cucumber: building a better World (object)'>Cucumber: building a better World (object)</a> <small>How to write helper libraries for your Cucumber step definitions...</small></li><li><a href='http://drnicwilliams.com/2008/12/11/future-proofing-your-ruby-code/' rel='bookmark' title='Permanent Link: Future proofing your Ruby code. Ruby 1.9.1 is coming.'>Future proofing your Ruby code. Ruby 1.9.1 is coming.</a> <small> Bugger. I&#8217;m a Ruby monogamist. I use the Ruby...</small></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Last nights&#8217; Ruby meeting in <a href="http://www.rails.se/rails/show/Railstr%C3%A4ff+20+Mars+2007">Stockholm</a> had a great turn out and starred <a href="http://ola-bini.blogspot.com/">Ola Bini</a> sharing the latest and greatest about <a href="http://jruby.codehaus.org/">JRuby</a>, and myself giving an overview on the wonders of Meta-Magic in Ruby.</p>
<p>I&#8217;ll write a separate post on Ola&#8217;s presentation shortly. It was awesome and I videoed it. <em>Hehehe.</em></p>
<div>
But first and foremost, lets talk about me. Or rather, let&#8217;s talk about my talk, which was also videoed.</p>
<div style="float: right" >
<a id="p157" href="http://drnicwilliams.com/wp-content/uploads/2007/03/meta-magic-in-ruby-stockholm-2007-03-20.pdf" title="Meta-magic in Ruby - Weaponry"><img id="image159" src="http://drnicwilliams.com/wp-content/uploads/2007/03/pdf-file.thumbnail.jpg" alt="PDF File" /><br />Meta-magic in Ruby<br />- Weaponry.pdf</a></div>
<p>Meta-magic in a programming language is as important to programmers as changeable ring tones are to teenagers. Authors of programming languages cannot provide every feature to everyone, so it is so wonderful to be able to add new language features and extensions that you want. Everyone knows you can add Jessica Simpson as your mobile ring tone, but not all programmers know that you can add new features to their programming world. </p>
<p>So here is an overview to a new world of happiness. It also overviews how the <a href="http://magicmodels.rubyforge.org">Magic Models</a> work, and introduces a new gem I&#8217;m working on &#8211; the <strong>Magic Wiggly Lines</strong> &#8211; described as &#8220;<a href="http://ola-bini.blogspot.com/2007/03/post-rails-meetup.html">genius or insane</a>&#8221;</p>
</div>
<p><embed style="width:500px; height:326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=-8652861546168277758&#038;hl=en" flashvars=""> </embed></p>


<p>Related posts:<ol><li><a href='http://drnicwilliams.com/2010/06/01/validate-and-save-your-ruby-in-textmate-with-secret-rubinus-superpowers/' rel='bookmark' title='Permanent Link: Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers'>Validate and Save your Ruby in TextMate &#8211; with secret Rubinus superpowers</a> <small>In some TextMate bundles, if you save a file it...</small></li><li><a href='http://drnicwilliams.com/2009/04/15/cucumber-building-a-better-world-object/' rel='bookmark' title='Permanent Link: Cucumber: building a better World (object)'>Cucumber: building a better World (object)</a> <small>How to write helper libraries for your Cucumber step definitions...</small></li><li><a href='http://drnicwilliams.com/2008/12/11/future-proofing-your-ruby-code/' rel='bookmark' title='Permanent Link: Future proofing your Ruby code. Ruby 1.9.1 is coming.'>Future proofing your Ruby code. Ruby 1.9.1 is coming.</a> <small> Bugger. I&#8217;m a Ruby monogamist. I use the Ruby...</small></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://drnicwilliams.com/2007/03/22/meta-magic-in-ruby-presentation/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
