|XP is just a number|
Re: The ONE way of the Web Pageby Masem (Monsignor)
|on Nov 01, 2001 at 02:15 UTC||Need Help??|
What is the ONE BEST way to query a database table and display it as a web page?And I respond:
There is no best way for any of these.For every situation, there is a better way than most to accomplish a task. However, what works best in situation A may not work best in situation B.
Differences in hardware (CPU model) is a start , as some software isn't available for all builds as of yet. Then you need to think about the OS and/or distribution vendor, as some tools work better on some CPUs than others. Then you need to worry about versions of those installed tools. What may be a great solution in a 1.0 version may be the worst solution in a 1.1 version due to changes in the tool backends.
Then you have differences in policy that might be set at the upper levels. Maybe you need to develop a solution that works with all other developers, thus limiting tools that might be guru's dreams that are also newbie's nightmares. Maybe you have to use very specific tools that are set by company security or policy, such as a specific version of perl or modules as have been cleared by an IT auditing team. And of course there is the structure of the team that is designing the program; does code separation from display have to be done to allow the graphic artists a stab?
And then there's personal preference. If monk A used tool Y for years, and monk B used tool Z (that does the same thing as Y) for years, there's no way that A and B will concur on the best tool.
In other words, we cannot even begin to recommend the BEST way to do something. We can say which solutions are *stupid* (such as reinventing CGI.pm), and we can offer *numerous* possible solutions, but it's up to the asker to evaluate those solutions and decide which is the best way in the asker's environment to proceed.
Computer programming is another form of engineering. There is no right or wrong answers. A good engineer knows how to think about all the possible solutions and evalute the one that works best.