我认为,我使用的是关贸总协定模板中的过多条件和计算。
我展示了德国统计局的一套成果。 就每个项目而言,我需要利用检索的数值计算物品,模板似乎正确。
但是,在Catalyst,它是一个厚颜色的物体,来自DBIc。
因此,我如何把逻辑转向模式? 我是否应该对所有项目进行整整整整整整整整整整整整整整整整整整整整,并改变目标。
Regards: Migue,
我认为,我使用的是关贸总协定模板中的过多条件和计算。
我展示了德国统计局的一套成果。 就每个项目而言,我需要利用检索的数值计算物品,模板似乎正确。
但是,在Catalyst,它是一个厚颜色的物体,来自DBIc。
因此,我如何把逻辑转向模式? 我是否应该对所有项目进行整整整整整整整整整整整整整整整整整整整整,并改变目标。
Regards: Migue,
首先,你希望适当分开关注,重新走上正轨。 如果你把6至12个月的路上调来,请你感谢。
IMHO, 您的加斯特控制器应当尽可能与各种模式的商业逻辑相分离。 这使测试更加容易,因为你没有花在Catalyst处理的费用。 我现在想到的是,模式分离是我自己。 这里有两所学校:
(1) 给您的联邦调查局做以下工作:各行业有业务逻辑。 这种做法既方便又简单。
(2) 形成一种由主计长负责的单独模式,该模型有一个DBIx:Class schema物体。 该模型将利用非银团的图解查询数据库,然后在自己的业务逻辑方法中使用由此产生的数据。 如果你有多种业务逻辑,那么这种做法可能更好,因为你将非行与商业逻辑分开。
在个人方面,我历来使用第1号办法,但我倾向于第2号,用于大体。
Two possibilities.
在相应的化学类中形成一种方法。
(如果没有可能的话) 绕过模板,把这个物体作为理由。
您
I personally would prefer the second one. I hope that helps.
I am building a Web interface to monitor an embedded system. I have built a Perl script which runs remote commands and gathers output from that system. Now what I need is a Web interface which makes ...
How do I tell what type of value is in a Perl variable? $x might be a scalar, a ref to an array or a ref to a hash (or maybe other things).
When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...
I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...
I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...
I would like to submit a form to a CGI script localy (w3c-markup-validator), but it is too slow using curl and apache, I want to use this CGI script more than 5,000 times in an another script. and ...
So I m running perl 5.10 on a core 2 duo macbook pro compiled with threading support: usethreads=define, useithreads=define. I ve got a simple script to read 4 gzipped files containing aroud 750000 ...
A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...