[Catalyst] Re: looping

2007-02-13 Thread A. Pagaltzis
* Will Smith <[EMAIL PROTECTED]> [2007-02-12 21:25]: > my $column = $c->model("myDB::Author")->get_column('last_name'); > while(my $name = $column->next){ > $lname[$i] = $name; > $i = $i + 1; > } Ugh. Use `push`; this isn’t C. Regards, -- Aristotle Pagaltzis //

[Catalyst] Re: Why I chose Perl and Catalyst

2007-02-13 Thread A. Pagaltzis
* Hermida, Leandro <[EMAIL PROTECTED]> [2007-02-13 15:35]: > It seems that a lot of people (including my boss) think that > Perl cannot compete when one is trying to do "enterprise" > applications. In some ways (please tell me if I am wrong) it > might be true because Perl exhibits very few rules a

[Catalyst] Re: Redirect status codes (was: HTTP redirect - delayed Firefox)

2007-02-13 Thread A. Pagaltzis
* John Napiorkowski <[EMAIL PROTECTED]> [2007-02-14 02:45]: > I'd like to be able to use different redirect status codes in a > meaningful way, but I doubt in the end it buys you anything > meaningful. Until all the browers support this meaningfully it > fails to have much semantic meaning. Just s

Re: [Catalyst] Re: Redirect status codes (was: HTTP redirect - delayed Firefox)

2007-02-13 Thread John Napiorkowski
--- "A. Pagaltzis" <[EMAIL PROTECTED]> wrote: > * Matt S Trout <[EMAIL PROTECTED]> [2007-02-12 > 11:45]: > > On 10 Feb 2007, at 08:30, A. Pagaltzis wrote: > > >Actually, 302 means “repeat the same request at > this other > > >URI” whereas 303 means “please retrieve this > other URI using >

Re: [Catalyst] C::C::FormBuilder - Forwarding to another action overwrites data from the calling action

2007-02-13 Thread Juan Camacho
On 2/12/07, Danny Warren <[EMAIL PROTECTED]> wrote: It looks to me that forwarding from one "Form" action to another "Form" action causes the FormBuilder data from the first action to be overwritten. Can you confirm this, or am I doing something wrong here? I am still somewhat green with Cat

Re: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread Kieren Diment
On 14/02/07, Jon <[EMAIL PROTECTED]> wrote: Following the discussion late last year about Perl not being selected as the language of choice by those who make the decisions, I thought I should write up my experience (as the CTO who gets to make the decisions) as to why we chose Perl, Catalyst, DB

Re: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread Jay K
Let me start by saying that I've led projects with both Java / Struts / etc. and Perl / Catalyst, what follows is based on my experience with both. I have no experience with .Net, so can't comment there, though I suspect some of the Java points, especially those related to support and black boxe

[Catalyst] Re: Redirect status codes (was: HTTP redirect - delayed Firefox)

2007-02-13 Thread A. Pagaltzis
* Matt S Trout <[EMAIL PROTECTED]> [2007-02-12 11:45]: > On 10 Feb 2007, at 08:30, A. Pagaltzis wrote: > >Actually, 302 means “repeat the same request at this other > >URI” whereas 303 means “please retrieve this other URI using > >GET.” The difference is that strictly according to RFC, 302 > >mean

Re: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread Daniel Hulme
> Any insight or advice as to why would one prefer a Perl stack over a > Java or .NET one? For me, one of Perl's big wins, particularly in an enterprise situation, is testing. Test::More is still the easiest-to-use testing framework I've experienced. Adding tests is easy, automating tests is easy,

Re: [Catalyst] Template::Provider::DBI and Catalyst

2007-02-13 Thread Bill Moseley
On Tue, Feb 13, 2007 at 11:02:21AM +0100, Tobias Kremer wrote: > Following up on a recent post to the list concerning templates in the database > I'm wondering what the current status of Template::Provider::DBI is and if > anyone is using it in production within Catalyst? I just found out that it >

Re: [Catalyst] Using C::P::A::ACL and C::M::FormBuilder together?

2007-02-13 Thread Jason Kohles
On Feb 12, 2007, at 4:36 PM, Troy Davis wrote: Changing from Private to Action allows the forward to work, but now the ACL is no longer enforced (although I can see the rule being loaded in the debug output). This isn't unexpected, the C::P::A::ACL docs say it only works with Private. Y

RE: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread John Napiorkowski
--- "Hermida, Leandro" <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > Do not want to start any kind of language war or > anything - just need > some concrete, objective opinions and advice. We > are starting a brand > new web application + services + database project > and my boss ("those > w

Re: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread Christopher H. Laco
Hermida, Leandro wrote: > Hi everyone, > > Do not want to start any kind of language war or anything - just need > some concrete, objective opinions and advice. We are starting a brand > new web application + services + database project and my boss ("those > who make the decisions") asked me as p

RE: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread Hermida, Leandro
Hi everyone, Do not want to start any kind of language war or anything - just need some concrete, objective opinions and advice. We are starting a brand new web application + services + database project and my boss ("those who make the decisions") asked me as project lead why I am chosing the Pe

Re: [Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread Christopher H. Laco
Jon wrote: > Following the discussion late last year about Perl not being selected as > the language of choice by those who make the decisions, I thought I > should write up my experience (as the CTO who gets to make the > decisions) as to why we chose Perl, Catalyst, DBIx::Class for our system > p

[Catalyst] Why I chose Perl and Catalyst

2007-02-13 Thread Jon
Following the discussion late last year about Perl not being selected as the language of choice by those who make the decisions, I thought I should write up my experience (as the CTO who gets to make the decisions) as to why we chose Perl, Catalyst, DBIx::Class for our system platform. I've finall

[Catalyst] Template::Provider::DBI and Catalyst

2007-02-13 Thread Tobias Kremer
Following up on a recent post to the list concerning templates in the database I'm wondering what the current status of Template::Provider::DBI is and if anyone is using it in production within Catalyst? I just found out that it seems to be incompatible with Catalyst::View::TT::ForceUTF8, for examp

Re: [Catalyst] Re: memory usage of mod_perl process

2007-02-13 Thread Carl Johnstone
Just a couple of comments on this topic. If you're using apache2.2 then mod_cache is available. This can be used to cache the result of a request either in memory or disk. Ideal for the situations where you want to cache the front page of your site every minute. http://httpd.apache.org/docs/