Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > A stylistic question.

Thread Tools

A stylistic question.

Jordan Abel
Posts: n/a
2006-05-20 <(E-Mail Removed)>, Richard Heathfield wrote:
> James Dow Allen said:
>> I *do* like being able to line up begins and ends easily, so if I was
>> ever forced to work on code that used (gasp!) 2-space indentation
>> I'd become an indent(1) fan *real* quick. (2-space indentation may
>> look
>> OK on little fragments, but am I the only one that ever puts more than
>> 3 or 4 lines of code into the body of a for or if?)

> I use two-space indent, and I have found that it works very well. History: I
> used to use tabs (with 8-stops), but that got silly fast, and I converted
> to 4-stops (but still tabs). But then I got into Usenet. Tabs being frowned
> upon, I got into the 2-space indent habit for Usenet posts (because it was
> so much quicker!), and found that I liked it so much I adopted it for
> non-Usenet code too.
> I have no problem matching braces (because I lay them out Allman-style, so
> it's very obvious) - and anyway, vim can jump between { and } with a single
> keystroke, so even if it weren't obvious it wouldn't matter that much.
> But yes, you're right - indent(1) is our friend.

gg=G preserves existing line numbers.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fujitsu Siemens Stylistic ST5022D Tablet PC. Gerhard Nerge Computer Support 1 09-25-2006 03:06 AM
Stylistic question about inheritance Andrew Koenig Python 17 04-01-2005 12:49 PM
Stylistic question -- initialization lists and vectors Denis Remezov C++ 4 04-30-2004 05:10 PM
stylistic use ofexplicit this. P.Hill Java 13 04-23-2004 04:21 AM
stylistic prototype question Mantorok Redgormor C Programming 5 10-30-2003 01:51 PM