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 #185976 is a reply to message #185973] Fri, 16 May 2014 08:25 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 16/05/14 02:45, Ben Bacarisse wrote:
> The Natural Philosopher <tnp(at)invalid(dot)invalid> writes:
> <snip>
>> When the standard tools and assumptions of the language let you down,
>> C will get you the solution where PHP will not.
>
> Lots of people will get this wrong in both languages, and I am not going
> to challenge the suggesting that more PHP programmers that C programmers
> might get it wrong, but I am not seeing how this example shows that the
> solution is simpler in C.
>

I think the things is probably that C programmers are used to dealing
with more primitive entities than high level programmers are.

PHP is designed to hide the detail by and large.

And 'do the memory management for you'

Which is fine, if phps way of managing memory doesn't crap out.

I had exactly te same sort of issues with mysql. I was trying to
normalise a huge database - 2.5M records as a flat spreadsheet type file
with tons of redundant data in it.

The rather complex SQL query that I end up with still hadnt finished
after 8 hours, so I write a program in C to utilise simpler mysql
queries and then step through them and re interrogate the database
instead of using a nested query structure. And show me what it was doing
as it did it.

The program took 45 minutes to write, and ran in another hour.

The point is that languages that second guess the way you want to do
stuff are never as efficient for a single problem as you can be if you
can decide how yourself.

Most of the time they are mote than good enough: Sometimes they are not.

Its the old 'compiled language versus assembler' argument.

99% of the time is a non issue and you trade the speed of writing code
for the speed of running, but sometime it tips the other way


--
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:38:59 GMT 2024

Total time taken to generate the page: 0.04560 seconds