Re: Coding standards / spaces vs tabs

2010-10-21 Thread Patrick Goetz
On 10/21/2010 7:10 AM, Bron Gondwana wrote: set tabstop=3 set expandtab 3? Why three? Einstein said "make everything as simple as possible, but not too simple". I think a similar principle applies to indentation: indent as little as possible, but not too little. When I first start

Re: Coding standards / spaces vs tabs

2010-10-21 Thread Bron Gondwana
On Thu, Oct 21, 2010 at 01:56:03AM -0500, Patrick Goetz wrote: > On 10/20/2010 9:05 PM, Bron Gondwana wrote: > > > >P.S. Here's what I use in vim to make life worth living. > >It makes tabs visible, and lets me indent blocks quickly > >by 4 characters while creating the correct tabs. > > > > If ev

Re: Coding standards / spaces vs tabs

2010-10-21 Thread Jeroen van Meeuwen (Kolab Systems)
Bron Gondwana wrote: > This is the kind of thing that we really need coding > standards for. The prevailing spacing standard for > the cyrus codebase is: > Yup we do, I had looked for the doc. you mentioned Greg had made but I couldn't find it. Sorry to have jumped the gun on this! > Now I hap

Re: Coding standards / spaces vs tabs

2010-10-20 Thread Patrick Goetz
On 10/20/2010 9:05 PM, Bron Gondwana wrote: P.S. Here's what I use in vim to make life worth living. It makes tabs visible, and lets me indent blocks quickly by 4 characters while creating the correct tabs. If everyone uses vim, then this problem is easily resolved: <:) set tabstop=3 set e

Re: Coding standards / spaces vs tabs

2010-10-20 Thread Bron Gondwana
On Thu, Oct 21, 2010 at 01:05:04PM +1100, Bron Gondwana wrote: > commit 6a9be341d3de4cff9f548bfb0c26546f1a4b2605 > Also, remove the mixed use of tabs and spaces (I used 4 spaces to a tab) > and indent accordingly for t > > Now I happen to think this is approximately one of the > shittiest cod

Coding standards / spaces vs tabs

2010-10-20 Thread Bron Gondwana
commit 6a9be341d3de4cff9f548bfb0c26546f1a4b2605 Author: Jeroen van Meeuwen (Kolab Systems) Date: Wed Oct 20 13:21:00 2010 +0100 Make sure that sieve scripts use \r\n before saving them, so that multiline responses with different Also, remove the mixed use of tabs and spaces (I us