On Tuesday 07 June 2005 18:28, Jason Garber wrote: > Hello, > > I don't know if chiming in at this point has any merit, but here is > what I see. > > We have many, many people in favor of goto and ifsetor. They see > much legit use for those constructs. > > Then, we have others who say that it will result in spaghetti code. > This is a completely invalid point because we have all seen > spaghetti code in PHP already. Spaghetti code comes from an > inexperienced or sloppy developer, not from cool language features.
Absolutely right. I think that most people here that have objections are afraid that they'll have to deal with foreign spaghetti code and I'm sure everyone will agree that with the ease that people think they know PHP after they've written their first <?php phpinfo(); ?> script, it's not possible to prevent such people from writing spaghetti pastas. The same goes to 'goto' - people who know it's drawbacks will use it carefully and those who are unaware of the drawbacks soon will become aware ;-) During the last week I taught PHP to a colleague of mine who had 4 years of Java programming experience and none experience with Apache, MySQL, PHP. Today I got my PHP Certification Test Book and he mentioned that he wants to pass the exam straight after me because he thinks he has advanced into PHP enough. So, the moral in the whole picture is - people find PHP easy and think they know a lot about it (and in most cases they don't know that much). We'll never stop people from writing messy code. But if we can have a new language feature that is well designed it's pointless to argue like this about the chaos it could bring - the chaos comes from the one writing the code but not from the code itself. Have a nice day everyone. > > When considering what language to use in my company, I looked at the > community and open-development that surrounds PHP. These are some > of the reasons that I chose PHP. I am still very happy at that > choice. > > The biggest thing that I see working against PHP is individuals who > say "I don't see myself using xxxx, so you should not be ALLOWED to > use xxxx." > > That being said, we need carefully evaluate the plusses and minuses > of adding a feature: > > Is it's use clear? > Does it reduce the speed of PHP? > Does it open bizarre security holes? > Is it useful by a reasonable percentage of developers? > Does it solve a common problem or annoyance present in PHP? > Does it add additional problems or annoyances to PHP? > > All in all, I think if everyone stops being religious about goto, > and logically evaluates it, we can quickly come to a conclusion. > > -- > Best regards, > Jason mailto:[EMAIL PROTECTED] -- Cyberly yours, Petar Nedyalkov Devoted Orbitel Fan :-) PGP ID: 7AE45436 PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436
pgpGvwXTol1P9.pgp
Description: PGP signature