[kwlug-disc] Security arguments

Khalid Baheyeldin kb at 2bits.com
Sun Sep 27 22:16:56 EDT 2009


> I agree with Chris, for professional development, scripting has its
>> place in the admin room, but not in the front facing applications.
>> You can do it, some may even do it successfully but a solid
>> compiled language will save you many headaches.
>>
>
> Lint is essentially an over-anxious c pre-processor. Is there not an
> equivalent for these scripted languages? Let alone do not many 'compile'
> down to pseudo-code (intermediary language) wherein the compiler checks
> these thread author's rave about are done?
>

PHP has a syntax check mode, called "lint mode", which can be invoked
from the command line.

Vim can be made to map the :make command to invoke this mode on the
current file:

:!php -l example.module  2>&1| tee /tmp/v115393/1
No syntax errors detected in example.module

But the catch is that most scripting languages (including PHP) do not
do typing (e.g. PHP is dynamically typed). So, lint gets you only so far.
--
Khalid M. Baheyeldin
2bits.com, Inc.
http://2bits.com
Drupal optimization, development, customization and consulting.
Simplicity is prerequisite for reliability. --  Edsger W.Dijkstra
Simplicity is the ultimate sophistication. --   Leonardo da Vinci
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://astoria.ccjclearline.com/pipermail/kwlug-disc_kwlug.org/attachments/20090927/b3793ca0/attachment.html>


More information about the kwlug-disc_kwlug.org mailing list