Re: A question for the newbies

2006-02-17 Thread Octavian Rasnita
From: Jonathan [EMAIL PROTECTED] Just because I like to advocate TAL: ul tal:condition=true: foo li tal:repeat=blah foo span tal:condition=repeat/firstFirst item?/span span tal:condition=repeat/evenEven item?/span span tal:condition=repeat/oddOdd item?/span span

Re: A question for the newbies

2006-02-17 Thread Jeff Pang
under mod_perl,it act excellently.while the another strong email provider www.gmx.net is running under fast-cgi. -Original Message- From: Perrin Harkins [EMAIL PROTECTED] Sent: Feb 16, 2006 5:22 PM To: Daniel McBrearty [EMAIL PROTECTED] Cc: modperl@perl.apache.org Subject: Re: A question

Re: A question for the newbies

2006-02-17 Thread Frank Wiles
On Fri, 17 Feb 2006 11:36:08 +0800 Foo Ji-Haw [EMAIL PROTECTED] wrote: I think people choose templating engines depending on how they want to use it. For me, HTML::Template is fairly ideal because it encourages me to focus on the business logic, and abstracts the presentation fairly well. By

Re: A question for the newbies

2006-02-17 Thread Frank Wiles
On Fri, 17 Feb 2006 06:31:21 -0500 (EST) Jeff Pang [EMAIL PROTECTED] wrote: I do agree mod_perl is a strong web-develop language.But I still think it consume too much memory. Under my test,it's not so stable as fast-cgi,and eat much more memory than fast-cgi.Maybe the truth is not so,it's

Re: A question for the newbies

2006-02-17 Thread Jonathan Vanasco
On Feb 17, 2006, at 4:45 AM, Octavian Rasnita wrote: Yes, and you also forgot to say about the speed of this templating system which is very low comparing with other templating systems. Teddy Petal is slow because of the way is implemented. Template::Tal i s a bit faster, but doesn't

Re: A question for the newbies

2006-02-17 Thread Octavian Rasnita
From: Jonathan Vanasco [EMAIL PROTECTED] In a production environment, I found this: HTML::Template::JIT was the fastest. it averaged something like . 0003 seconds Template::Toolkit was around .003 Petal was around .008 (without pre-caching) my application logic was about .08 so i

Re: A question for the newbies

2006-02-17 Thread Daniel McBrearty
Frank, what's the light/heavy approach?On 2/17/06, Frank Wiles [EMAIL PROTECTED] wrote: On Fri, 17 Feb 2006 06:31:21 -0500 (EST)Jeff Pang [EMAIL PROTECTED] wrote: I do agree mod_perl is a strong web-develop language.But I still think it consume too much memory. Under my test,it's not so stable as

Re: A question for the newbies

2006-02-17 Thread will trillich
On 2/16/06, Clinton Gormley [EMAIL PROTECTED] wrote: It seems to me that a lot of people new to mod_perl and to Perl have joined this mailing list recently. i'm a perl hack, not all that comfy with the myriad modules available, but can make it do what i need. as for php, it's a nice language,

Re: A question for the newbies

2006-02-17 Thread Frank Wiles
On Fri, 17 Feb 2006 16:54:23 -0600 will trillich [EMAIL PROTECTED] wrote: as for php, it's a nice language, in no small part due to its grammar being so perl-like. my theory is: php arose because pete (isn't that the first P in PHP? pete's home page?) wanted a module built in to apache that

Re: A question for the newbies

2006-02-17 Thread Mark Galbreath
I've worked with PHP since 4.2 and I think its a nice language. For somebody else. I bloody well hate it. Mark Frank Wiles [EMAIL PROTECTED] 17-Feb-06 18:02:47 PM On Fri, 17 Feb 2006 16:54:23 -0600"will trillich" [EMAIL PROTECTED] wrote: as for php, it's a nice language, in no small part due

Re: A question for the newbies

2006-02-17 Thread Randal L. Schwartz
Frank == Frank Wiles [EMAIL PROTECTED] writes: Frank Someone correct me if I'm wrong, but I seem to remember that the Frank first couple of versions of PHP were written in mod_perl. Then Frank again I could be suffering from sleep deprivation! :) From what I recall, the *first* version

Re: A question for the newbies

