On 25/11/05, Alan Gauld <[EMAIL PROTECTED]> wrote:
> > Just had a quick look at Smalltalk, and at first glance the overview
> > of the ideas behind it seems amazing, but the language seems quite
> > ugly, and it seems to be very IDE led.
>
> Adherents will defend its simplicity but I confess I stru
Andrzej Kolinski wrote:
>
> OK, I made some progress I think. I added a few lines to Kent's script
> to get closer what I really am after:
Congratulations! See some notes below.
>
> ==
> lines = open('liga050926.sbk') # to get the data from a real
Ed Singleton wrote:
>>>This immediately seemed to me to be a case for classes.
>>>You provide a way for a user to create a new class by
>>>subclassing the page class (from their point of view
>>>probably through adding a few new fields to
>>>a form).
>
> The behaviours of all the
> classes would b
>> point. Classes express behaviour, the data is only there to support
>> the behaviour. Thats why methods are polymorphic but not attributes.
>
>If classes express behaviour, then what expresses the structure of the
> data?
Why do you care? If the program behaves as you expect it what does
it
Alan Gauld wrote:
> That might be part of the problem, if you think of a class in terms
> of its data attributes then that is nearly always the wrong starting
> point. Classes express behaviour, the data is only there to support
> the behaviour. Thats why methods are polymorphic but not attribut
On 25/11/05, Alan Gauld <[EMAIL PROTECTED]> wrote:
>
> Hi Ed,
>
> This is a longish response because you are raising some
> very interesting (and deep) issues from a computer science
> point of view.
>
> > Well, self-modifying isn't inherently necessary. What I guess I
> > really need is persisten
On 26/11/05, Kent Johnson <[EMAIL PROTECTED]> wrote:
> Ed Singleton wrote:
> >>>This immediately seemed to me to be a case for classes.
> >>>You provide a way for a user to create a new class by
> >>>subclassing the page class (from their point of view
> >>>probably through adding a few new fields
Hi Ed,
> Maybe it's just knowing what'll be possible in 10 years time and being
> impatient for it.
The problem is that over twenty years ago when I was at university the
Japanese anounced that they would have launched a 5th generation
computer language by 1990. They gave up and we are still wa
On 26/11/05, Alan Gauld <[EMAIL PROTECTED]> wrote:
> >> point. Classes express behaviour, the data is only there to support
> >> the behaviour. Thats why methods are polymorphic but not attributes.
> >
> >If classes express behaviour, then what expresses the structure of the
> > data?
>
> Why do yo
>From this and what Alan said, I think I'm starting to get it. Each
> attribute could be an object or an entry in a list. Each type would
> be a collection or list of a particular set of attributes. The
> collection of types would be an object which is easily persisted.
Absolutely!
> Can you c
Hi Kent,
>> point. Classes express behaviour, the data is only there to support
>> the behaviour. Thats why methods are polymorphic but not attributes.
>>
>> So you think of a class having an interface and users extending
>> or modifying the behaviour, not the data.
> I think of a class in ter
> I had the misfortune a couple of days ago of having to knock up a couple
> of web pages in ASP. A very basic search form, results page and details
> page. I had to open up a connection to the database, open a recordset,
> concatenate a strings to make an SQL query, etc, etc.
>
> It was horrible
I am using Python 2.3 under Windows XP Home
edition
I am too old to learn all the tricks of Python, and my main
purpose is for Physics calculations
I do have some questions, but perhaps my useage of Python as
an Algebraic Calculator will be interesting to someone?
Python is the best pr
Andrzej Kolinski wrote:
>
> OK, I made some progress I think. I added a few lines to Kent's script
> to get closer what I really am after:
Congratulations! See some notes below.
>
> ==
> lines = open('liga050926.sbk') # to get the data from a real fi
Hubert Fitch wrote:
> Now for the questions:
>
> Most data and results are displayed properly formatted in scientific
> notation, but sometimes large numbers resulting from calculations are
> not converted to scientific notation.
>
> For example: mu0*I0/r0 = 1209755258303.6067 (should have
>
Alan Gauld wrote:
> I never use commonality of data to define a class. OK I lie, sometimes
> its just convenient to do it that way, but as a principle
> such classes are rarely extensible, they tend to be more like records in
> structured programming speak.
Very few of my classes are ever extend
| The display function operates on each line in the .py file and
| provides 4 formatted columns for:
| Variable Name, Data (18 digits ), Assignment Formula, and Comments.
|
There are a couple of recipes at ASPN that might be useful with table
generation:
http://aspn.activestate.com/ASPN/Cookb
17 matches
Mail list logo