(To be fair, let me just remind you that I've already displayed my bias against changing the syntax as a help for novices :-)
A fundamental problem with Dan's alternate syntax (that Mats already mentioned in passing) is that code in comments doesn't work. This may not sound so bad until you try this in use. Effectively it means that all example code in comments become more or less useless (unless it spuriously parses identically in the new syntax). For example, I looked at the changeset preambles, this one is from 2275:
"From the profiles posted earlier, you could see that
Interpreter translate: 'interp.c' doInlining: false
spend about 20% in method Symbol class>>intern:. About 17% of these are caused by " ...
and "doing" the middle line yields:
Interpreter Nothing more expected ->translate: 'interp.c' doInlining: false ^^^^^^^^^^^^^^^^^^^^^^^^^
Unless you add a special TextStyle annotation for code that re-parses the text in it automatically (and everyone writing remembers to annotate their examples with it...), you cannot use any examples--including class side example categories, written tutorials, and such texts as "Welcome to Squeak"--which are intended for novices I would guess.
(One short-term remedy would be to prefix all error strings with some type of notice that the alternate syntax is active.)
-----
And wrt color: Here, less is more than ever ;-)
| | Typographic guidelines for use of color: | | 1. Don't. | 2. Goto 1. |
At the very least, make all windows (ie. text backgrounds) white by default before enabling this. Red and pink on green, or red and pink on cyan, for example, whoa! Or pink on pink (Debugger), or anything on orange (Transcript). Truly psychedelic.
Colored text is generally never a great idea for non-attention-attracting purposes. Italics and boldface are ok, but then a more calm typeface than New York ought to be used.
I think the code coloring craze started from a need to organize long text files of monotonous-looking code. But we already have browsers, so there's really no need for it. As you may have noticed, well designed web pages often no longer have text links in deviating color, or use greatly subdued colors.
Okay, today's complaining quota is filled, but I tried to be constructive too.
Henrik
Henrik --
At 8:25 AM -0800 6/8/00, Henrik Gedenryd wrote:
(To be fair, let me just remind you that I've already displayed my bias against changing the syntax as a help for novices :-)
I remember ...
A fundamental problem with Dan's alternate syntax (that Mats already mentioned in passing) is that code in comments doesn't work. This may not sound so bad until you try this in use. Effectively it means that all example code in comments become more or less useless (unless it spuriously parses identically in the new syntax).
Well, another confession of mine is that "code" should be in one of possibly several fonts that is marked "code" -- in which case your problem vanishes and things are better in general.
And wrt color: Here, less is more than ever ;-)
| | Typographic guidelines for use of color: | | 1. Don't. | 2. Goto 1. |
I agree, except for: 1.5 Try some of the intermediate grays ... 1.6 Don't try to highlight a lot of different things ...
Cheers,
Alan
Henrik wrote...
And wrt color: Here, less is more than ever ;-)
| | Typographic guidelines for use of color: | | 1. Don't. | 2. Goto 1. |
Alan wrote...
I agree, except for: 1.5 Try some of the intermediate grays ... 1.6 Don't try to highlight a lot of different things ...
I must apologize for the colors. I still had my hacking hat on and never really got down to aesthetics before sending it out. This way, at least I figured everyone would want to try different settings!
- D
This is a variation for a View of an AssignmentNode in the ColonFreeSyntax-di sample .
aBottle Gets aMessage .
I have always introduced Smalltalk Assignment with this syntax, verbally and in writing, to discuss the concept of what it means for aVariable to get anObject. Yep, including a real physical bottle ( or cutout tennis ball ) being passed around with a note stuffed inside it while I talk about Object, Class, Variable and Message.
Only when finished that discussion do I mention that Gets is written with a leftarrow symbol, typed with a shift-hyphen but still pronounced Gets. aBottle Gets aMessage . aBottle _ aMessage .
I definitely would like a View of an AssignmentNode available as a HumanPreference option with the foreign language style that Dan showed in his original with
Set aVariable to aValue .
Lantz
-- Lantz Rowland lantz@aabysgallery.com PgpKey: 0x67E5DFA5 Think Different! Think YottaHertz! http://Lantz.EditThisPage.com/ ----------------------------------------------------------------------
squeak-dev@lists.squeakfoundation.org