2006-02-17 Thread Mark Galbreath
This was a cool interjection of cosmic coincidence. I'm sitting here reading the 4th Edition of "Learning Perl." I wore the other editions out. I have "Learning Perl Objects, References Modules" on the shelf right next to me. Thanks for the great reads (and the sense of humor) over the years,

Re: A question for the newbies

2006-02-16 Thread John ORourke
Well I'm more of an old-bie, but I've heard quite a few people recently (first hand) acknowledging that PHP (specifically) isn't really a 'serious' contender for enterprise web apps. (no flames please, I have no opinions!) I've also noticed my favourite news site* defining 'LAMP' as Linux,

Re: A question for the newbies

2006-02-16 Thread Arne Skjaerholt
I'm not exactly a newbie anymore, but I came to mod_perl by way of Perl scripts for the shell. I'd already written some PHP, but when I learned Perl I saw the error of my ways as it were and realized that PHP really is quite the makeshift language and that developing in Perl was far more

Re: A question for the newbies

2006-02-16 Thread Mark Galbreath
I've been developing apps for business, ecommerce, and government in Java for 6 years. I developed Web sites with Perl 5.0CGI in the mid-1990s but never much cared for it outside of its excellent string maniulation, being attracted to the pure OO languages.I spent the last 2 years developing in

Re: A question for the newbies

2006-02-16 Thread RJ Herrick
I started learning Perl about two years ago, and prior to that hadn't done any programming since my two pascal classes in highschool, except for a smattering of dos scripting. I had been mucking around with various linux distros and was fishing for a good language to get back onboard with, and

Re: A question for the newbies

2006-02-16 Thread Mark Galbreath
truly. The only thing PHP ever had going for it as far as I can see is templating. And the Perl Template Toolkit is way cooler than PHP's templating framework. On the other hand, if you write OO PHP (available since version 5), it could develop into a robust scripting language. But there are so

Re: A question for the newbies

2006-02-16 Thread Boysenberry Payne
I guess I'm still considered a mod_perl / perl newbie. I started learning perl 6 months ago in anticipation of translating a CMS (Content Management System) I wrote in PHP. I considered Python, and C++ as alternatives. C++ was over kill and would require way too much development just to

Re: A question for the newbies

2006-02-16 Thread Frank Wiles
On Thu, 16 Feb 2006 09:42:49 -0500 Mark Galbreath [EMAIL PROTECTED] wrote: I miss the reference dot notation of Java and other OO languages, however. Why didn't Larry include that? And the 'use v. require' issue seems silly to me. Why not a simple 'import' statement? And the accessor

Re: A question for the newbies

2006-02-16 Thread Saltbreez
Well, I'm a newbie that has [and has used] a pink copy of the Camel book 1. I choose perl _BECAUSE_ it was antiquated then; awk, sed and perl had stood the test of time. Community? Perl was built by those with need for those with need; I hear a corporation owns Java... and as for the creater of

Re: A question for the newbies

2006-02-16 Thread Michael Greenish
I've been writing in perl for just over a year. I was a developer in embedded controls, but had an idea for a website and some free time so started learning perl. I had a strong C++ background so understood OO pretty well. I chose Perl because I had heard so much about it. My first site was

Re: A question for the newbies

2006-02-16 Thread Mark Galbreath
Many people do not realize that the core of .NET is an open standard. It was submitted to ECMA and approved 3 years ago. There is, in fact, a pretty robust open source .NET project on SourceForge: Mono. Since Java 5.0 was released, however, the interest in C# has decreased, and no one was ever

Re: A question for the newbies

2006-02-16 Thread Michael Peters
Some selective answers...(not really relevant to your present job, but maybe more helpful in the future) Michael Greenish wrote: I looked around on the web for a while, tried to study the modperl apache site's examples, but just couldn't derive a good code example; I understood OO, I knew

Re: A question for the newbies

2006-02-16 Thread Perrin Harkins
On Thu, 2006-02-16 at 09:48 -0800, Michael Greenish wrote: What I like about PHP over perl is the ease of variable declaration. I feel I have to use strict with perl, I would like the ability to not have to put my in front of every new variable. Probably 1/4 of my errors when debugging

Re: A question for the newbies

2006-02-16 Thread Tyler MacDonald
Perrin Harkins [EMAIL PROTECTED] wrote: My biggest complaint for perl for web apps, however, is the templating. I haven't found a template module in perl that rivals Smarty templates in PHP. It sounds like you somehow missed Template Toolkit:

