SitePoint Sponsor |
|
User Tag List
Results 76 to 100 of 120
Thread: Why php?
-
May 18, 2003, 04:24 #76
- Join Date
- Sep 2000
- Location
- Halmstad, Sweden
- Posts
- 7,400
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Dr Livingston
The stereotype would have been complete with an "M$" or two.
Mattias Johansson
Short, Swedish, Web Developer
Buttons and Dog Tags with your custom design:
FatStatement.com
-
May 18, 2003, 08:46 #77
- Join Date
- Jan 2003
- Posts
- 5,748
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Yer, PHP5 most definitely needs a class library I think - summer next year as I see it happening ? - though we are basically all f***ed if they use PEAR as I see it
God damn help us all if this ever happens....
In fact I'd go as far as stating that we should begin a campaign to remove PEAR altogether from PHP in any way, shape or form.
It is way too bloated, has poor linear non-OOP designed implementations and in fact does PHP no real favours - apart from being a use to lazy developers ?
IMO of course
-
May 18, 2003, 08:48 #78
- Join Date
- Sep 2001
- Location
- Singapore
- Posts
- 5,269
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Dr Livingston
-
May 18, 2003, 08:55 #79
- Join Date
- Sep 2002
- Location
- Richmond, VA
- Posts
- 975
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by mbb
Originally Posted by mbb
-
May 18, 2003, 08:58 #80
- Join Date
- Sep 2002
- Location
- Richmond, VA
- Posts
- 975
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by firepages
Originally Posted by firepages
Originally Posted by firepages
Originally Posted by firepages
-
May 18, 2003, 09:02 #81
- Join Date
- Nov 2000
- Location
- Switzerland
- Posts
- 2,479
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Phil.Roberts
With the overload extension (which should be a core part of PHP5) we can even do things like;
PHP Code:class String {
var $string;
function String ($string) {
$this->string=$string;
}
function __call($method,$params,$return) {
switch ( $method ) {
case 'strstr':
$return=$method($this->string,$params[0]);
break;
case 'str_replace:
$return=$method($this->string,$params[0],$params[1]);
break;
default;
// Throw method not found exception
break;
}
return true;
}
}
overload('String');
$string=new String('Hello World');
// Displays 'World'
echo ( $string->strstr('Hello ') );
// Displays 'Goodbye World'
echo ( $string->str_replace('Hello','Goodbye') );
The main thing IMO is that PEAR defines a set of interfaces for things like database access and XML parsing which people should implement.
BTW - if you haven't already, check out the PEAR web installer - it's truly impressive. Good tutorial about setting it up here: http://www.phpkitchen.com/article.ph...21201062516970
-
May 18, 2003, 09:14 #82
- Join Date
- Jan 2003
- Posts
- 5,748
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Not picking an argument here HarryF - for the most part I trust your point of view etc - but I do not think that implementing an already existing API (PEAR in this regard) to PHP5 as it's class library in any way.
You your self have said in the past that PEAR is bloated; and it is. But the idea of using existing functions (ie String Replace) could be something to look at.
But we do not need PEAR thank you
-
May 18, 2003, 09:37 #83
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
I've never seen the words 'cost' and 'not matter' in the same sentence before when referring to a software project. You must be working for one of the only companies that hasn't been effected by the downturn.
Actually, NWC, Business 2.0, etc have charted that IT spending hasn't actually gone down during this "downturn", and will actually rise by between 2-7% this year.
As I was saying in another thread, getting funding for projects is easy, so long as you approach it with proper business sense: cost cutting, strategic decision making and long-term benefits.
I'll be spending 500K more at work than has ever been spent on IT. All of that money is immediate savings. Not 1-year ROI, not 5-year commitments. Immediate savings.
I love how your wisdom extends to who people are, how much they know and what companies they work for.
-
May 18, 2003, 09:38 #84
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
*L* @ web installers being truly impressive... This was one of the "marketing gimmicks" you used to hold against .NET, as you can do web installs of any application you develop automatically.
J
-
May 18, 2003, 10:09 #85
- Join Date
- Jan 2003
- Posts
- 5,748
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Okay - own up; who I wonder has just knocked 2 points off my reputations ?
Buggers.... Yes, I did have a look over at www.go-mono.com and it's all interesting and all that.
But it isn't really, truely grounded from open source is it now ? PHP is a fine scripting language and it really is a fine example of open source and what open source can really be and do.
Wonderful stuff this open source yes ?
Before you could ever use Mono you'd need a compiler and the CLR runtimes if I had read correctly, then on top of all that you'd need those class libraries.
And then finally you'd have to embed the runtime within your own applications.... not unlike PHP for example (open source btw) where you just install along with Apache (for example) and your laughing.
Nope, sorry - I stand by that statement I made earlier.
-
May 18, 2003, 10:10 #86
- Join Date
- Jul 2002
- Location
- Along the Wasatch Fault line.
- Posts
- 1,771
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
There are really only two reasons I use PHP (at this time):
- My only other extensive programming experience is BASIC
- It was introduced in my classes along with ASP, and I dislike ASP purely for political reasons
Like any mechanic, his toolbox is full of useful items, the use of which is purely dependant upon the job he has to perform.
I'm still in the process of filling up my toolbox.John
-
May 18, 2003, 10:21 #87
- Join Date
- Nov 2000
- Location
- Switzerland
- Posts
- 2,479
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Not picking an argument here HarryF - for the most part I trust your point of view etc - but I do not think that implementing an already existing API (PEAR in this regard) to PHP5 as it's class library in any way.
You your self have said in the past that PEAR is bloated; and it is. But the idea of using existing functions (ie String Replace) could be something to look at.
But we do not need PEAR thank you
First as to the bloat, there are two types of "bloat" it seems. First there are "god classes" which implement tons of stuff in a single class and could do with being broken up.
The other type of bloat though is (I think) a good thing; coarsely grained packages which come with alot of functionality and alternative ways to use them. A prime example is PEAR::Cache which provides a very powerful caching mechanism (even capable of caching in shared memory rather than to the disk). Depending on your requirements you'll probably never use alot of it but that doesn't mean PEAR::Cache shouldn't provide it. The design is excellent IMO.
Otherwise what I'm suggesting is PEAR, with help from PHP5's new features can (and will) reform itself.
The medium of doing this is the interface classes IMO - if you look at Java's JAXP for example, they're provided an interface for XML parsers to implment that means programmers like you can I can use JAXP rather than writing code which depends on a specific XML parser (which may have bugs) - JAXP is something like a database abstraction layer.
By setting this standard, Sun now leave it to developers of XML parsers (like Apache's Xerces) to implement the interface. This model would work extremely well with PEAR IMO and more to the point, methinks the PHP group in general are gearing up to do this - take a look at this for example: http://ny1.php.net/talks/show.php/php5intro/32
-
May 18, 2003, 10:51 #88
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Dr Livingston
And why can't Mono be a fine example of what Open Source can do? An entire implementation of the .NET framework sounds like a big job to me (something many people have said is impossible, now they are simply knocking it just because).
As far as what you'd need, I don't think you'd need a separate compiler, CLR or anything from Mono, in fact from the Mono homepage:
Mono includes: a compiler for the C# language, a runtime for the Common Language Infrastructure (also referred as the CLR) and a set of class libraries. The runtime can be embedded into your application.
J
-
May 18, 2003, 12:39 #89
- Join Date
- Jan 2003
- Posts
- 5,748
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
First
The medium of doing this is the interface classes IMO - if you look at Java's JAXP for example, they're provided an interface for XML parsers to implment that means programmers like you can I can use JAXP rather than writing code which depends on a specific XML parser (which may have bugs) - JAXP is something like a database abstraction layer.
By setting this standard, Sun now leave it to developers of XML parsers (like Apache's Xerces) to implement the interface. This model would work extremely well with PEAR IMO and more to the point, methinks the PHP group in general are gearing up to do this
Second
And why can't Mono be a fine example of what Open Source can do?
PHP isn't open source due to linux - PHP IS open source with or without the OS being linux.
Is Windows OS open source ? Didn't think so...
-
May 18, 2003, 13:05 #90Why not vicent's Eclipses instead - which IMO is far better anyway...
Eclipse is very good but it only has a very small number of general purpose tools.
Because it isn't orginating from the open source environment is it ? It is a Microsoft technology and it begins from there; no where else
-
May 18, 2003, 13:37 #91
- Join Date
- Jan 2003
- Posts
- 5,748
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Eclipse - Fair enough, though this approach in vincents design IMO would be better than the design approch of PEAR, no ?
Anyway, that's all academic really since we cannot predict the future.
As to Microsoft and Mono I am not all that anti- Microsoft as to the average person.
Mono it's self may be open source, but does it not use components/frameworks/whatever you may call it from Microsoft ?
That's the point I'm trying to get across really, isn't it ?
-
May 18, 2003, 13:42 #92
- Join Date
- Sep 2000
- Location
- Halmstad, Sweden
- Posts
- 7,400
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Dr Livingston
Mattias Johansson
Short, Swedish, Web Developer
Buttons and Dog Tags with your custom design:
FatStatement.com
-
May 18, 2003, 13:58 #93
- Join Date
- Feb 2001
- Posts
- 302
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by Jeremy W.
-
May 18, 2003, 14:39 #94
- Join Date
- Feb 2002
- Posts
- 625
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Wow!
I really don't believe what i have read on the past 4 pages.
I really can't believe ANY of you seriously tries to compare PHP with JAVA!!!!
And really, i don't think it's worth the time to try to prove which language is better than the other.
To be honest, i think most of this thread is really childish.
Use the tool that suits the project at hand. End of story.
Monkey:
if you have that much experience with J2EE than stick with it. If you have the time, have a look at PHP, give it a try, and make up your own oppinion instead of reyling on what others say (though i am not too sure about your orginal intention; ie. if you were really interested in why php is popular etc...).
I am pretty sure(99%) that there will never be a single ruling language.
Not with all the diversity etc... not to mention that human beings are different, and as such have different likings (one MAJOR example being for example the syntax of VB, i personally HATE it, and i know a lot of others do too, but then there are all those who love it [go figure]..).
I have said this in another thread once (long time ago, can't remember which one), it is very unproffesional to claim that one technology is superiour to another. (from a developer's point of view, not a marketing one :P )
I think the key is to specialize in one or two languages which you like, and that's it. (and i don't really mean PHP if saying specializing, cause really, any C++ or Java Developer wil pick up PHP in a breeze).
Just my 2 cents
-
May 18, 2003, 14:53 #95
- Join Date
- Sep 2002
- Location
- Richmond, VA
- Posts
- 975
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
datune, my main purpose was to see why others got into php like they have. I was hoping to find compelling information so I would have to take an honest peek myself. I haven't found it, so I'll stick with J2EE and keep on going with .NET.
-
May 18, 2003, 14:59 #96
I came from Perl. I think that's enough said about that
SeanHarry Potter
-- You lived inside my world so softly
-- Protected only by the kindness of your nature
-
May 18, 2003, 15:04 #97
- Join Date
- Aug 2000
- Location
- San Diego, CA
- Posts
- 5,460
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Why PHP,
Of course because its the simplest, cheapest way to get dynamic content into a website. Thats it!
You can argue semantics all day long, what it boils down to is ease of use.
Don't let your egos in the way, we all know that most of us in this thread are professionals, so no need to toot our own horns. But basically thats the reason people use it. Its easy and cheap. It doesn't solve all the problems, but for dynamic content, its the ticket. Of course, IMO.
-
May 18, 2003, 15:04 #98
- Join Date
- Feb 2002
- Posts
- 625
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by CompiledMonkey
I would never rely on information from people who'm i not know, or better yet, if they are qualified to judge such an important matter. (no offense here folks, and i'm not saying that there might be people around who are), but really...take a look at PHP itself if you want to know
Also, im wondering why you are interested?
Are you not satisfied with the technologies you claim to know?
Are you bored?
Trying to improve your horizon (dought that, cause otherwise you would have taken a look at PHP first)?
Not that i care personnaly, but i'm having a hard time to believe you SERIOUSLY wanted to evaluate PHP's capabilities.
-
May 18, 2003, 17:47 #99
- Join Date
- Jan 2003
- Location
- San Diego
- Posts
- 49
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Someone's probably said this, but there are sooo many built-in functions. Yeah, you could get COM objects in ASP, but then you have to have a dedicated server or a VERY generous web host....
-
May 18, 2003, 20:14 #100
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
:glances oddly at kyle: ... huh? You do know that .NET contains 15K classes, right? A dedicated server? I think you're talking about old ASP, in which case you'd be best read something like this: http://www.codenotes.com/do/articles...?articleID=534.
Basically, the only thing that's the same is the name, the rest is completely different
As far as freddy's quick "boil it down", those are the exact reasons I chose .NET, to be honest
J
Bookmarks