[KPhotoAlbum] [PATCH 2/3] SettingsData: Default window geometry calculated

Michael Witten mfwitten at MIT.EDU
Wed Sep 24 00:51:10 BST 2008


On 23 Sep 2008, at 3:37 PM, Henner Zeller wrote:

> Hi,
>
>>> Also:  you  have a  wierd  indentation.  Always do  four
>>> spaces  per   indentation  level  -  you're   here  even
>>> switching indentation within the same level...
>>
>> Sorry,  I  meant to  use  deeper  indentation under  the
>> comment text,  but for whatever  reason I reverted  to a
>> shallower indentation towards the bottom of the function.
>
> Don't have different indentations for code/comment - it will be
> automatically indented to one level by the next editor. If you
> want to emphasize comments, use the /* */ style that is slightly
> more visible.

I'm  somewhat of  a  disciple  of Saint  Knuth  and  his teachings  on
literate  programming,  namely  that  code  should  be  considered  as
something embedded in documentation (or  at least something that flows
with a discussion). This seemed like a particularly good case in which
to practice such a tradition.

It's obvious I'm starting to step on toes, so I'm amenable to changing
the indentation, but  I fear the same underlying  problem that plagues
this case also plagues the case of long lines:

	Nosey editor software

> it will be automatically indented to one level by the next editor.

By 'editor', I  assume you mean software. There is  art and purpose in
the indentation  I chose. It lends  itself to the discussion.  So, why
should any  piece of  software be encouraged  to modify  these choices
mindlessly?

It makes more  sense to me to  turn off these bugs and  have an editor
that at most keeps a constant  indentation level, but nothing more. No
autocompletion  unless I  ask,  no automatic  parentheses/bracket/quote
closing,  no  automatic formatting,  no  wrapping,  etc. I  even  work
without  syntax coloring,  and what  I find  most interesting  is that
without all of these features, I'm  much more productive and much more
expressive about how I sculpt text into multi-level meanings. Nor do I
have so much to complain about, because I'm not plagued by my editor.




More information about the Kphotoalbum mailing list