Amber
Amber - a smalltalk running on node.js intended for writing in-browser apps using almost the syntax of Pharo Smalltalk, and a class hierarchy that allows for easy JSON
Monday, 28 October 2013
Friday, 25 October 2013
To open a PDF (or other) file
aPdfNameString := 'The_Boys_own_book' .
ShellLibrary default shellOpen: FileLocator imageRelative
basePath,'\',aPdfNameString,'.pdf'
e.g. as a method
openPdf: aPdfNameString
"Opens a pdf file in its own PDF window"
ShellLibrary default shellOpen: FileLocator imageRelative
basePath,'\',aPdfNameString,'.pdf'
ShellLibrary default shellOpen: FileLocator imageRelative
basePath,'\',aPdfNameString,'.pdf'
e.g. as a method
openPdf: aPdfNameString
"Opens a pdf file in its own PDF window"
ShellLibrary default shellOpen: FileLocator imageRelative
basePath,'\',aPdfNameString,'.pdf'
Wednesday, 23 October 2013
Pointers to collections
Are created during the initialization of the owning object
e.g.
DraftFencing new intialize
pools : = ListModel new.
Each member of the collection the next level down is added in a method here.
So in PaffFencing
. . a pool is added by a method in the Round object
. . a bout is added by a method in the Pool object.
e.g.
DraftFencing new intialize
pools : = ListModel new.
Each member of the collection the next level down is added in a method here.
So in PaffFencing
. . a pool is added by a method in the Round object
. . a bout is added by a method in the Pool object.
Model
is the SuperClass for domain model objects.
It's like Object, but has hooks for when the domain objects trigger events for the Views and Presenters
It's like Object, but has hooks for when the domain objects trigger events for the Views and Presenters
Tuesday, 22 October 2013
Monday, 21 October 2013
How to parse in CSV files?
Write to files, read from files
http://stackoverflow.com/questions/4055357/smalltalk-writing-output-to-a-file
Read and write CSV
http://stackoverflow.com/questions/9668506/how-to-in-smalltalk-read-and-process-contents-of-csv-file
Streams, including FileStreams
http://live.exept.de/doc/online/english/overview/basicClasses/streams.html#FILESTREAM
http://stackoverflow.com/questions/4055357/smalltalk-writing-output-to-a-file
Read and write CSV
http://stackoverflow.com/questions/9668506/how-to-in-smalltalk-read-and-process-contents-of-csv-file
Streams, including FileStreams
http://live.exept.de/doc/online/english/overview/basicClasses/streams.html#FILESTREAM
Things I need to find out:
To use the CSV Parser, requires:
How to import Monticello packages into Dolphin Smalltalk?
It's stated that Dolphin can already just do this using its Sourcecode Tracking System. Frustratingly, I can't find out where.
Update 22/10/13 2:30pm : STS is not part of Dolphin X6.1 Community Edition Edition. (Answer on comp.lang.smalltalk.dolphin)
How to import Monticello packages into Dolphin Smalltalk?
It's stated that Dolphin can already just do this using its Sourcecode Tracking System. Frustratingly, I can't find out where.
Update 22/10/13 2:30pm : STS is not part of Dolphin X6.1 Community Edition Edition. (Answer on comp.lang.smalltalk.dolphin)
Starting back out again
I want to write an application, initially for Windows.
I want to write it quickly.
I want it to do lots of things.
So I'm going to re-learn Smalltalk.
After hunting about a bit, I'm going to write it in Dolphin Community Edition.
I want to make the Windows part of the system nicely windowed.
I want a CSV Parser, so I want to import Monticello packages.
I'm going to write it on my Chromebook via VNC to my noisy laptop, which I keep in another room. (Real VNC client on the Chromebook, TightVNC server on my laptop).
I want to write it quickly.
I want it to do lots of things.
So I'm going to re-learn Smalltalk.
After hunting about a bit, I'm going to write it in Dolphin Community Edition.
I want to make the Windows part of the system nicely windowed.
I want a CSV Parser, so I want to import Monticello packages.
I'm going to write it on my Chromebook via VNC to my noisy laptop, which I keep in another room. (Real VNC client on the Chromebook, TightVNC server on my laptop).
Subscribe to:
Posts (Atom)