FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Only Allow exec in CLI
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Only Allow exec in CLI [message #179214 is a reply to message #179212] Tue, 25 September 2012 15:13 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
Tim Streater wrote:
> In article <k3sciu$oup$1(at)news(dot)albasani(dot)net>,
> The Natural Philosopher <tnp(at)invalid(dot)invalid> wrote:
>
>> Tim Streater wrote:
>>> In article <k3s5u9$9hl$1(at)news(dot)albasani(dot)net>,
>>> The Natural Philosopher <tnp(at)invalid(dot)invalid> wrote:
>>>> > Tim Streater wrote:
>>>> > > No checking of result codes required or error handling needed?
>>>> > Yes. If they fail. they fail gracefully. and they leave errors in
>>>> their logfiles.
>>>> Are they independent of each other then, such that they could be
>> run in > parallel? Or are there failure modes for program x that would
>> mean you'd > not want to run x+1 etc ??
>
>> Mutatis mutandis, the code could have been written in PHP or C. I
>> chose C because I am more familar with its way of handling errors. And
>> it has slightly better tools to deal with things like timeouts on
>> sockets and so on.
>>
>> In short the two languages are pretty equivalent : PHP has better
>> screen output tools and HTML specific tools - the ability to spit out
>> raw HTML without 'printf' -ing it is the one reason I use it.
>>
>> But I hate its sloppy typing. Its a hacker's language.
>
> OK. I think I know which website you're updating with this scheme :-)

:-)
> and I'd agree that your approach is the best possible in the circumstance.
>
> But I disagree about PHP's typing. I find the relaxed typing saves me a
> lot of trouble. Same in JavaScript, where the only place I've been
> caught out recently by types is as follows:
>
> i = 3; // i is a nice integer
> elmntPtr.dataset.i = i; // Now save this for later use
>
> ...
>
> i = elmntPtr.dataset.i; // Get my i value back
>
> switch (i) // Doesn't effing work, i is a string
>
> switch (parseInt(i)) // OTOH, this works
>
>
> So the only place I've been fooled is by the fact that the HTML5 dataset
> attribute is always a string, which I discovered by trial & error and
> reading the spec. Very irritating.
>
> Otherwise the loose typing rules make for a relaxing life.
>
You try writing a parser for a data packet which has headers many of
whose content TYPES depend on what the header was, in a loosely typed
language.

Javascript is even worse as I found one instance that simply isn't
catered for by any spec, and IE and Firefox did the opposite things with it.


That cost me more time than any loose typing might have saved..


--
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to
lead are elected by the least capable of producing, and where the
members of society least likely to sustain themselves or succeed, are
rewarded with goods and services paid for by the confiscated wealth of a
diminishing number of producers.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Advice for Literature on PHP-Based Web Development Business Models
Next Topic: Count how many times a value occurs in an array
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Sep 19 16:56:01 GMT 2024

Total time taken to generate the page: 0.04620 seconds