Re:Ask HN: What source code is worth studying?
by kyenneti on Tuesday October 13, 2009 @11:33AM
(#879283)
Any recommendations for php? I wrote a php/mysql web application for SaaS customers. I am looking at ways to improve performance/cache/error handling or simply write a better code.
[ Parent
| on HN ]
Re:Ask HN: What source code is worth studying?
by bonecandy on Wednesday October 14, 2009 @01:25AM
(#880763)
For a smallish project that you can figure out fairly easily, I recommend the Kohana framework. It's extremely well documented and it's quite easy to read. Many people actually recommend reading its source to supplement the documentation and after having to do so myself I can see why.
Re:Ask HN: What source code is worth studying?
by jeduan on Tuesday October 13, 2009 @12:21PM
(#879400)
I learnt a lot by using frameworks as symfony. The initial learning curve is steep, but then you can understand architecture better. The jump to other languages such as python and java was really easy after that.
Re:Ask HN: What source code is worth studying?
by jparise on Tuesday October 13, 2009 @12:35PM
(#879429)
There's a lot of excellent PHP code in the Horde Project's repository: http://cvs.horde.org/
Re:Ask HN: What source code is worth studying?
by gmoothart on Tuesday October 13, 2009 @07:04PM
(#880297)
There is no such thing as excellent PHP code.
Re:Ask HN: What source code is worth studying?
by bnmrrs on Tuesday October 13, 2009 @12:28PM
(#879414)
The symfony framework and Doctrine ORM are both well written projects.
Re:Ask HN: What source code is worth studying?
by eru on Tuesday October 13, 2009 @11:55AM
(#879324)
Perhaps MediaWiki?
Re:Ask HN: What source code is worth studying?
by philjr on Tuesday October 13, 2009 @12:01PM
(#879339)
Personally, I wouldn't recommend it. Unfortunately I can't give a better alternative, but I've done some hacking on MediaWiki since version 1.7 and while it's some of the better examples of PHP out there, it still leaves lots to be desired in different places.