Re: Great SWT Program



On Nov 16, 7:58 am, blm...@xxxxxxxxxxxxx <blm...@xxxxxxxxxxxxx> wrote:
One of the things I most resent about Word, though, is -- and it
seems to me that this rather goes against what you've been claiming
about GUI tools putting everything out in plain sight -- that it's
very difficult to expose the logical structure of the document [*].

That's because it's a WYSIWYG word processor. It doesn't HAVE a
logical structure to the document. What's under the hood is probably
akin to tag soup, the poor unstructured quasi-HTML of the early days
of the public Web.

I didn't claim Word was a great word processor. WordPerfect is better
(and has a command to toggle display of markup, as I recall). For
something where you're really concerned to work on the logical
structure, you may want something TeX-based instead of WYSIWYG.
(MiKTeX is a good choice of backend for Windoze; its previewer is a
particularly nice one. Add a decent text editor, a copy of lshort.pdf,
and a Firefox tab parked on Google, and you're good to go.)

Yes, but it does simplify things when you can use the same set
of tools.

I don't know. I daresay that using complex tools to automate and
complex tools to do stuff manually involves more complexity than using
complex tools to automate and simple tools to do stuff manually. :)

You mentioned (in another subthread) having to get out
the manual to write a shell script, oops, .bat file. I rarely
have to consult the documentation for my shell of choice.

That seems strange. Do you also rarely need to consult the Javadoc on
the lawyerly details of what some library call will do? Perhaps you
just don't code anything very ambitious, or go outside a very small
core set of commands much.

Any time I need a loop in a script I find myself reaching for the
syntax help, because it isn't very simple to do in any shell language
unlike Java's for and while syntax. Particularly the hairy syntax (and
different for every shell and each OS!) for local variables,
arguments, and other such variables is a pain to cope with and
requires referring to the documentation to disentangle. There's also
no simple notion of an Iterable or a Collection or integers, so much
as separate things for looping over files or directories (with arcane
options to look up for the particular combination of directories,
normal files, hidden files, system files, hidden system files, etc.
that you want it to skip; on the unix side you can add, at minimum,
device files and soft symlinks), over strings, over numbers ... and no
Integer.valueOf() or toString() type stuff. Most of what you want to
do requires launching an external command to massage some data, such
as to parse an integer out of a string, and there's never a handy and
easy to browse command reference listing all of these; instead it's
man this, man that until man <name of some binary from ls /bin> turns
out to describe something that fits the bill. This may have something
to do with the lack of a) a comprehensive how-to-oriented part of the
help; b) an index (other than ls /bin's output!); c) hyperlinks; and
d) better organized, descriptive command names. :P MS-DOS is if
anything even worse here due to the relative paucity of those helper
commands, and a particularly hairy syntax for distinguishing variables
of different scope and applicability. Writing a script to strip the
first six characters off every file name in a directory took half an
hour or more with frequent use of Google recently. And that's just a
single for loop, some simple string manipulation, and a rename
command, without nesting. (One of the hairier bits was getting it to
correctly use paths where needed, but cut the six characters off only
the filename part and then glue the rest of the path back onto the
rear; very easy to do in Java with
String.lastIndexOf('/'), .substring(foo), and the + operator, by
contrast.

Huh. A lot of what I do involves preparing various kinds of
documents -- "slides" for classes/talks, homework assignments,
research papers .... mostly non-code, and rarely do I have to
start completely from scratch.

Slides obviously can't be edited in vi, though. Unless you're going to
tell me it has circle, line, polygon etc. commands and ways to choose
various shading options ... all of it done blind, of course, so you
type it all in (type! All kinds of geometry stuff! Ouch!) and run the
output through some kind of presentation software and pray. And then
go and rewrite half of it. And then do it all again. And again. AND
AGAIN. :P

Thinking back, though .... Yeah,
when I made a living writing code, mostly what I was writing
*was* code. I'm not sure it would have been obvious to me back
then -- well, I probably didn't think much at all about what might
be involved in an academic job. Hard to say.

This begets another theory on the search vs. scroll thing. Search is
more likely to be helpful with code. And all that code writing might
have caused you to develop habits leading to your writing English
prose in a very artificially consistent sort of way, with the same
synonym chosen consistently for various things, and various consistent
organizational principles, that make *the specific prose that you
write* more amenable to search-based navigation/remembering what text
is at a given place than "normal" prose.
.



Relevant Pages

  • Re: Great SWT Program
    ... (and has a command to toggle display of markup, ... unlike Java's for and while syntax. ... Writing a script to strip the ... prose in a very artificially consistent sort of way, ...
    (comp.lang.java.programmer)
  • Re: minimum valid block size on DVD-RAM
    ... size accepted by DVD (writing) devices when writing ... a DVD-RAM is, like on nearly all other DVDs and CDs, ... I'd now like to know whether most of the available DVD-writers ... Please report me whether command 3 and command 2 succeed ...
    (freebsd-questions)
  • minimum valid block size on DVD-RAM
    ... size accepted by DVD (writing) devices when writing ... a DVD-RAM is, like on nearly all other DVDs and CDs, ... I'd now like to know whether most of the available DVD-writers ... Please report me whether command 3 and command 2 succeed ...
    (freebsd-questions)
  • Re: [patch] rm can have undesired side-effects
    ... different part of the disk. ... If writing zeros or whatever to a file (that may or may not overwrite ... separate features should be implemented in separate commands. ... is just not a good command to write a lot of data into a file. ...
    (freebsd-hackers)
  • Behaving like a shell
    ... I've been looking around old messages trying to find if shell-like input ... for navigation through history/the command line, ... I'm not writing a perl shell - I'm writing an application shell in perl ...
    (comp.lang.perl.misc)