Re: Pascal Server Page



"bee" <NOSPAMbee.ography@xxxxxxxxx> wrote in message
news:45c958e4$1@xxxxxxxxxxxxxxxxxxxxxxxxx
It's okay to be not interested. But judging before you know what you judge
on is non-sense.

Well, I've been programmig in pascal since the DOS days, and programming in
PHP for about 7 years now. So I think I'm quite qualified to judge the two
different languages, thank you very much.

I also disagree to add variable as string in pascal since it's a bad
practice and make code
not clear and hard to maintain. String is string, variable is variable,
don't mix them.

That sounds like dogma, and I dont do dogma.

if anything, variable interpolation can make code much easier to read. For
ex:

$h = "<tr><td>{$id}</td><td>{$unit}</td><td>{$tot}</td></tr>";

is a easier to read than

h := '<tr><td>' + IntToStr(id) + '</td><td>' + IntToStr(unit) + '</td><td>'
+ IntToStr(tot) + '</td></tr>';

and of course, you dont have to use it in php if you dont want to.

Between this and the string concatination operator in PHP, ".=", I find php
better suited for the heavy duty string work done in web apps.

and are running php as an apache module. For most of my apps,
the bottle neck is data transfer (and occasionally db
queries), not script execution.
Again, have you done some benchmark? At least read other benchmark that
compares performance of

Benchmarks arent necessary - per my post the bottlenecks arent in execution,
but in data transfer and db work. And with a php accellerator installed,
you remove the compilation step for each page load, and get even snappier
php execution.


.



Relevant Pages

  • Re: Object of class Person could not be converted to string
    ... PHP has been lousy at maintaining backward compatibility. ... Objects are always converted to the string "Object". ... there's no reasonable gain in usability by forcing it ...
    (comp.lang.php)
  • Re: Object of class Person could not be converted to string
    ... PHP has been lousy at maintaining backward compatibility. ... They wouldn't have if the language had been better planned from the start. ... Objects are always converted to the string "Object". ...
    (comp.lang.php)
  • Re: [PHP] Manual contradiction concerning string access?
    ... But as of PHP 4, ... to be able to access a string as an array. ... Still others thought it was icky and one should only use substr to ... There is still a camp that wants to die, and only have substr. ...
    (php.general)
  • Re: Object of class Person could not be converted to string
    ... Objects are always converted to the string "Object". ... But it's not unusual for doc to lag the actual code changes, - in PHP or any other product. ... typed language any more. ...
    (comp.lang.php)
  • Re: PHP global namespace clogged up
    ... so people can make XML based PHP templates). ... Then I reckon the rest of the names should use the camel hump convention ... > -string strchr(string haystack, string needle) ... > this function can take a full string as the needle parameter and the ...
    (comp.lang.php)