Re: A question for the newbies

2006-02-16 Thread Jonathan
On Feb 16, 2006, at 12:48 PM, Michael Greenish wrote: What I like about PHP over perl is the ease of variable declaration. I feel I have to use strict with perl, I would like the ability to not have to put my in front of every new variable. putting my / our before variables is good though.

Re: A question for the newbies

2006-02-16 Thread Randal L. Schwartz
Tyler == Tyler MacDonald [EMAIL PROTECTED] writes: Tyler Why am I forced to say Tyler [% FOREACH(blah) foo %] Tyler Instead of the Tyler [% for my $i (@foo) %] Tyler I've become happily used to? Because the day will come when you want to replace foo.a # get $foo-{a} with

Re: A question for the newbies

2006-02-16 Thread Perrin Harkins
On Thu, 2006-02-16 at 10:10 -0800, Tyler MacDonald wrote: OK, this is the fifth time this morning I've heard about template::toolkit. It all started when a friend that I'm working on an AJAX library with came up to me and said hey, ingy's rewritten Template::Toolkit in javascript! This

Re: A question for the newbies

2006-02-16 Thread John ORourke
This thread has brought out some quite interesting marketing (as in advocacy and understanding) issues so far - any volunteers for adding to or creating a FAQ about getting into mod_perl? John

Re: A question for the newbies

2006-02-16 Thread Jonathan
Just because I like to advocate TAL: ul tal:condition=true: foo li tal:repeat=blah foo span tal:condition=repeat/firstFirst item?/span span tal:condition=repeat/evenEven item?/span span tal:condition=repeat/oddOdd item?/span span tal:content=blah/varReplaced by

Re: A question for the newbies

2006-02-16 Thread Daniel McBrearty
A quick word in amongst the other stuff - couldn't agree more about the horriblenes of PHP's treating hashes and arrays as one thing. It was a pretty instant put off for me when I looked at that language a year or two back. One question about the various template systems and mod_perl : is there

Re: A question for the newbies

2006-02-16 Thread Perrin Harkins
On Thu, 2006-02-16 at 22:14 +0100, Daniel McBrearty wrote: One question about the various template systems and mod_perl : is there not a performance hit in using these? As opposed to not using anything? Yes. They are much faster than what people usually write on their own though. If there

Re: A question for the newbies

2006-02-16 Thread Daniel McBrearty
Thanks Perrin. Great article. I remember reading it a while back, and was a bit overwhelmed with info at the time, but good to come back to it. It starts to fall into place more now.Can you give any recs on choosing a templating system if memory use is also a factor? My site currently runs on a VM

Re: A question for the newbies

2006-02-16 Thread Perrin Harkins
On Thu, 2006-02-16 at 23:13 +0100, Daniel McBrearty wrote: Can you give any recs on choosing a templating system if memory use is also a factor? The one you have (CGI::FastTemplate) or Apache::SSI are pretty good in low-memory situations. Others like TT and HTML::Template can be set to not

Re: A question for the newbies

2006-02-16 Thread Jonathan Vanasco
On Feb 16, 2006, at 4:20 PM, Perrin Harkins wrote: On Thu, 2006-02-16 at 22:14 +0100, Daniel McBrearty wrote: One question about the various template systems and mod_perl : is there not a performance hit in using these? and whatever the performance hit is - remember that 90% of your

Re: A question for the newbies

2006-02-16 Thread Malcolm J Harwood
On Thursday 16 February 2006 05:23 pm, Jonathan Vanasco wrote: On Feb 16, 2006, at 4:20 PM, Perrin Harkins wrote: Probably slower. TT and Mason don't need to do any regexes because they have compiled the template to a perl sub. They don't have to parse the template at all after the

Re: A question for the newbies

2006-02-16 Thread Daniel McBrearty
On 2/16/06, Jonathan Vanasco [EMAIL PROTECTED] wrote: On Feb 16, 2006, at 4:20 PM, Perrin Harkins wrote: On Thu, 2006-02-16 at 22:14 +0100, Daniel McBrearty wrote: One question about the various template systems and mod_perl : is there not a performance hit in using these? and whatever the

Re: A question for the newbies

