(no subject)

Date: 2009-05-11 07:06 pm (UTC)
From: [identity profile] nmg.livejournal.com
This needs a follow-up poll on the right way to indent code:

[ ] 8 unit wide hard tabs only
[ ] 4 unit wide hard tabs only
[ ] space-based soft tabs at 8 units only
[ ] space-based soft tabs at 4 units only
[ ] an ungodly mixture of 8 unit wide hard tabs and spaces
[ ] whatever M-x c-indent-command thinks is right
[ ] I only write lisp

(no subject)

Date: 2009-05-11 07:47 pm (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
To some extent already addressed (http://ewx.livejournal.com/419105.html).

(no subject)

Date: 2009-05-11 09:58 pm (UTC)
From: [identity profile] armb.livejournal.com
A Brief, Incomplete ... History of Programming Languages (http://james-iry.blogspot.com/2009/05/brief-incomplete-and-mostly-wrong.html)
"1940s - Various "computers" are "programmed" using direct wiring and switches. Engineers do this in order to avoid the tabs vs spaces debate."

(And I still think sticking to at least not often going much over 80 helps more than it reduces readability. But I'll settle for 132 as a hard limit.)

(no subject)

Date: 2009-05-11 10:07 pm (UTC)
kake: The word "kake" written in white fixed-font on a black background. (Default)
From: [personal profile] kake
[x] whatever the house style says to use

(no subject)

Date: 2009-05-12 11:42 am (UTC)
From: [identity profile] armb.livejournal.com
This comes in part from a discussion of what the house style should say....

(no subject)

Date: 2009-05-12 12:00 pm (UTC)
kake: The word "kake" written in white fixed-font on a black background. (Default)
From: [personal profile] kake
I think unless it's obviously insane, it doesn't matter too much as long as everyone does the same thing (or everyone does something that can be munged into the same thing by the VCS). I once found a piece of code that variously used 2, 3, 4, 5, 6, and 8 spaces for indenting. That was fun to understand.

February 2025

S M T W T F S
      1
2345678
9101112131415
16171819202122
232425262728 

Most Popular Tags

Expand Cut Tags

No cut tags