After having had to "debug" a long piece of perl code, I even find that one clearly understandable :)<br><br><div><span class="gmail_quote">On 5/4/07, <b class="gmail_sendername">graham</b> <<a href="mailto:graham@theseamans.net">
graham@theseamans.net</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hmm... as a beginner I would rather not be contemplating working my way
<br>through lines like:<br><br>def R<br>c,*args;p=/\(.+?\)/;args.inject(c.urls.detect{|x|x.scan(p).size==args.size}.dup){|str,a|str.gsub(p,(a.method(a.class.primary_key<br> )[]rescue a).to_s)};end;def / p;File.join(@root,p) end;end;
<br><br>while debugging my tiny application. It's bad enough trying to debug my<br>own code, but at least I can comment that..<br><br>Thanks for the thought ;-)<br>Graham<br><br><br>Roland Swingler wrote:<br>> Depending on what you are doing on the web you might like to check out
<br>> Camping if you feel that what you are trying to do is too "small",<br>> even for Rails.<br>><br>> <a href="http://redhanded.hobix.com/bits/campingAMicroframework.html">http://redhanded.hobix.com/bits/campingAMicroframework.html
</a><br>><br>> Cheers,<br>> Roland<br>><br>> On 5/4/07, Chris Parsons <<a href="mailto:chris@edendevelopment.co.uk">chris@edendevelopment.co.uk</a>> wrote:<br>>> On 3 May 2007, at 18:51, graham wrote:
<br>>><br>>>> How do people feel about this? Is it a case of 'if you want to use<br>>>> ruby<br>>>> on the web you're wasting your energy not using Rails'? Or do I just<br>>>> need to refine my google skills? or just bring some code to the next
<br>>>> ruby meet ;-) ?<br>>> I'd recommend using Rails exclusively for Ruby on the web, but learn<br>>> some<br>>> pure non web Ruby before moving to Rails. The Ruby Quiz[1] is quite good<br>
>> for standalone ruby solutions to coding problems, or you can pick a<br>>> scripting<br>>> task you might have done in perl and start solving it in Ruby. Make<br>>> sure you've<br>>> worked through this online book[2], too.
<br>>><br>>> IME a strong non-web Ruby background really helps when it comes to<br>>> writing<br>>> tidy and expressive Rails code.<br>>><br>>> Thanks<br>>> Chris<br>>><br>>> [1]
<a href="http://rubyquiz.com/">http://rubyquiz.com/</a><br>>> [2] <a href="http://ruby-doc.org/docs/ProgrammingRuby/">http://ruby-doc.org/docs/ProgrammingRuby/</a><br>>><br>>> --<br>>> Chris Parsons
<br>>> Managing Director<br>>> Eden Development (UK) Ltd<br>>><br>>> <a href="mailto:chris@edendevelopment.co.uk">chris@edendevelopment.co.uk</a><br>>> <a href="http://www.edendevelopment.co.uk">
www.edendevelopment.co.uk</a><br>>><br>>> 0845 0097 094<br>>> po box 425, winchester, so23 0wy, uk<br>>> Map: <a href="http://pininthemap.com/edendevelopment">http://pininthemap.com/edendevelopment
</a><br>>><br>>><br>>> Tried Pin in the Map? Mark a map location, add text, send to friends.<br>>> <a href="http://pininthemap.com">http://pininthemap.com</a><br>>><br>>> --------------
<br>>> This electronic message and all contents contain information from the<br>>> sender which may be privileged, confidential or otherwise protected<br>>> from disclosure. The information is intended to be for the addressee
<br>>> (s) only. If you are not an addressee, any copying, disclosure,<br>>> distribution or use of the contents of this message is prohibited. If<br>>> you have received this electronic message in error, please notify the
<br>>> sender by reply e-mail and destroy the original message and all<br>>> copies. The sender does not accept liability for any errors or<br>>> omissions.<br>>><br>>><br>>> _______________________________________________
<br>>> chat mailing list<br>>> <a href="mailto:chat@lrug.org">chat@lrug.org</a><br>>> <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>>>
<br>> _______________________________________________<br>> chat mailing list<br>> <a href="mailto:chat@lrug.org">chat@lrug.org</a><br>> <a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org
</a><br><br>_______________________________________________<br>chat mailing list<br><a href="mailto:chat@lrug.org">chat@lrug.org</a><br><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org
</a><br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.soledadpenades.com">www.soledadpenades.com</a><br><a href="http://www.supersole.net">www.supersole.net</a>