Who says that programming in smalltalk is different from others ?
You can write smalltalk with a simple Texteditor. However.
I have written a simple program here , with smalltalk V 2.0 , 16bit
1. The programs name is : Prozentrechnung
Only one class is the programm. Only one method is the program.
ok. there could be more interdependencies such like "subroutines" not important for understanding
2. The method "startUpApplication" from the class "Notification"
is responsible for opening the own programm. ( itself a class uhhhhhhhhh )
So the only thing you have to do is to tell the strartUpApplication method
the program Name. here Prozentrechnung new open. thats all
3. Now you have to type a Method named open. for Notification to READ.
4. In most cases is is self and then the startmethod of your own program.
Here in my program the Promter is asking first with a simple window
to INPUT DATA !
Very simple and easy.
I dont care about the endless procedures in other smalltalk implementations
but one thing is shure . " i have opened that fucking thing here in smalltalk ! "
_______________________________________________________________
Object subclass: #Prozentrechnung instanceVariableNames: 'Berechnung ' classVariableNames: '' poolDictionaries: '' !
!Prozentrechnung class methods ! !
!Prozentrechnung methods !
calculate "Simple Percentage Calculation"
| x y ergebnis |
x := Prompter prompt: 'Input a sum' default: ' '. x := x asInteger. y := Prompter prompt: 'Input percentage % : ' default: ' '. y := y asInteger. ergebnis := x * (y/100). MessageBox message: 'Ergebnis ist: ' , ergebnis printString!
open
"Open that fucking thing"
self calculate! !
startUpApplication: oldWindows "Opens up the the run-time application window. oldWindows are the windows that were opened when the image was saved."
"Replace the below code with the startup code for you application. For example: Puzzle15 new open."
Prozentrechnung new open.
On 11.12.2014, at 13:54, Hans Schueren werbung@hans-schueren.de wrote:
stuff
Bot or troll, there is no excuse to use profane language on our beginners mailing list.
If you want to avoid being banned, please respond to this email in a sensible manner.
- Bert -
On 11.12.2014, at 14:11, Bert Freudenberg bert@freudenbergs.de wrote:
On 11.12.2014, at 13:54, Hans Schueren werbung@hans-schueren.de wrote:
stuff
Bot or troll, there is no excuse to use profane language on our beginners mailing list.
If you want to avoid being banned, please respond to this email in a sensible manner.
- Bert -
I did get a response. It was not sensible.
*plonk*
- Bert -
Last time i heard this was in a usenet newsgroup :-))
In a time when most newsreaders would add this to the correct thread because of the "in reply to header" and the message id's.
SCNR
Herbert
Am 11.12.2014 um 17:17 schrieb Bert Freudenberg:
On 11.12.2014, at 14:11, Bert Freudenberg bert@freudenbergs.de wrote:
On 11.12.2014, at 13:54, Hans Schueren werbung@hans-schueren.de wrote:
stuff
Bot or troll, there is no excuse to use profane language on our beginners mailing list.
If you want to avoid being banned, please respond to this email in a sensible manner.
- Bert -
I did get a response. It was not sensible.
*plonk*
- Bert -
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
I've said things people didn't like on mailing lists; and it hurt, forever.
Get off the list. You're wasting everyone's time. Your goals are not ours. So just go away. This is a pain in the ass, and no one here is getting anything good out of it.
If I was still moderating this list -- oops, this wasn't the list I moderated, but forget that for right now -- at this point, you wouldn't be posting to it anymore.
Cheers and Happy Endings, so find something like that or say something on topic and actually do something to help someone. Otherwise, you still look like a robot of poor upbringing.
C
On Dec 11, 2014, at 4:54 AM, Hans Schueren werbung@hans-schueren.de wrote:
Who says that programming in smalltalk is different from others ?
You can write smalltalk with a simple Texteditor. However.
I have written a simple program here , with smalltalk V 2.0 , 16bit
The programs name is : Prozentrechnung
Only one class is the programm. Only one method is the program.
ok. there could be more interdependencies such like "subroutines" not important for understanding
The method "startUpApplication" from the class "Notification"
is responsible for opening the own programm. ( itself a class uhhhhhhhhh )
So the only thing you have to do is to tell the strartUpApplication method
the program Name. here Prozentrechnung new open. thats all
Now you have to type a Method named open. for Notification to READ.
In most cases is is self and then the startmethod of your own program.
Here in my program the Promter is asking first with a simple window
to INPUT DATA !
Very simple and easy.
I dont care about the endless procedures in other smalltalk implementations
but one thing is shure . " i have opened that fucking thing here in smalltalk ! "
Object subclass: #Prozentrechnung instanceVariableNames: 'Berechnung ' classVariableNames: '' poolDictionaries: '' !
!Prozentrechnung class methods ! !
!Prozentrechnung methods !
calculate "Simple Percentage Calculation"
| x y ergebnis |
x := Prompter prompt: 'Input a sum' default: ' '. x := x asInteger. y := Prompter prompt: 'Input percentage % : ' default: ' '. y := y asInteger. ergebnis := x * (y/100). MessageBox message: 'Ergebnis ist: ' , ergebnis printString!
open
"Open that fucking thing"
self calculate! !
startUpApplication: oldWindows "Opens up the the run-time application window. oldWindows are the windows that were opened when the image was saved."
"Replace the below code with the startup code for you application. For example: Puzzle15 new open."
Prozentrechnung new open.
Beginners mailing list Beginners@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/beginners
beginners@lists.squeakfoundation.org