Re: [PHP] first php 5 class

2008-01-31 Thread Zoltán Németh
2008. 01. 30, szerda keltezéssel 13.01-kor Greg Donald ezt írta: On Jan 30, 2008 12:15 PM, Zoltán Németh [EMAIL PROTECTED] wrote: It's opinionated software and is certainly not for everyone. ok it's not for everyone, certainly not for me. but what is it from your point of view that makes

Re: [PHP] first php 5 class

2008-01-31 Thread Zoltán Németh
2008. 01. 30, szerda keltezéssel 13.33-kor Greg Donald ezt írta: On Jan 30, 2008 12:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: just pointing out that the rails guys dont have much wiggle room. surely, youre familiar w/ this post:

Re: [PHP] first php 5 class

2008-01-31 Thread Zoltán Németh
2008. 01. 31, csütörtök keltezéssel 09.41-kor Nathan Nobbe ezt írta: On Jan 31, 2008 3:24 AM, Zoltán Németh [EMAIL PROTECTED] wrote: I never write the xml for propel. we use DBDesigner (although it is not a well-written software, and there are problems with running

Re: [PHP] first php 5 class

2008-01-31 Thread Nathan Nobbe
im curious, greg, what the ruby guys do for code documentation. for php there is phpDocumentor or doxygen. i like them both. propel has support for the former so when i generate the code from a schema.xml file, the next thing i do is generate the phpDocumentor-based docs for my project which is

Re: [PHP] first php 5 class

2008-01-31 Thread Nathan Nobbe
On Jan 31, 2008 3:24 AM, Zoltán Németh [EMAIL PROTECTED] wrote: I never write the xml for propel. we use DBDesigner (although it is not a well-written software, and there are problems with running it on linux) and convert its xml files automatically to propel format. what's more we have our

Re: [PHP] first php 5 class

2008-01-31 Thread Nathan Nobbe
On Jan 31, 2008 9:47 AM, Zoltán Németh [EMAIL PROTECTED] wrote: you mean you have a schema in a db with a bunch of tables? there is a symfony task for that. symfony propel-build-schema or if you use propel alone:

Re: [PHP] first php 5 class

2008-01-31 Thread Richard Lynch
On Wed, January 30, 2008 9:42 pm, Nathan Nobbe wrote: On Jan 30, 2008 7:58 PM, Richard Lynch [EMAIL PROTECTED] wrote: I don't use SPL because it makes my head spin to read it, and I never ever try to do something as silly as iterate over a *LARGE* array in end-user pages. are there pages

Re: [PHP] first php 5 class

2008-01-31 Thread Greg Donald
On Jan 30, 2008 7:21 PM, Jochem Maas [EMAIL PROTECTED] wrote: Greg's my hero of the day - even if he has been banging the Ruby drum on the PHP Stage half the night ;-) PHP is a great language. I don't plan to stop using it anytime soon. -- Greg Donald http://destiney.com/ -- PHP General

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 29, 2008 3:29 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 29, 2008 3:19 PM, nihilism machine [EMAIL PROTECTED] wrote: Ok, trying to write my first php5 class. This is my first project using all OOP PHP5.2.5. I want to create a config class, which is extended by a connection

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 8:40 AM, Eric Butera [EMAIL PROTECTED] wrote: On Jan 29, 2008 3:29 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: Still pimping singleton, huh? :) hell yeah :) i looked at the registry classes you pointed out. you know what funny about the one in solar? they refer to the same

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 9:57 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 30, 2008 8:40 AM, Eric Butera [EMAIL PROTECTED] wrote: On Jan 29, 2008 3:29 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: Still pimping singleton, huh? :) hell yeah :) i looked at the registry classes you pointed

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:35 AM, Eric Butera [EMAIL PROTECTED] wrote: The only gripe I have about the registry pattern is the lack of code completion in PDT. ;) heh. does that still blowup when you try to open a file w/ an interface definition? I love php patterns, but it seems to sort of be

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 10:13 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: I love php patterns, but it seems to sort of be dead for years now. me too; ya, it is sort of dead, sad, but its still worth a look to people getting there feet wet w/ patterns, and occasionally as a point of reference for

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 11:38 AM, Greg Donald [EMAIL PROTECTED] wrote: If list traffic is any sign, PHP is indeed slowing down from the new peeps wanting to learn it perspective: http://marc.info/?l=php-generalw=2 interesting.. http://marc.info/?l=php-generalw=2I would assume it's because there

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 11:43 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 30, 2008 11:38 AM, Greg Donald [EMAIL PROTECTED] wrote: If list traffic is any sign, PHP is indeed slowing down from the new peeps wanting to learn it perspective: http://marc.info/?l=php-generalw=2 interesting..

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 11:13 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: i dont think Registry::getInstance() is really that much overhead; In my initial tests I found that static methods accessing $GLOBALS directly was much faster than using an instance and working on it tucked away in a static

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 10:43 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: I would assume it's because there are much more interesting advances in web development technology to focus on elsewhere. such as ? Ruby 1.9, Ruby on Rails 2, Perl6/Parrot. Parrot is particularly interesting, especially if

