Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

10 Catalyst Models in 10 Days wrapping up-ish

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


apv at sedition

Jul 25, 2009, 2:25 PM

Post #1 of 7 (1457 views)
Permalink
10 Catalyst Models in 10 Days wrapping up-ish

Hey, all.

http://sedition.com/a/2733 is mostly done (I have serious repairs to
do to make #9 work and might drop it entirely for a second stringer)
with the last model entry, "#10: Fixing your legacy code by not
fixing it," http://sedition.com/a/2743

To make it easy to play with and fix I've put it on github: http://
github.com/pangolin/p5-myapp-10in10 -- the project contains a fairly
detailed index page of the projects and files, a src browser, and
most of the collateral needed to make it all run. It's not super
clean but it makes no sense to put up a tarball and expect anyone to
keep getting it for updates. I'll be updating the project lightly for
awhile still. I welcome and appreciate any good eyes/patches on it.

Speaking of git: "The best tech quote of 2009," http://sedition.com/a/
2784

Now off to get the OpenID credential installing without complaints/
failures.

-Ashley

_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


apv at sedition

Jul 25, 2009, 7:35 PM

Post #2 of 7 (1371 views)
Permalink
Re: 10 Catalyst Models in 10 Days wrapping up-ish [In reply to]

Stupid developer update/warning. I set up my github awhile back
before I'd settled on a contracting company name. I just reset the
name to match since I may actually be using it for more things.
Project URI is now-

http://github.com/pangyre/p5-myapp-10in10


On Jul 25, 2009, at 2:25 PM, Ashley wrote:

> Hey, all.
>
> http://sedition.com/a/2733 is mostly done (I have serious repairs
> to do to make #9 work and might drop it entirely for a second
> stringer) with the last model entry, "#10: Fixing your legacy code
> by not fixing it," http://sedition.com/a/2743
>
> To make it easy to play with and fix I've put it on github: http://
> github.com/pangolin/p5-myapp-10in10 -- the project contains a
> fairly detailed index page of the projects and files, a src
> browser, and most of the collateral needed to make it all run. It's
> not super clean but it makes no sense to put up a tarball and
> expect anyone to keep getting it for updates. I'll be updating the
> project lightly for awhile still. I welcome and appreciate any good
> eyes/patches on it.
>
> Speaking of git: "The best tech quote of 2009," http://sedition.com/
> a/2784
>
> Now off to get the OpenID credential installing without complaints/
> failures.
>
> -Ashley


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


orasnita at gmail

Jul 27, 2009, 7:16 AM

Post #3 of 7 (1358 views)
Permalink
Re: 10 Catalyst Models in 10 Days wrapping up-ish [In reply to]

From: "Ashley" <apv [at] sedition>> Hey, all.
>
> http://sedition.com/a/2733 is mostly done (I have serious repairs to do
> to make #9 work and might drop it entirely for a second stringer)

Hi,

Thank you for it.

In the first model (Random quotes), I've seen the following line:

sub get_one : method {

Can you tell what does ": method" is used for and what happends if we don't
use it?

Is it ok if I will have more questions like this about the next models?

Thank you.

Octavian


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


apv at sedition

Jul 28, 2009, 8:30 AM

Post #4 of 7 (1343 views)
Permalink
Re: 10 Catalyst Models in 10 Days wrapping up-ish [In reply to]

On Jul 27, 2009, at 7:16 AM, Octavian Râsnita wrote:
> From: "Ashley" <apv [at] sedition>> Hey, all.
>>
>> http://sedition.com/a/2733 is mostly done (I have serious repairs
>> to do to make #9 work and might drop it entirely for a second
>> stringer)
>
> Hi,
>
> Thank you for it.
>
> In the first model (Random quotes), I've seen the following line:
>
> sub get_one : method {
>
> Can you tell what does ": method" is used for and what happends if
> we don't use it?
>
> Is it ok if I will have more questions like this about the next
> models?

Hi Octavian (and anyone curious). It's attributes, similar to Cat
dispatch stuff, and it's one of the only ones built-in to Perl. Check
out http://perldoc.perl.org/perlsub.html and http://perldoc.perl.org/
attributes.html for a real description. I'm not sure how useful the
declaration actually is. It can help disambiguate certain calls when
names in the global/core collide but I think that's about all it does
here.

Since we're on the subject, #9 TheSchwartz, is pretty clean now, in
part thanks to Oleg Kostyuk who just alerted me to a problem. And the
git depot has downloads with all the stuff working (once you do the
dependencies): http://github.com/pangyre/p5-myapp-10in10/tree/master

Wrap-up was yesterday: http://sedition.com/a/2744

And since it's been mentioned: my copy of the new book came from
Amazon (US) on the cheap-o, free shipping in 4 days.

-Ashley


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


orasnita at gmail

Jul 28, 2009, 10:21 AM

Post #5 of 7 (1340 views)
Permalink
Re: 10 Catalyst Models in 10 Days wrapping up-ish [In reply to]

From: "Ashley" <apv [at] sedition>
> Since we're on the subject, #9 TheSchwartz, is pretty clean now, in part
> thanks to Oleg Kostyuk who just alerted me to a problem. And the git
> depot has downloads with all the stuff working (once you do the
> dependencies): http://github.com/pangyre/p5-myapp-10in10/tree/master

TheSchwartz model was the only one I needed to delete in order to be able to
test the app, because I couldn't install TheSchwartz module under Windows.
I have tried to just replace TheSchwartz with MooseX::TheSchwartz with no
other changes, but this way I couldn't make the reminder work.

Octavian


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


bobtfish at bobtfish

Jul 28, 2009, 5:32 PM

Post #6 of 7 (1335 views)
Permalink
Re: 10 Catalyst Models in 10 Days wrapping up-ish [In reply to]

On 28 Jul 2009, at 18:21, Octavian Râsnita wrote:

> MooseX::TheSchwartz

I haven't even looked at this, other than to note that it wins the
worst named module EVAR prize (as MooseX:: is a namespace for Moose
extensions, which this blatantly isn't).

Cheers
t0m


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/


orasnita at gmail

Jul 28, 2009, 10:09 PM

Post #7 of 7 (1335 views)
Permalink
Re: 10 Catalyst Models in 10 Days wrapping up-ish [In reply to]

From: "Tomas Doran" <bobtfish [at] bobtfish>
On 28 Jul 2009, at 18:21, Octavian Râsnita wrote:

> MooseX::TheSchwartz

I haven't even looked at this, other than to note that it wins the
worst named module EVAR prize (as MooseX:: is a namespace for Moose
extensions, which this blatantly isn't).

Cheers
t0m

Well, yes, but unlike TheSchwartz... it can be installed under Windows.

Octavian


_______________________________________________
List: Catalyst [at] lists
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst [at] lists/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.