|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
PHP, one of the most powerful Server side web technology, is spreading in web development circle like a forest fire. You can find trillions of PHP webpages over the internet.
PHP evolves from C language, and provides the same functionality as the C. The great advantage of PHP over other web development technologies is that it is easy to learn, easy to manage and provide rapid development. please feel free to share your thoughts regarding PHP and other web technolgies you like. |
|
||||
|
I believe that the "pure OOP" approach started in PHP 5 will fuel PHP growth as the preferred web programming language.
__________________
Open Web Directory |
|
||||
|
Quote:
PHP is easy to learn but the language itself is not a RAD tool. PHP frameworks like codeigniter, cakePHP, symfony, the zend framework etc all aid in Rapid Application Development. Quote:
The php group decided that the namespace seperator would be the backslash \ due to a collision with the intended seperator :: and static class function/constant scope. A thoroughly ridiculous idea which has the php community up in arms. The other is something that may not yet come to pass but is scheduled is that when using any namespace then php functions/classes/constants must be prefixed with the namespace seperator to signify their global access (ie, $iterator = new \ArrayIterator; throw new \Exception etc.) Ridiculous. I fear the PHP ship is heading for the rocks, whether they can turn it around or not I'm not sure. PHP 5.3 with these features just reached RC1 status and should be available soon. I really hope that for php 6 they totally drop all backward compatibility and redo the language to be fully namespaced and consistent. I would like to see namespaced functions such as String::cat, Array::Iterator etc that all take parameters in a consistant manner. As things stand some functions take parameters in a needle/haystack manner whole others in the same category "think strings" take a haystack/needle set of parameters. 5.3 was supposed to be the version that brought php up to enterprise standard. I have read the php internals and the transcript of the IRC chat that led to the use of \ and am thoroughly disappointed in the direction things are going. I hope that with the current furore across programming forums/blogs that Rasmus Lerdorf steps in and says put namespaces back to 6.0 until they iron out the current problems with the namespace seperator and reserve namespace names such as PHP, String, Array etc for internal use. Pushing this forward in 5.3 is a huge mistake that is sending excellent developers to other languages.
__________________
"I have not failed. I have found 10,000 ways that don't work" - Thomas Edison. "The secret to creativity is knowing how to hide your sources" - Albert Einstein. Last edited by Easywebdev; 03-26-2009 at 06:07 AM. |
|
||||
|
The original poster may mean that PHP use C syntax like { } etc.
Regarding namespace syntax in PHP. Can you not make your own definition to go around the problem? Personally I should like to see a thighter integration between PHP and C++. Embarcadero, the new owner of Delphi and C++Builder may do that since Delphi is very integrated with PHP as far as I can see. My favourite combination in 2009: JavaScript for client side scripting. PHP for server side scripting. C / C++ for compiled code. |
|
||||
|
Quote:
Quote:
__________________
Open Web Directory |
|
||||
|
Quote:
Quote:
__________________
Mini Network:: Financial information at your fingertips Learn object oriented programming where it started Last edited by kgun; 03-26-2009 at 06:58 PM. |
|
|||
|
Yeah i agreed php growth is preffered as web programming language. Thanks for your views on this.
|
|
|||
|
php is one of the languages I like the most.
php got C style with shell and perl language flexibility for example in C, casting variables of different type is troublesome and debugging segmentation fault is pain in the ass on the other hand php casting is seamless and NO segmentation faults while having almost the same C style
__________________
Upload You Photo For Free At ePhoto Bay |
|
||||
|
|
|
|||
|
Yes, PHP is a powerful tool; I know I am going to make some enemies here, but you should also look at ASP.NET 3.5. If you are not a full time professional programmer then you are best to choose between the two. Again, I know that this is a religious issue with some people (Microsoft is the Anti-Christ), but all I am saying is look at both and then decide what you want to do. Microsoft Visual Web Developer is a powerful tool, and it is free (you could I think actually use Microsoft Visual Web Developerwith PHP, but I am not sure about this).
|
|
||||
|
|
|
|||
|
Its just one of several languages, and one that (like most other languages) has some serious flaws. Ive been a php, Java, CSharp/VB developer and I am now looking quite interestedly at Ruby. Ive on Web, Mobile and Desktop apps and I honestly think that only by look around at what others are doing can you really improve.
The number 1 reason I would pick php would be if I were building a content heavy website and needed a CMS. Php has thousands of them out there. I myself very, very rarely build such things anymore (as there is very little challenge in such a thing). But if I would have to if I had stuck solely to php developer, as those are the only real jobs you can get in my area as a php guy. |
|
||||
|
Quote:
In my opinion, there IS no language that is the future of web programming, at least that any of us has yet seen. The industry is still so young, in relative terms, that we can expect to see new and better mousetraps, for many years to come. My suggestion is to not get too attached to one, as you could find yourself left behind. From someone that STILL has a fond place in his heart, for machine.
__________________
If I ever stop learning, let the wolves have my carcass. ![]() http://doccampbell.wordpress.com/ http://cleanstreamwaterconditioning.com http://carforums-online.com |
|
||||
|
Quote:
__________________
The best way to learn anything, is to question everything. |
|
||||
|
Here
A walk in the garden part 1. PHP 6 on the radar. are two thread that give you an idea of what PHP id today and what it will be tomorrow. As far as I know name spaces will be introduced in PHP 6. A very important element IMO. In addition I think the problem with object return value will be solved in php 6. Example: http://stackoverflow.com/questions/9...t-return-value
__________________
Mini Network:: Financial information at your fingertips Learn object oriented programming where it started Last edited by kgun; 08-14-2009 at 08:48 AM. |
|
||||
|
Well, I think the stackoverflow post goes more toward overloading, which as far as I can tell is not planned to ever become a feature of PHP. It would be nice to be able to override operators, but I don't think they are designed as functions the way they are in languages like Java.
__________________
The best way to learn anything, is to question everything. |
|
||||
|
Quote:
Quote:
That said, I know that your favorite language is Java. I have looked at it and like C# it seems like simplified C++. Polymorhism, like overloading may be implemented different in different languages. Did you Google php overloading or more generally php polymorphism |
|
||||
|
The issue when it comes to operator overloading as I understand it, is that in certain languages that have been designed around object-oriented programming, operators aren't actually operators. For instance, $a + $b does not literally translate to "add the value of a to the value of b" when the program compiles. Instead, "+" is actually a shortcut to a method of object integer, pointing to the __addition function. Because of this, you have a literal base function that you can inherit and then override.
PHP and languages that were not built for object oriented programming actually use the operators as-is, treating the variables as primitives. From what I can tell, it would take a complete rewrite of PHP from the ground up, turning the variables from primitives into objects, in order for operator overloading to work. Since PHP was built with the idea of typeless variables, such a rewrite might break all prior code, since variables would now need to be declared with a type. If such a change were made, it would probably be akin to the shift from C to C++.
__________________
The best way to learn anything, is to question everything. Last edited by wige; 08-14-2009 at 02:50 PM. |
|
||||
|
Quote:
Example: You can overload the + operator to add complex numbers and strings, in theory any data type that you want to add together. Quote:
The first version of C++ was informally called C with headers. Now it is much more advanced and has copied or extended much of Simula's OO features. I don't know enough about the PHP kernel and extensions to conclude how true polymorhism like multiple inheritance will be implemented. PHP interfaces that are in a sense pure abstract classes open for multiple inheritance. Did you look at the search queries? Now you have another php overriding |
|
||||
|
Quote:
int $a, $b; is the equivalent of saying var $a = new Integer(); var $b = new Integer(); As an object of class Integer, $a inherits a method called "add", for which "+" is an alias. As a result, $c = $a + $b; is the equivalent of $c = $a.add($b); When you overload an operator, all you do is overload the method associated with that operator. And then I pause my typing to ponder on why I never used this functionality, and I remember, oh yeah, Java doesn't support operator overloading! I'm thinking of C++. Quote:
Quote:
__________________
The best way to learn anything, is to question everything. |
|
||||
|
Quote:
Quote:
Quote:
__________________
Mini Network:: Financial information at your fingertips Learn object oriented programming where it started Last edited by kgun; 08-15-2009 at 07:33 AM. |
|
|||
|
To add to the sideline about operator overloads I really don't see the big advantage. I recently used them in a C# project I am working on but I could have easily added .Add(), .Subtract() overrides to the objects.
With regards to php, as the primitives aren't objects you can still achieve the same functionality with static method calls aka: $result = OperatorOverloads::Add($myObj, 2); N.b. Sorry if syntax is wrong its been a while since i've touched php Of course it gets a bit crazy when you have many operators i.e. (($a + b)/$c * $a) + 100; I can see that this would be painful to write. Last edited by Chiefos; 08-27-2009 at 09:48 AM. |
|
||||
|
If you saw down a tree you use a Chain-Saw if you are sawing a plank of wood you use a hand saw.
use the best tool for the job.... PERL, PHP. ASP, AJAX, Java/JavaScript... and if it is a language HTML. |
|
||||
|
Quote:
A = An object of type T. B = An other object of type T. Overloading the + operator, you can write. C = A + B (The compiler figures out the underlying type and uses the appropriate + operator). Overriding is in my view related to inheritance where you override a method (or property) in a child class if the method (property) is public or proteced.
__________________
Mini Network:: Financial information at your fingertips Learn object oriented programming where it started Last edited by kgun; 08-28-2009 at 05:45 PM. |
|
|||
|
I agree with that. But as a programming language, php rocks.. It's free and has big support.
__________________
free ebooks |
|
||||
|
And it can be combined with PHP Application Development Software | Delphi for PHP and C++ with Python.
|
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Powerful Hello to ALL | edollar | Introductions | 1 | 08-21-2006 11:11 AM |
| Powerful SEO Copywriting | Garrett | Insider Reports | 1 | 02-27-2004 05:04 AM |
| Powerful search | redstarfcs | Database Discussion Forum | 0 | 02-26-2004 04:45 PM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |