On Sat, Mar 12, 2011 at 12:06 AM, David Hutto <smokefl...@gmail.com> wrote:
> On Sat, Mar 12, 2011 at 2:59 AM, Tommy Pham <tommy...@gmail.com> wrote:
>> On Fri, Mar 11, 2011 at 11:39 PM, David Hutto <smokefl...@gmail.com> wrote:
>>> On Sat, Mar 12, 2011 at 2:34 AM, Tommy Pham <tommy...@gmail.com> wrote:
>>>> On Fri, Mar 11, 2011 at 11:26 PM, David Hutto <smokefl...@gmail.com> wrote:
>>>>> On Sat, Mar 12, 2011 at 2:22 AM, Tommy Pham <tommy...@gmail.com> wrote:
>>>>>> On Fri, Mar 11, 2011 at 10:34 PM, David Hutto <smokefl...@gmail.com> 
>>>>>> wrote:
>>>>>>> Although, right now, if I were going to be using all of those
>>>>>>> languages in unison(and I am), then I'd go with C, and spit them out
>>>>>>> to the browser for lower level control, as well as, to remain familiar
>>>>>>> with some of the main languages being used currently.
>>>>>> But then how portable is your app?
>>>>> I'd have to refer to your reply:
>>>>> "This would depend on the original application design & code."
>>>>> If the original app is meant for specific hardware, and a specific
>>>>> company, then portability is null point.
>>>> If that's the case why even bother with PHP?  Why not just do it in C
>>>> for pure speed?
>>> Speed wasn't the point- Multiple technology usage was the point. And
>>> if you're going to poise a browser for multiple intercepts(in terms of
>>> languages), then C *seems* to be the best was to move toward the
>>> displayment of it's descendants.
>>> If it's going to be a multi-language project, then it needs to be
>>> addressed with a multilanguage source to stem from, and C would seem
>>> like the optimum epicenter for propagation of this.
>>> I thought one of the major points of PHP is 'develop
>>>> anywhere and deploy anywhere'.
>> In the OP's case, where would C fit in when you have HTML, JS, and PHP
>> - PHP would produce the resultant text in addtion to JS & HTML.  What
>> would be the 'specific need' to do work in C where PHP, its many
>> extensions and library (PECL & PEAR), and lots of the other PHP code
>> based libraries/frameworks out there already to do the job?  The way I
>> look at it, if too many languages are involved then most likely the
>> application design is over complicated.
> Because you've been taught that C is over complicated in an
> optimization standpoint. Just to spit out the above in html/php/js/css
> in a C framework is simpler than you think. A little printf. And you
> speak of optimization, but lack the prethought for implementation for
> these optimizations.
> How can you move toward a lower level if you don't start on one. You
> seem stuck on the PHP portion of this, rather than the whole outlook
> of using multiple languages and technologies through a centralized
> means to accomplish a specific end, which can be easily optimized.

I thought the whole objective of higher level language is to provide
an easier application design and coding, in addition to shorter
development & maintenance time.  Why go back to lower level, isn't
that defeating the purpose?

Just a case scenario.  If C is included to 'to spit out the above in
html/php/js/css' and should you happen to be out town/country on
vacation, the other developer(s) doesn't know C and the application
requires some minor bug fix or minor addition.  The problem is now
that modification required is in C.  Do you want your vacation
disturbed?  Except in the case of an emergency, I don't. :)  Not to
mention if where you're vacationing at have a fast internet
connection, or even an internet connection at all.  While this
approach may mean job stability in this situation, I could see it
opposite as it causes more down time for the business as being unable
to adapt quickly to the ever changing needs required by the economy
and/or customers/clients.  In the end, if the business can't stay in
business, you're out of a job.  In one of my recent job experience, I
was in a 3 person IT team.  We have a DBA, developer (also the
manager), and I'm the system/network/telecom admin.  We all have cross
discipline experience and train ourselves in areas we lack for basic
support.  Every one of us don't have a problem taking a month vacation
out of the country when the other 2 to provide 24/7 support for the
facility.  Folks at other sites worries even if they try to take 2
weeks vacation and that's not even leaving country.  How fast and well
do you someone can be cross trained to learn C?  Even if just basic

As for printf, PHP has that and print.  Regarding learning and using
C, I had only 1 quarter of it in college and that was back in the
early '90s.  I don't remember C as an 'over complicated in an
optimization standpoint', IIRC, I just had problems with memory
optimization, but that's another issue.  But I haven't used it since
other than scanning the some source code for compilations W(A/I)MP x64
stack.  About optimization, isn't it more in terms of modular design
then including more languages than is necessary?  If PHP is sluggish,
wouldn't be best to bring it up to the PHP developers?

>> SQL = back end data storage
>> PHP = processing input/output, including back end data
>> HTML/XML = document layout for nice hierarchical format
>> JS/Flash = client side effects and processing to offload some server load
>> Each already designed and made to do the the specific function and are
>> nicely coupled together.  From the above, I've yet to see the need to
>> write C code for the PHP based application - with the exception of
>> threads, and let's not get into it again... lol.
> It's not a 'hard coded' C, it's just a print to the page with C as the
> conveyor for each. You can then utilize C to partition each language
> for refinement in the overall.
> --
> According to theoretical physics, the division of spatial intervals as
> the universe evolves gives rise to the fact that in another timeline,
> your interdimensional counterpart received helpful advice from me...so
> be eternally pleased for them.

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to