<p>Now you see why php and mysql are a perfect match. User side type checking makes for faster development and online data access times.</p>
<p>:-)</p>
<div class="gmail_quote">On May 6, 2012 9:08 PM, "<a href="mailto:mike@trausch.us">mike@trausch.us</a>" <<a href="mailto:mike@trausch.us">mike@trausch.us</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 05/06/2012 04:18 PM, Michael H. Warfield wrote:<br>
> You assume that there is a way to discriminate this and you assume that<br>
> the state in the past and it's history is reflective of its current<br>
> state. Neither can be unambiguously substantiated or supported.<br>
<br>
I understand what you're saying here.<br>
<br>
I do assume (and it seems to even be happening) that eventually, things<br>
will become more stable and secure, with the exception of the issues<br>
which stem from its design (and are indeed application issues, albeit<br>
excessively common ones). And I'm not opposed to using it for something<br>
that is very small and simple. For example, a program á la Freecheck<br>
would make sense in PHP, because that is a simple application that can<br>
very easily make use of PHP's design. A single script can handle the<br>
processing of POST'd input and render a check to print.<br>
<br>
But for very complex things I think it is a mistake to use PHP, for a<br>
multitude of reasons. I could go on for ages on the topic, too.<br>
<br>
As time goes by, I find myself tending toward languages that aren't<br>
loose with their typing. Python is nice because "3" + 2 is an invalid<br>
operation, but in PHP, it is not:<br>
<br>
mbt@aloe ~ $ python<br>
Python 2.7.2 (default, Apr 21 2012, 01:50:43)<br>
[GCC 4.6.2] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
>>> "3" + 2<br>
Traceback (most recent call last):<br>
File "<stdin>", line 1, in <module><br>
TypeError: cannot concatenate 'str' and 'int' objects<br>
>>><br>
mbt@aloe ~ $ php<br>
<?php echo "3" + 2; ?><br>
<br>
5<br>
<br>
This can lead to all sorts of problems. I _hate_ this type of<br>
"helpfulness", if it can even be called that. Yes, you can write<br>
type-safety code yourself, but that is a serious pain in the ass when<br>
you could get it by default in other languages, and it does save time<br>
and effort. One thing I dislike about Python is its lack of static<br>
typing (though I find it very usable despite this, since it has strong<br>
typing).<br>
<br>
It is one reason, though, that I like languages like Go and C (and Vala,<br>
which is essentially built on top of C and simplifies the use of the<br>
GObject model). Strong typing is a valuable asset to me, because I<br>
don't have to have as much of the details of a program's design in my<br>
mind when I am working in such languages; the compiler will tell me if I<br>
screwed up with typing unless I disable type-checking for a particular<br>
expression, but that reduces my burden to just a small fraction of what<br>
it is in an environment like PHP's.<br>
<br>
--- Mike<br>
<br>
--<br>
A man who reasons deliberately, manages it better after studying Logic<br>
than he could before, if he is sincere about it and has common sense.<br>
--- Carveth Read, “Logic”<br>
<br>
<br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div>