[LRUG] another beginner.. ruby but not rails

soledad penadés | sole listas at soledadpenades.com
Fri May 4 07:42:01 PDT 2007


After having had to "debug" a long piece of perl code, I even find that one
clearly understandable :)

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



-- 
www.soledadpenades.com
www.supersole.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20070504/a6797e32/attachment-0003.html>


More information about the Chat mailing list