Re: Web Interface and index.pl separated?!?



"Do you think that i must separate the page's interface in a file by itself
and then in another index.pl make calculations and stuff with it:"

It *IS* easier to put everything in one place but this can quickly become
unmaintainable for anything but the smallest project. Many "design patterns"
would suggest that you keep your presentation i.e. your webpage and your
business layer i.e. your calculations seperate. You may want to google for
"model view controller" for some more info on this.


.



Relevant Pages

  • Re: Optimizing the Speed / Design tradeoff in numeric applications
    ... calculations to arrive at three values, named d2, t0 and theta. ... it's obvious in intent and can share common subcalculations. ... Only if you want to calculate any one of d2, t0 and theta in isolation from the other two does it really make sense to have separate functions for each. ...
    (comp.programming)
  • Re: Calculations Across Tables
    ... other calculations to leave them separate. ... For example, right now I have 5 separate queries, one for each table, ... because I'm pretty sure I'm capable of handling those ... Do you have any suggestions for my original question? ...
    (microsoft.public.access.queries)
  • Re: Web Interface and index.pl separated?!?
    ... Do you think that i must separate the page's interface in a file ... One way would be to do the calculations required and then print all the ... HTML with any results inserted as a 'here' document (or several to keep ...
    (comp.lang.perl.misc)
  • Re: How can I create this formula?
    ... Expand B6 so that it all fits. ... The subtraction doesn't seem to quite work properly, ... to separate out months/days/hours/seconds into different calculations ...
    (microsoft.public.excel.programming)
  • Re: how to limit access to source code...
    ... > interface and also additional code for some calculations. ... > to limit access to the source code for the gui itself. ... implementing Calc, compiles it, puts the class file to the classpath. ...
    (comp.lang.java.programmer)