PHPWomen Site Home » Programming » Best Practices » PHP Best Practices - kicking off
PHP Best Practices - kicking off [message #1078] Mon, 12 March 2007 06:30 Go to next message
KathyReid  is currently offline 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 #1079 is a reply to message #1078 ] Mon, 12 March 2007 07:31 Go to previous messageGo to next message
j.rf  is currently offline j.rf
Messages: 139
Registered: October 2006
Location: The Netherlands
Member
Excellent post ! I *love* the titles you've given the articles.

What about these ones to add:
  • Why would anyone wanna hack my website ? on web security and why it should always be taken into account for all the code you write
  • Nobody is Miss Perfect: debugging is not an optional extra
  • Time-out is set to 60 seconds runtime and so are my scripts: why users will never see your pages if they have to wait more than 10 secs and how to optimize your code


If & when I have some free time, I'll be happy to provide you with some of the articles. Let me know if you are interested.
Re: PHP Best Practices - kicking off [message #1080 is a reply to message #1078 ] Mon, 12 March 2007 08:14 Go to previous messageGo to next message
KathyReid  is currently offline 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 #1082 is a reply to message #1078 ] Mon, 12 March 2007 16:37 Go to previous messageGo to next message
lorna  is currently offline lorna
Messages: 413
Registered: October 2006
Location: Leeds, UK
Feeling Comfortable

<stops howling with laughter and peels herself off the floor />

Kathy, those are fabulous article titles Smile

The underlying subjects are spot on as well and I hope we can find time to cover most of these topics by splitting them up between us. I'm sure a few people could volunteer to take a subject each to get us started? I certainly would try to write something for one of these titles.


Lorna Mitchell (online at http://www.lornajane.net)
Re: PHP Best Practices - kicking off [message #1085 is a reply to message #1078 ] Mon, 12 March 2007 18:19 Go to previous messageGo to next message
lig  is currently offline 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 Go to previous messageGo to next message
kacjp  is currently offline kacjp
Messages: 65
Registered: October 2006
Location: Geelong
Junior Member

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 Smile
Re: PHP Best Practices - kicking off [message #1091 is a reply to message #1078 ] Tue, 13 March 2007 05:06 Go to previous messageGo to next message
j.rf  is currently offline j.rf
Messages: 139
Registered: October 2006
Location: The Netherlands
Member
I'm all for chocolate ! Wink

Anyways, here's another addition:

* Why equal doesn't equal : the difference between == and === and why you should not abuse ==
Re: PHP Best Practices - kicking off [message #1093 is a reply to message #1091 ] Tue, 13 March 2007 10:21 Go to previous messageGo to next message
reische  is currently offline reische
Messages: 64
Registered: October 2006
Location: Illinois, USA
Junior Member

Excellent topics, all! I volunteer to be an editor if anyone needs someone to proofread their articles.
Re: PHP Best Practices - kicking off [message #1094 is a reply to message #1088 ] Tue, 13 March 2007 15:16 Go to previous messageGo to next message
Marion  is currently offline Marion
Messages: 114
Registered: October 2006
Location: Amsterdam, The Netherland...
Member

Yeah! I agree with kacjp: I'd like to read a fun book about PHP! Something like "Why's (poignant) guide to Ruby" (http://poignantguide.net/ruby/index.html) or the less funny but still entertaining "Head Rush Ajax" (http://www.oreilly.com/catalog/headra/) Smile

[Updated on: Tue, 13 March 2007 15:18]

Re: PHP Best Practices - kicking off [message #1106 is a reply to message #1078 ] Tue, 20 March 2007 12:04 Go to previous messageGo to next message
mweierophinney  is currently offline 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/
Re: PHP Best Practices - kicking off [message #1112 is a reply to message #1078 ] Thu, 22 March 2007 18:13 Go to previous messageGo to next message
lorna  is currently offline lorna
Messages: 413
Registered: October 2006
Location: Leeds, UK
Feeling Comfortable

mweierophinney, I've just started a new job and I think you just named my top four issues. If anyone can have a shot at some of these I think it would help everyone out a lot! Great suggestions Smile


Lorna Mitchell (online at http://www.lornajane.net)
Ideas for a book title [message #1128 is a reply to message #1078 ] Sat, 31 March 2007 11:59 Go to previous message
KathyReid  is currently offline KathyReid
Messages: 224
Registered: October 2006
Location: Geelong, Victoria, Austra...
Member
Hmm, some ideas for a book title:

PHP, HTTP and PMT: The girl's guide to PHP programming
(every fourth exercise revolves around Chocolate Very Happy )

m4k1ng the e1337: How to better yourself as a PHP programmer

From Kmart to Prada: Designer PHP

Wink

[Updated on: Sat, 31 March 2007 12:00]

Previous Topic:A gentle introduction to PHPDoc
Next Topic:Why @ is NOT your friend
Goto Forum:
  


Current Time: Fri Jul 30 11:46:56 EDT 2010

Total time taken to generate the page: 0.01245 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.0.
Copyright ©2001-2006 FUD Forum Bulletin Board Software