Re: first php 5 class
| From: | Greg Donald | Date: | Wed, 30 Jan 2008 19:33:27 +0000 |
| Subject: | Re: first php 5 class | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268361@lists.php.net to get a copy of this message | ||
On Jan 30, 2008 12:40 PM, Nathan Nobbe <quickshiftin@gmail.com> 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 exaclty? Perhaps he wasn't
writing enough lines of code per day to be stay happy using Rails?
> > Propel still uses XML last I messed with it. Yaml is a lot better for
> > similar tasks. The syntax is a lot smaller which makes it a lot
> > faster than XML.
> well lets see, it only reads the xml when the code is generated, which is not
> that often so any slowness of xml is not valid. and last time i generated code
> in my project it took like under 5 seconds; boy that xml sure was painful =/
Well if all you do is toy projects then XML is fine.
<user id="babooey" on="cpu1">
<firstname>Bob</firstname>
<lastname>Abooey</lastname>
<department>adv</department>
<cell>555-1212</cell>
<address password="xxxx">ahunter@example1.com</address>
<address password="xxxx">babooey@example2.com</address>
</user>
versus the Yaml equivalent:
babooey:
computer: cpu1
firstname: Bob
lastname: Abooey
cell: 555-1212
addresses:
- address: babooey@example1.com
password: xxxx
- address: babooey@example2.com
password: xxxx
> Perfect example of an advance in web technology.
> perfect example of something that doesnt make much difference.
The time saved writing Yaml instead of XML makes a huge difference to
me. Similar savings are to be had when comparing PHP to most anything
except Java.
--
Greg Donald
http://destiney.com/