Re: Delphi or PHP ?
- From: "Serge Dosyukov \(Dragon Soft\)" <pooh996.gmail.com>
- Date: Mon, 7 Apr 2008 10:01:49 -0400
Use a sound type system (i.e. a type system that actually exists) instead
of coding in a blind fold with spaghetti?
Oh. ;) We are going to science. Ops. IT is not science, as some people
think, or is it?
Desktop apps and web apps - sharing code between them - important.
Defining problem domain is important part in finding a solution.
How about... If there is a situation when both Web and Win clients are
required then may be a good idea to share not the source code, but
execution:
* create shared assemblies (ASP.Net)
* create shared ActiveX, COM
* use N-tier model by removing any requirements for shared code from the
client and puting it on the server (web-services)
Example: fast html parser is used in web apps, and desktop apps.. so
someone rewrote the fast html parser in PHP! Why? Just put it in your uses
clause and use it in both desktop and web apps.
Good point.
Except, program sanely, with a sound type system.. and a real clear
language that doesn't produce spaghetti. After auditing the wikimedia and
Smarty source code, I'm not so impressed with the philosophy behind php
code. It's a bunch of regex spaghetti and people don't know fundamentals
about programming any more (like algorithms and data structures).
It is not a fault of the language, but rather people who are using it. PHP
allows you to have classes as it is in Delphi.
There is many libraries which utilize that. Same time many are still doing
coding in "simple" way. It is especially visible in Open Source domain since
there is a lot of "old" code around and "class-based" model is something new
for many.
There is plenty of ready to go platforms (Blog, Gallery, Forums, CRM,
portals, Graph processing libraries, caching, etc.) which with little
customization on presentation part would provide you with all required
functionality.
Have you audited their source code?
Yes, I have a chance to do so. I am using PHP for my web-site.
I am using WordPress for my blog, Gallery 2 for photo gallery and phpBB for
forums.
Yes, there could be situation when readability is awfull, but doesn't any
code suffers from the same problem from time to time.
Again, it is not a language which causing the problem, but use of it. One
can create "spagetti" from any code, it is actually very easy to do,
especially when 100ds people working on the code. It takes dedication, heavy
management and a lot of time to make it preaty. I still remember working
with RxLib library at the time. It was a spagetti. Not that it was bad. It
was just huge...
Html css and templates can be used with powtils too, why use PHP?
Because PHP is weak/loose and has no sound type system?
Why you are so centristic about STS? I am not arguing the language, any of
which has it advantages and disadvantages. One need to look into history of
language to get understanding of "what, why and where". I do not care much
for "looseness", if it does what is suppose to do. I am comfortable in both
Delphi and PHP (C#, VB, C++, JS, etc). Yes something is easier in one place
and harder in another, but when it comes to the choice, it comes to the
problem domain one is workin in.
Or just because, you are used to it..?
yes, I am. You are not complaining about JS, are you?
.
- References:
- Delphi or PHP ?
- From: Christian Kaufmann
- Re: Delphi or PHP ?
- From: Serge Dosyukov \(Dragon Soft\)
- Re: Delphi or PHP ?
- From: L
- Delphi or PHP ?
- Prev by Date: Re: New magazine for Pascal
- Next by Date: Re: From Delphi 7 to Delphi 2007
- Previous by thread: Re: Delphi or PHP ?
- Next by thread: Re: Delphi or PHP ?
- Index(es):
Relevant Pages
|