| PHP Best Practices - kicking off [message #1078] |
Mon, 12 March 2007 06:30  |
 |
KathyReid Messages: 224 Registered: October 2006 Location: Geelong, Victoria, Austra... |
Member |
|
|
Hi everyone,
Just thinking about some possible Best Practice articles, here's what comes to mind;
- Low carb PHP: No spaghetti
- PHPDoc: comments are your friends
- Game on: Throwing, catching and handling errors
- Users are stupid: Parsing input and escaping output
- Start on the right track and clean up your own mess: Initialising and destroying variables correctly
- Guess the magic number: Using constants
- Programmers are stupid: Version control can save your life
- Code reuse? No thanks, I have plenty of free time
Any others that are 'pet perks' and should be on the list?
K.
[Updated on: Tue, 13 March 2007 16:32] by Moderator
|
|
|
|
| Re: PHP Best Practices - kicking off [message #1080 is a reply to message #1078 ] |
Mon, 12 March 2007 08:14   |
 |
KathyReid Messages: 224 Registered: October 2006 Location: Geelong, Victoria, Austra... |
Member |
|
|
Awesome - those ones are great j.rf!
I'm just having *way* too much fun now....
- PHP Karma: Write code you would like to maintain
- Securing your job through obscurity: Why to write 3 lines of completely unreadable code when it would be easy to maintain in 5 lines
- The wheel wasn't good enough: How to waste time by rewriting code
- Codewithnopunctuationorappropriateuseofwhitespace isreallyhard tocomprehend
- Fun with $dick and $jane: Appropriate naming of variables
- Coders are from Mars, designers are from Venus: Why structure and presentation should be separated in PHP (you won't see John Gray write that one!)
- The 7 Habits of successful PHP developers: Test, test, test, test, test, test (get the joke?)
[Updated on: Mon, 12 March 2007 08:19]
|
|
|
|
| Re: PHP Best Practices - kicking off [message #1085 is a reply to message #1078 ] |
Mon, 12 March 2007 18:19   |
lig Messages: 311 Registered: October 2006 Location: Fernandina Beach, Florida |
Feeling Comfortable |
|
|
Not a cute name - but something I wrote a while ago that touches on some of the things.
Coding "Best Practices" - Or at least "Better Practices"
--
life is a game... have fun
PHPCommunity
Open Source, Open Community
#phpc on Freenode
|
|
|
| Re: PHP Best Practices - kicking off [message #1088 is a reply to message #1085 ] |
Tue, 13 March 2007 02:20   |
|
This is completely off topic...well kinda...
But all you experienced programmers should get together and write a book. And an entertaining book...none of this stupid product/order/purchase database crap that I'm reading at the moment!
You know how all the books you read have an application that you end up developing...I think yours should have something to do with Chocolate
|
|
|
|
| Re: PHP Best Practices - kicking off [message #1093 is a reply to message #1091 ] |
Tue, 13 March 2007 10:21   |
|
|
Excellent topics, all! I volunteer to be an editor if anyone needs someone to proofread their articles.
|
|
|
|
| Re: PHP Best Practices - kicking off [message #1106 is a reply to message #1078 ] |
Tue, 20 March 2007 12:04   |
mweierophinney Messages: 3 Registered: March 2007 |
Shiny and New |
|
|
A couple other important ones:
- Conform or die: Overview of Coding Standards and why to use them
- What's in a name? Why you should prefix your classes and functions
- 1, 2, 3, Deploy... CRASH AND BURN: Why you need a deployment procedure
- Where'd the files go? How source control will save your job
--
Matthew Weier O'Phinney
http://weierophinney.net/matthew/
|
|
|
|
|