[LRUG] another beginner.. ruby but not rails

Roland Swingler roland.swingler at gmail.com
Fri May 4 08:28:26 PDT 2007


yep - sorry, the link with the code I posted probably isn't the best
introduction to camping for anyone, beginner or not :) - Just my
laziness...

That said, *using* camping rather than trying to understand the crazy
stuff he is doing to get it to work should be fairly simple -
everything in just in one file.

A better starting off point? http://code.whytheluckystiff.net/camping/

Cheers,
Roland

On 5/4/07, Stephen Bartholomew <steve at curve21.com> wrote:
> Camping also makes a lot more sense if you look at the unabridged version:
> http://code.whytheluckystiff.net/svn/camping/trunk/lib/camping-unabridged.rb.
>  It's highly commented and an interesting read if you're into that sorta
> thing.
>
> Saying that, there is some crazy _why voodoo that only he seems to
> understand...
>
> Steve
>
>
>
> On 4 May 2007, at 15:42, soledad penadés | sole wrote:
>
> 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
> _______________________________________________
> 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
>
>



More information about the Chat mailing list