Re: [PHP] first php 5 class

2008-01-30 Thread Zoltán Németh
2008. 01. 30, szerda keltezéssel 11.45-kor Greg Donald ezt írta: On Jan 30, 2008 10:43 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: I would assume it's because there are much more interesting advances in web development technology to focus on elsewhere. such as ? Ruby 1.9, Ruby on Rails

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 12:45 PM, Greg Donald [EMAIL PROTECTED] wrote: On Jan 30, 2008 10:43 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: I would assume it's because there are much more interesting advances in web development technology to focus on elsewhere. such as ? Ruby 1.9, Ruby on Rails

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 11:52 AM, Zoltán Németh [EMAIL PROTECTED] wrote: oh the Ruby and Rails stuff here it comes again... I really don't see why is it a 'more interesting advance in web development technology'... and what's more important for me, I really don't like it ;) It's opinionated software

Re: [PHP] first php 5 class

2008-01-30 Thread Zoltán Németh
2008. 01. 30, szerda keltezéssel 12.03-kor Greg Donald ezt írta: On Jan 30, 2008 11:52 AM, Zoltán Németh [EMAIL PROTECTED] wrote: oh the Ruby and Rails stuff here it comes again... I really don't see why is it a 'more interesting advance in web development technology'... and what's more

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 11:56 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: i love how the ruby crew has 1 framework, whereas php has scads. Ruby has 7 frameworks that I know of: Nitro, IOWA, Ramaze, Cerise, Ruby on Rails, Merb and Camping. http://www.nitroproject.org/ http://enigo.com/projects/iowa/

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 12:15 PM, Zoltán Németh [EMAIL PROTECTED] wrote: It's opinionated software and is certainly not for everyone. ok it's not for everyone, certainly not for me. but what is it from your point of view that makes it a 'more interesting advance'? 1) Test driven development is

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 1:29 PM, Greg Donald [EMAIL PROTECTED] wrote: Ruby has 7 frameworks that I know of: Nitro, IOWA, Ramaze, Cerise, Ruby on Rails, Merb and Camping. http://www.nitroproject.org/ http://enigo.com/projects/iowa/ http://ramaze.net/ http://cerise.rubyforge.org/

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 12:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: just pointing out that the rails guys dont have much wiggle room. surely, youre familiar w/ this post: http://www.oreillynet.com/ruby/blog/2007/09/7_reasons_i_switched_back_to_p_1.html One article from one developer means what

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 2:38 PM, Greg Donald [EMAIL PROTECTED] wrote: If you like Java then stick with PHP as that's where the syntax is clearly headed: http://www.php.net/~helly/php/ext/spl/ ive been studying spl a lot recently. actually, last night i was benching it against foreach over standard

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 1:36 PM, Eric Butera [EMAIL PROTECTED] wrote: Thanks for your post. Competition is a good thing. I agree. PHP is the reason we're not all still working out of a cgi-bin. Have you looked at the PHPUnit code coverage reports? Of course it isn't built in like you say, which

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 2:33 PM, Greg Donald [EMAIL PROTECTED] wrote: On Jan 30, 2008 12:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: just pointing out that the rails guys dont have much wiggle room. surely, youre familiar w/ this post:

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 12:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: java is awesome, it just hasnt worked out for me career wise. If you like Java then stick with PHP as that's where the syntax is clearly headed: http://www.php.net/~helly/php/ext/spl/ -- Greg Donald http://destiney.com/ -- PHP

Re: [PHP] first php 5 class

2008-01-30 Thread Eric Butera
On Jan 30, 2008 2:01 PM, Greg Donald [EMAIL PROTECTED] wrote: On Jan 30, 2008 12:15 PM, Zoltán Németh [EMAIL PROTECTED] wrote: It's opinionated software and is certainly not for everyone. ok it's not for everyone, certainly not for me. but what is it from your point of view that makes it

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 2:55 PM, Greg Donald [EMAIL PROTECTED] wrote: If you only need to test data integrity then it seems good enough. I would argue that being able to test xhr requests is a basic requirement at this stage in web development. how exactly do you test an xhr request? my suspicion is

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 30, 2008 2:38 PM, Greg Donald [EMAIL PROTECTED] wrote: If you like Java then stick with PHP as that's where the syntax is clearly headed: http://www.php.net/~helly/php/ext/spl/ ive been studying spl a lot recently. actually, last

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe [EMAIL PROTECTED] wrote: On Jan 30, 2008 2:55 PM, Greg Donald [EMAIL PROTECTED] wrote: If you only need to test data integrity then it seems good enough. I would argue that being able to test xhr requests is a basic requirement at this stage in web development.

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 3:11 PM, Greg Donald [EMAIL PROTECTED] wrote: I think your perception is correct. But Perl is very powerful too, and not so many people use it for new web development either.. with list serve traffic being my reference. SPL's main drawback for me personally is carpal tunnel

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 3:22 PM, Greg Donald [EMAIL PROTECTED] wrote: An xhr request needs to be tested to see if your javascript fired when expected and equally important what was sent back, and did what was sent back land in the DOM where you expected it to. Rails provides that and much more. ill

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 3:34 PM, Greg Donald [EMAIL PROTECTED] wrote: On 1/30/08, Nathan Nobbe [EMAIL PROTECTED] wrote: what id like to know, since you seem to know so much about the ruby on rails framework, is, what sort of debugging support is there? this is a weak spot in php to be sure. ive

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 4:08 PM, Greg Donald [EMAIL PROTECTED] wrote: On 1/30/08, Nathan Nobbe [EMAIL PROTECTED] wrote: php has an interactive shell; php -a. therein you have access to anything in the language your include path, or the local disc. You obviously have a very different understanding

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe [EMAIL PROTECTED] wrote: what id like to know, since you seem to know so much about the ruby on rails framework, is, what sort of debugging support is there? this is a weak spot in php to be sure. ive tried multiple clients w/ xdebug w/ marginal success at this

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe [EMAIL PROTECTED] wrote: php has an interactive shell; php -a. therein you have access to anything in the language your include path, or the local disc. You obviously have a very different understanding of the word interactive. `php -a` seems pretty broken to me:

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe [EMAIL PROTECTED] wrote: up arrow works just fine. history is gone if it crashes, but if you exit gracefully, eg. with quit, then the history will be there. maybe youre using debian or some other silly os; i run gentoo Gentoo is a damn fun distro I must admit.. but

