Re: Conclusion of "use strict"...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You got it all wrong. As explained, php dont have real compile time like
other languages. And if you want to learn a language, you have to start the
way it acts. the E_STRICT setting will tell you most of the errors possible
from a php script.
At production level programmers keep the errors away from visitors eyes by
redirecting them all to log files.
If you use PDT like NetBeans (which is regarded as the best one yet...
there's one version of  Visual PHP for Visual Studio developers as well)
As you have got to check the errors for typos its the best way to get aid of
the PDT IDEs. Thats my personal opinion.

Lenin

www.twitter.com/nine_L
www.lenin9l.wordpress.com

-----------------------------------------------------------------------
Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
a Free CD of Ubuntu mailed to your door without any cost. Visit :
www.ubuntu.com
----------------------------------------------------------------------


On Wed, Mar 4, 2009 at 4:03 PM, Hans Schultz <h.schultz78@xxxxxxxxx> wrote:

> Concluding,  and one idea...I think I received satisfying advices on
> everything but first question (Detection of typos and other simple
> mistakes). And we were talking also about being able to catch them at
> compile time, then if php at all has compile time etc. Today one thing
> crossed my mind -- if there is compiler for php maybe it can catch these
> errors natively, like java compiler for java? Unfortunatelly there is no
> recent version available for windows so I can't test it myself (
> http://www.roadsend.com/home/index.php?pageID=compiler). I am interesting
> if someone is using it, and if it can detect this simple mistakes (I am
> using eclipse + php plugin, but I feel there is something wrong in depending
> on editor to detect programming errors :-) )
> Regards to all,
> --- On Thu, 2/26/09, Ovidiu Rosoiu <ovidiu.rosoiu@xxxxxxxxx> wrote:
> From: Ovidiu Rosoiu <ovidiu.rosoiu@xxxxxxxxx>
> Subject: Re:  "use strict" or similar in PHP?
> To: "Hans Schultz" <h.schultz78@xxxxxxxxx>
> Cc: php-general@xxxxxxxxxxxxx
> Date: Thursday, February 26, 2009, 9:14 PM
>
> Hans Schultz wrote:
> > Hello,
> > I am beginner with PHP and prior to PHP I have worked with java for some
> time
> > and with perl for very short period. I can't help to notice some
> things that
> > are little annoyance for me with PHP, but I am sure someone more
> experienced
> > can help me :-)
> > Is there in PHP something like "use strict" from perl? I find it
> pretty
> > annoying to need to run script over and over again just to find out that
> I
> > made typo in variable name.
> > Is there some way for PHP to cache some data on the page? I like very
> much
> > PHP's speed but it would be even better to be able to cache some
> frequently
> > used data from database?
> > Also regarding databases, I liked a lot java's way of sending data to
> database
> > using parameters ("select * from user where username = ?" and
> then passing
> > parameter separately with database doing necessary escaping and
> everything).
> > Is there something like PHPDBC similar to JDBC?
>
>
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux