in reply to Re: CGI problem: trying to assign parameters in a loop
in thread CGI problem: trying to assign parameters in a loop
In many cases, OO is just a pain in the ass, and a functional interface is better. I really like perl 6's ability to create your own operators.
A quick-and-dirty solution can save both time and money. Besides, there's nothing wrong with embedding just a little. In situations where overloaded servers have to be used, templating can be too slow.
Tilly told me why prototypes are bad. And they sure are. But sometimes, they're good. The (&@) for creating map-like syntax, or the () prototype to let perl inline your sub (great for constants).
There's the quick-and-dirty approach again. Although wrong in many production projects, it can speed up development a lot if you're creating a one-time hack, or a simple sysadmin script.
XML is a hype. XML is a nice format to store data in, but there's a lot of ways to do it. I personally dislike pipeline seperated files, but even those can be quite good.
($foo = $bar) =~ s!.*/!! is easier than using File::BaseName. The code's not portable, but not all code has to be.
Dot star has a function. If you know what it does, and it does what you want, USE IT.
Many things, including templating are overrated. Some developers (including yours truly) forget there are other solutions that can be as good, or maybe even better in particular cases.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: CGI problem: trying to assign parameters in a loop
by gav^ (Curate) on Jan 20, 2002 at 00:04 UTC |