Re: [PHP] first php 5 class

2008-01-30 Thread Richard Lynch
On Wed, January 30, 2008 10:43 am, Nathan Nobbe wrote: On Jan 30, 2008 11:38 AM, Greg Donald [EMAIL PROTECTED] wrote: If list traffic is any sign, PHP is indeed slowing down from the new peeps wanting to learn it perspective: http://marc.info/?l=php-generalw=2 interesting.. Perhaps

Re: [PHP] first php 5 class

2008-01-30 Thread Richard Lynch
On Wed, January 30, 2008 1:33 pm, Greg Donald wrote: On Jan 30, 2008 12:40 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: just pointing out that the rails guys dont have much wiggle room. surely, youre familiar w/ this post:

Re: [PHP] first php 5 class

2008-01-30 Thread Richard Lynch
On Wed, January 30, 2008 1:44 pm, Nathan Nobbe wrote: when you said earlier that people arent interested in learning php, this is something i immediately thought of. primarily because spl debuted in php 5.0 and practically nobody is using it (which could just be my skewed perception) when it

Re: [PHP] first php 5 class

2008-01-30 Thread Jochem Maas
Greg Donald schreef: On Jan 30, 2008 1:36 PM, Eric Butera [EMAIL PROTECTED] wrote: Thanks for your post. Competition is a good thing. I agree. PHP is the reason we're not all still working out of a cgi-bin. Have you looked at the PHPUnit code coverage reports? Of course it isn't built in

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 8:21 PM, Jochem Maas [EMAIL PROTECTED] wrote: Greg's my hero of the day - even if he has been banging the Ruby drum on the PHP Stage half the night ;-) greg does seem to know a crap-ton about ruby, and gentoo even ;) one thing I would offer as a solution to rolling out code to

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 7:58 PM, Richard Lynch [EMAIL PROTECTED] wrote: I don't use SPL because it makes my head spin to read it, and I never ever try to do something as silly as iterate over a *LARGE* array in end-user pages. are there pages where you iterate over the same 'small' array more than

Re: [PHP] first php 5 class

2008-01-30 Thread Jochem Maas
Nathan Nobbe schreef: On Jan 30, 2008 8:21 PM, Jochem Maas [EMAIL PROTECTED] wrote: Greg's my hero of the day - even if he has been banging the Ruby drum on the PHP Stage half the night ;-) greg does seem to know a crap-ton about ruby, and gentoo even ;) one thing I would offer as a

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 10:58 PM, Jochem Maas [EMAIL PROTECTED] wrote: besides being a nightmare, portage doesn't answer the question of rolling out stuff to multiple machines simultaneously. portage is one of the most elegant software distribution mechanisms ever created. and you dont have to have a

Re: [PHP] first php 5 class

2008-01-30 Thread Nathan Nobbe
On Jan 30, 2008 5:13 PM, Greg Donald [EMAIL PROTECTED] wrote: Gentoo is a damn fun distro I must admit.. but using it for anything besides a development server seems very risky to me. You've got the Gentoo creat0r running off to lick salt with the M$ weiners up in WA right when Gentoo was

Re: [PHP] first php 5 class

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 3:19 PM, nihilism machine [EMAIL PROTECTED] wrote: Ok, trying to write my first php5 class. This is my first project using all OOP PHP5.2.5. I want to create a config class, which is extended by a connection class, which is extended by a database class. Here is my config

Re: [PHP] first php 5 class

2008-01-29 Thread Jochem Maas
nihilism machine schreef: Ok, trying to write my first php5 class. This is my first project using all OOP PHP5.2.5. I want to create a config class, which is extended by a connection class, which is extended by a database class. Here is my config class, how am I looking? dunno can't see