[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-smalltalk] Which Class do I use?
From: |
SJS |
Subject: |
Re: [Help-smalltalk] Which Class do I use? |
Date: |
Mon, 11 Jan 2010 14:06:37 +0000 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
begin quoting Duke Normandin as of Sun, Jan 10, 2010 at 09:52:42AM -0700:
> Or more specifically, "How does one *start* an OOP/GST program?
[snip]
> So, when a person begins to design an OOP/GST program/script, with
> what Class do you start?
The short answer? The REPL.
Not with a class, but the Read-Evaluate-Print-Loop.
> Let say that I want to create a console app -
> say a text-based calculator (which eventually I'll migrate to
> ncurses). The app will (pseudo-code) do the following:
>
> print-to-screen "Duke's Kick-ass GNU-Smalltalk Calculator"
> skip a line
> print-to-screen "Select a math Operation [+ - * /]:
> wait for user input, then inhale it
> print-to-screen "Enter first operand":
>
> You get the idea!
Um, have you started with "Hello, World" yet? That's the traditional
first program. :)
[snip]
-S.