2006-02-16 Thread Foo Ji-Haw
: Arne Skjaerholt [EMAIL PROTECTED] To: modperl@perl.apache.org Sent: Thursday, February 16, 2006 11:11 PM Subject: Re: A question for the newbies I'm not exactly a newbie anymore, but I came to mod_perl by way of Perl scripts for the shell. I'd already written some PHP, but when I learned Perl I

Re: A question for the newbies

2006-02-16 Thread Chandrakumar Muthaiah
basket... - Original Message - From: Arne Skjaerholt [EMAIL PROTECTED] To: modperl@perl.apache.org Sent: Thursday, February 16, 2006 11:11 PM Subject: Re: A question for the newbies I'm not exactly a newbie anymore, but I came to mod_perl by way of Perl scripts for the shell. I'd

Re: A question for the newbies

2006-02-16 Thread Foo Ji-Haw
do you Reflect with Perl? - Original Message - From: Mark Galbreath To: modperl@perl.apache.org ; [EMAIL PROTECTED] Sent: Thursday, February 16, 2006 10:42 PM Subject: Re: A question for the newbies I've been developing apps for business, ecommerce

Re: A question for the newbies

2006-02-16 Thread Foo Ji-Haw
, February 16, 2006 11:37 PM Subject: Re: A question for the newbies I guess I'm still considered a mod_perl / perl newbie. I started learning perl 6 months ago in anticipation of translating a CMS (Content Management System) I wrote in PHP. I considered Python, and C++ as alternatives. C

Re: A question for the newbies

2006-02-16 Thread Foo Ji-Haw
Just an FYI, Perl 6 will use the dot notation for calling methods. I did an O'Reilly read on Perl 6. The new syntaxes for variable manipulation is a bit rough going for sunk-in Perl5 people like me. But more importantly: when will it ever be ready?!? ( I know there are no answers to this...)

Re: A question for the newbies

2006-02-16 Thread Foo Ji-Haw
I knew that perl could do OO and I couldn't find design patterns to go to the next step. You brought up a good point. I wish someone will write a Design Patterns book based on Perl... I've read up on Ruby (to understand the growing interest around it). It looks Perlish, and it's an interesting

Re: A question for the newbies

2006-02-16 Thread Jonathan Vanasco
On Feb 16, 2006, at 10:18 PM, Foo Ji-Haw wrote: I think the biggest complaint about Perl, is that it is too symbolic (which I thought that its ugly code - caused in part by no standard coding practices, and far too many people pushing 'theres more than one way to do it' On Feb 16,

Re: A question for the newbies

2006-02-16 Thread Foo Ji-Haw
Did you ever try Template Toolkit? I'd say it's probably more popular than HTML::Template, and much less restrictive (although you also have more rope to hang yourself too) and can do everything that you mentioned below. What's the draw of Template Toolkit? I am a heavy user of HTML::Template,

Re: A question for the newbies

2006-02-16 Thread Tyler MacDonald
Foo Ji-Haw [EMAIL PROTECTED] wrote: I knew that perl could do OO and I couldn't find design patterns to go to the next step. You brought up a good point. I wish someone will write a Design Patterns book based on Perl... This helps:

Re: A question for the newbies

2006-02-16 Thread Foo Ji-Haw
. - Original Message - From: Jonathan [EMAIL PROTECTED] To: Michael Greenish [EMAIL PROTECTED] Cc: mod_perl modperl@perl.apache.org Sent: Friday, February 17, 2006 2:16 AM Subject: Re: A question for the newbies On Feb 16, 2006, at 12:48 PM, Michael Greenish wrote: What I like about PHP over

Re: A question for the newbies

2006-02-16 Thread Foo Ji-Haw
On Feb 16, 2006, at 10:18 PM, Foo Ji-Haw wrote: I think the biggest complaint about Perl, is that it is too symbolic (which I thought that its ugly code - caused in part by no standard coding practices, and far too many people pushing 'theres more than one way to do it' I actually favour

Re: A question for the newbies

2006-02-16 Thread Foo Ji-Haw
Subject: Re: A question for the newbies Foo Ji-Haw [EMAIL PROTECTED] wrote: I knew that perl could do OO and I couldn't find design patterns to go to the next step. You brought up a good point. I wish someone will write a Design Patterns book based on Perl... This helps: http