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 #185981 is a reply to message #185976] Fri, 16 May 2014 13:14 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  Jerry Stuckle
Messages: 2598
Registered: September 2010
Karma:
Senior Member
On 5/16/2014 4:25 AM, The Natural Philosopher wrote:
> 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.
>

And if you were competent in SQL, you could have written a simple SQL
statement to do the work in 5 minutes and it would have been done in 15
minutes.

> 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.
>

Or you are as incompetent in SQL as you are in other languages.

> 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
>
>


--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex(at)attglobal(dot)net
==================
[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: Sat Nov 30 12:08:45 GMT 2024

Total time taken to generate the page: 0.04302 seconds