align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditfacebookglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

Beautiful Code - How To Write

From: John C.
Sent on: Saturday, November 3, 2012 8:33 AM

Hi Everyone,

There was an interesting questions asked on the Orlando PHP mailing list, that I thought I would share.

"I was looking at some PHP code from frameworks like CodeIgniter, CakePHP. Their code looks so succinct  so elegant and so professional. I'm trying to see if I can write PHP code like that. (I'm not talking about OOP vs. functional)

Is there anything that you'd recommend besides the advice of "keep reading their code" ? How does one learn to write PHP in such way?

Thank you for pointers!



My response to him:

I can recommend two resources.  Take a look through these slides, "Your Code Sucks, Let's Fit It" ( and also this book, "The Art of Readable Code" (


Does anyone else have an interesting resource, or tips for writing beautiful code?


John Congdon, Organizer

[address removed]

Our Sponsors

  • Co-Merge

    Hosting for SDPHP

  • is redefining the marketplace for business purchases.

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy