Blogs

Accessing Succinctly

Tagged:  •  

There are times when you have code that looks like this:


Object subclass: MyNewClass [
    | foo bar baz traz bif |

    foo     [ ^ foo ]
    bar     [ ^ bar ]
    baz     [ ^ baz ]
    traz    [ ^ traz ]
    bif     [ ^ bif ]

    foo: aFoo   [ foo := aFoo ]
    traz: aTraz [ traz := aTraz ]
    baz: aBaz   [ baz := aBaz ]

    myMethod [
        "Do something with all of those instance variables"
    ]
]

Dear Diary

Tagged:  •    •  

Part I of Blue Book is almost complete, actually I read it but didn't understand the metaclass concept, so I will read last chapter again. Then I am thinking of going through the GNU Smalltalk tutorial so that I can learn the differences between Smalltalk-80 and GNU Smalltalk syntax. Part II is the longest part of the book but once complete I will be able to do practical programming with GNU Smalltalk.

Something Like Comparison Table

Hello,

I guess the mailing list issue I have is something related with my university internet. So, I haven't solved it yet. Let's continue to make suggestions from here.

One of the other things that experienced users who come across with a new language looking for is a comparsion table of that language with other languages or a simple table that lists whether the language includes some common key features of most programming languages. Like the comparison table here for D programming language:

http://www.digitalmars.com/d/2.0/comparison.html

'Hello World' printNl

Tagged:  •    •  

Hi,

This is my first blog post to GNU Smalltalk world. Actually, I'm not a "blog guy" but I'll give it a try because the message I sent mailing list yesterday didn't arrived (anyone has an idea? This happens to me always with mailing lists :-( ) and I'm impatient to meet GNU Smalltalk community.

Collection idioms in GNU Smalltalk (and problems thereof)

Tagged:  •    •    •    •  

Peter Norvig's blog showed an example of a toy spell checker in Python, which Michael Davies converted to Smalltalk. This problem is interesting and Michael's solution is actually quite idiomatic.

I'll show a couple more tricks that can help decrease the number of lines.

Syndicate content

User login