Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] Coding Styles . . .

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: "Dufflebunk" <dufflebunk AT go-nix.ca>
  • To: "Sergey A. Lipnevich" <sergey AT optimaltec.com>, "Dufflebunk" <dufflebunk AT dufflebunk.homeip.net>
  • Cc: sm-discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] Coding Styles . . .
  • Date: Tue, 17 Jun 2003 20:28:10 -0400

There is also a tool called indent I believe, but I don't know if it works
for bash.

--------- Original Message --------
> EMACS can actually format a shell script for us, but it does have
> parameters I believe, and we may just need to come up with a uniform set
> of parameters for shell-script-mode to put in front of every source file
> in EMACS &quot;local variables&quot; notation:
> http://www.gnu.org/manual/emacs-21.2/html_chapter/emacs_33.html#SEC486
> I understand that not everyone's using EMACS, but that's the best
> non-people-centric measure I can think of.
>
> Dufflebunk wrote:
>
> &gt; I'm mostly to blame for those tabs. When I rewrite a lib I usually
use
> &gt;tabs rather than spaces because hitting the space bar 12 times or the
> &gt;backspace 12 times isn't my idea of fun for indentation.
> &gt;
> &gt; A consistent coding style in sorcery would be nice, but due to a lack
> &gt;of something written out on what this style is, and a lack of time to
> &gt;code in it, it's not that way. There is (or was) a draft document on
the
> &gt;wiki on what we wanted the style like in a rewrite.
> &gt;
> &gt; It's easy to maintain the same coding style if you're the only one
> &gt;writing the code. It's hard to maintain if there are several people.
> &gt;
> &gt;On Tue, 2003-06-17 at 10:45, Jason Flatt wrote:
> &gt;
> &gt;
> &gt;&gt;This is a /really/ minor point, but I just thought I'd bring it up
to find out
> &gt;&gt;where I/we stand on the issue.
> &gt;&gt;
> &gt;&gt;When I first got into Sorcerer 1.5 years ago, one of the big
things people
> &gt;&gt;lauded Kyle about was how he wrote and spaced his code and how it
made it so
> &gt;&gt;much more readable. I personally could see some benefit to the
way Kyle had
> &gt;&gt;coded things, but I wasn't necessarily sure that his spacing was
all /that/
> &gt;&gt;wonderful. :^)
> &gt;&gt;
> &gt;&gt;However, it seems that we in Source Mage have gotten away from
that coding
> &gt;&gt;style. It also seems to me that there really is /no/ coding style
anymore
> &gt;&gt;and it's possible to find code with single spaces, two or more
spaces, tabs
> &gt;&gt;and mixed spacing all through out the whole of Source Mage. I
certainly
> &gt;&gt;don't want to hold up progress w/my Type A tendencies, :^) but I
also don't
> &gt;&gt;want to hold up my progress by sticking to a coding style that no
one else is
> &gt;&gt;using.
> &gt;&gt;
> &gt;&gt;So, which is it? Get uniform based on something someone has put
into place,
> &gt;&gt;or just go willy-nilly doing whatever?
> &gt;&gt;
> &gt;&gt;
> &gt;
> &gt;_______________________________________________
> &gt;SM-Discuss mailing list
> &gt;SM-Discuss AT lists.ibiblio.org
> &gt;http://lists.ibiblio.org/mailman/listinfo/sm-discuss
> &gt;
> &gt;
>
>
>
>
>




Archive powered by MHonArc 2.6.24.

Top of Page