Forget Alice. By now...
Our first recomendation is the download of the version of Cobalt we have used at these lessons (right-click the link):
Some other can not work.
When a programer installs a compiler of a language or an IDE - an Interactive Environment for Development - he likes to do a little program that writes "Hello World!".
He does it before to know anything about the language, maybe only copying and pasting some lines of code.
Are you trying to learn Cobalt programming? You will do a "Hello World" right now!
Open Cobalt and drag the "Tools" pallete and the "Workspace" and "Transcript" windows.
Type or copy and paste - right click over the Workspace window and use paste(v) - this code inside the Workspace:
|win| win := SystemWindow new. "Creating a window" win setLabel: 'HELLO WORLD !'. win setWindowColor: Color blue. win openInWorldExtent: 400@200.
CODE COMMENTS:
Here you are seeing, for the first, time MANY new things (we will explain all, in details, soon):
Clicking the left button of the mouse drag the pointer over all the lines in the Workspace - they will have a green background.
Do an "accept" rightclicking over the Workspace (the list of commands appear where the pointer is.) and click : "do it" .
Our empty blue window having the title "HELLO WORLD!" appears! WOW ! Now you are a Cobalt programmer !
NEXT LESSON TABLE OF CONTENTS HOMEPAGE