comanage-dev - Re: [comanage-dev] Updated Coding Guidelines
Subject: COmanage Developers List
List archive
- From: Benn Oshrin <>
- To: comanage-dev <>
- Subject: Re: [comanage-dev] Updated Coding Guidelines
- Date: Tue, 20 Dec 2011 19:39:20 -0500
[Back to the dev list]
On 12/20/11 1:31 AM, Marie Huynh wrote:
+ $this->redirect(array('action' => 'add'));
Does this array need to be defined before being passed?
I think we should be consistent here.
$arg['action'] = 'add';
$this->redirect($arg);
seems more readable, and not significantly less compact.
I used :%s/echo/print/gc. Do I need to fix the rest of the file too
even if this ticket doesn't touch those parts?
No. The general rule is only clean up code you touch.
Incidentally, I think we'll end up with some revisions to the style guides with Cake 2 based on how things are now done. For example, everything must be scoped ('public', 'private', etc), which we've been lax with to date. I'm going to try to figure out a way to get as much of this as possible cleaned up in the transition.
-Benn-
- Re: [comanage-dev] Updated Coding Guidelines, (continued)
- Re: [comanage-dev] Updated Coding Guidelines, Benn Oshrin, 12/16/2011
- Re: [comanage-dev] Updated Coding Guidelines, Scott Koranda, 12/16/2011
- Re: [comanage-dev] Updated Coding Guidelines, Marie Huynh, 12/16/2011
- Re: [comanage-dev] Updated Coding Guidelines, Scott Koranda, 12/16/2011
- Re: [comanage-dev] Updated Coding Guidelines, Benn Oshrin, 12/16/2011
- Re: [comanage-dev] Updated Coding Guidelines, Benn Oshrin, 12/17/2011
- Message not available
- Message not available
- Re: [comanage-dev] Updated Coding Guidelines, Marie Huynh, 12/20/2011
- Re: [comanage-dev] Updated Coding Guidelines, Benn Oshrin, 12/20/2011
- Re: [comanage-dev] Updated Coding Guidelines, Marie Huynh, 12/20/2011
- Re: [comanage-dev] Updated Coding Guidelines, Benn Oshrin, 12/20/2011
- Message not available
- Re: [comanage-dev] Updated Coding Guidelines, Scott Koranda, 12/16/2011
- Re: [comanage-dev] Updated Coding Guidelines, Marie Huynh, 12/16/2011
- Re: [comanage-dev] Updated Coding Guidelines, Scott Koranda, 12/16/2011
- Message not available
- Re: [comanage-dev] Updated Coding Guidelines, Benn Oshrin, 12/20/2011
- Re: [comanage-dev] Updated Coding Guidelines, Benn Oshrin, 12/16/2011
Archive powered by MHonArc 2.6.16.