<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Dan,<br>
<br>
On 16/11/2015 07:30 p.m., Dan Norton wrote:
<blockquote cite="mid:564A5919.15040.19C7009@dnorton.mindspring.com"
type="cite">
<title></title>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<div align="left"><font size="2" color="#7f0000" face="Arial"><span
style="font-size: 10pt;"><br>
</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;">As one who benefits greatly from
studying other people's code ;-) I favor copy and paste over
reading prose. The most useful "Useful Code Patterns" would
be something in a code window like "Useful Expressions" IMO.
But where UE is code line oriented, it needs to be class and
method orented. It would be heavily commented as to what is
on a line, or in a method, and why, because this is a big
problem with Smalltalk in many cases. Once pasted, the
comments would be customized or removed.</span></font></div>
</blockquote>
<br>
Ok, it is a good idea.<br>
<br>
<blockquote cite="mid:564A5919.15040.19C7009@dnorton.mindspring.com"
type="cite"><font size="2"><font face="Arial"></font></font>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;">I started a package with a model
and a view, trying to be minimalist about getting them to
simply put up a window without bringing up the debugger.
There are lots of comments. Please take a look and give me
yours.</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;"><br>
</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;"> <a class="moz-txt-link-freetext" href="https://github.com/dhnorton/Cuis-Smalltalk-patterns">https://github.com/dhnorton/Cuis-Smalltalk-patterns</a></span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;"><br>
</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;">It tries to be the most efficient,
direct, and simple pattern for opening a view on a model in
Cuis. It's deliberately not glitzy. Glitz is added by the
user. Next, I plan to incorporate #when:send:to:
fundamentals.</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;"><br>
</span></font></div>
<div align="left"><font size="2" face="Arial"><span
style="font-size: 10pt;"> - Dan</span></font></div>
</blockquote>
<br>
Well, I don't like the #open method in the model. The idea of View /
Model separation is that views know about models, but models don't
know about views. A Model should exist independently of being used
from Morphic, MVC, Seaside, or any other UI framework. It could
live, for example, in a Gemstone database with no UI at all. Or ir
could travel to and from other systems, like VA Smalltalk, where the
UI framework is completely different from Cuis'.<br>
<br>
I think it is better for the View to start it all.<br>
<br>
Cheers,<br>
Juan Vuletich<br>
</body>
</html>