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

Home » Imported messages » comp.lang.php » query: how many use PHP for linux scripts
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: query: how many use PHP for linux scripts [message #185900 is a reply to message #185897] Wed, 14 May 2014 09:09 Go to previous messageGo to previous message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma:
Senior Member
On 14/05/14 09:36, crankypuss wrote:
> Still, since I can use PHP as my own linux scripting language, and use
> it to write fullblown applications, and have a bunch of PHP code that
> works fairly decently, I continue in that direction.
>
> Apparently without much company, as I read the replies here. <g>

If the first language you learnt in Linux was PHP, then you are likely
to actually be more faimliar in that environment.

MOST linux scripts are not shell these days. python and perl are more
common, which means you have to carry the overheadf of all THOSE
libraries as well.

I cam me to UNIX when there was only shell or C. or AWK :-)


Since I was at that time a full time C programmer, I looked askance at
people constructing massive shell scripts that took enormous amounts of
CPU to run and were extremely hard to maintain. I generally found that
beyond the more simple, C was in fact faster to write and easier to
maintain and ran 100-1000 time faster.


PHP is something I use simply because it is a doddle to integrate with
websites. Nevertheless I think its a pretty poor language.

I never use it outside a web context because frankly C is to my mind
better, and neater and more in line with the way the operating system is
itself constructed.

Having got used to dong my own string manipulations, my own memory
management and my own library construction over many years of writing
low level code for non UNIX systems in C, the advantages if knowing
exactly what you are doing completely outweigh the disadvantages of not
having it done for you.


The context and scope of my variables are what I declare them to be, not
randomly what the PHP designer thought would be handy.

MY variables are static or stack based ad dont need memory management,
and if I do use malloc() I know how to free() and when to do it.

If I want the third character out if the string str, its simply str[2];

I don't need to invoke a PHP function to get (a copy of) it.

And if it happens to be a hexadecimal code, I dont need to think about
whether or not its ascii, UTF or an arbitrary bit pattern. It is after
all 'just a byte'

This isn't in the end anything more than saying that what you understand
best is often the best for you.

Accept its a personal thing, and don't try to justify it in objective
terms, when its really subjective.



--
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
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: How to get the POST name of a field in a form that uses a counter
Next Topic: PHP-SOAP/5.4.21 SoapClient terminating POST without waiting for reply, but still complaining "error fetching http headers".
Goto Forum:
  

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

Current Time: Thu Sep 19 12:40:42 GMT 2024

Total time taken to generate the page: 0.05191 seconds