Hello everyone,
I know it is not really nice to have a first posting which at least partly resembles a complaint, but this is something I do not really understand. As a starting project I wanted to implement some basic CSV support as my Seaside project is going to store some things in a simple format, and CSV is really simple. I figured this would be great as I could learn some more about the Filename and the Stream hierarchy. My eyebrows rose first when I did not find a "Stream>>nextLine" implementation. I figured, I had simply not understood how Streams worked in VW, so I just implemented my own. After some more pondering, I asked in the newsgroup (comp.lang.smalltalk) about this and it turns out that nextLine *is* implemented; however it is implemented in NetClientBase, about exactly the package I would have expected it to be in. The second thing was that I needed to watch a Screencast before I found out that VisualWorks actually comes with some Code Edit Enhancements (tab-completion, code formatter, syntax highlighting), but you have to browse through all the packages first to find those things. The third thing was the package of getting the system time and using that instead of the internal one. I only learned about that, again via a Screencast. (The screencasts make getting to know VisualWorks actually much easier btw, a big thanks to Mr Robertson for those.) But still, what I do not really understand is this: Why is stuff like that not simply included in the base image itself? It would make starting out in VisualWorks land so much easier... Regards, Claus _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
If you want to read a csv file, just say:
'MyFileName.csv' asFilename contentsOfEntireFile tokensBasedOn: Character cr You'll get an OrderedCollecion back, each of which is one line in the file. Thomas Sattler Morgan Stanley | Technology 750 Seventh Avenue, 14th Floor | New York, NY 10019 Phone: +1 212 762-1212 [hidden email] > -----Original Message----- > From: [hidden email] > [mailto:[hidden email]] On Behalf Of Claus Kick > Sent: Tuesday, August 12, 2008 1:23 PM > To: [hidden email] > Subject: [vwnc] Newbie woes / VW 7.6 > > Hello everyone, > > I know it is not really nice to have a first posting which at > least partly resembles a complaint, but this is something I > do not really understand. > > As a starting project I wanted to implement some basic CSV > support as my Seaside project is going to store some things > in a simple format, and CSV is really simple. > I figured this would be great as I could learn some more > about the Filename and the Stream hierarchy. > My eyebrows rose first when I did not find a "Stream>>nextLine" > implementation. I figured, I had simply not understood how > Streams worked in VW, so I just implemented my own. After > some more pondering, I asked in the newsgroup > (comp.lang.smalltalk) about this and it turns out that > nextLine *is* implemented; however it is implemented in > NetClientBase, about exactly the package I would have > expected it to be in. > > The second thing was that I needed to watch a Screencast > before I found out that VisualWorks actually comes with some > Code Edit Enhancements (tab-completion, code formatter, > syntax highlighting), but you have to browse through all the > packages first to find those things. > > The third thing was the package of getting the system time > and using that instead of the internal one. I only learned > about that, again via a Screencast. > > (The screencasts make getting to know VisualWorks actually > much easier btw, a big thanks to Mr Robertson for those.) > > But still, what I do not really understand is this: Why is > stuff like that not simply included in the base image itself? > It would make starting out in VisualWorks land so much easier... > > Regards, > > Claus > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by Claus Kick
Claus,
if you are interested, I've implemented a little package for reading/writing CSV files. Cheers, Andrés Claus Kick escribió: > Hello everyone, > > I know it is not really nice to have a first posting which at least > partly resembles a complaint, but this is something I do not really > understand. > > As a starting project I wanted to implement some basic CSV support as my > Seaside project is going to store some things in a simple format, and > CSV is really simple. > I figured this would be great as I could learn some more about the > Filename and the Stream hierarchy. > My eyebrows rose first when I did not find a "Stream>>nextLine" > implementation. I figured, I had simply not understood how Streams > worked in VW, so I just implemented my own. After some more pondering, I > asked in the newsgroup (comp.lang.smalltalk) about this and it turns out > that nextLine *is* implemented; however it is implemented in > NetClientBase, about exactly the package I would have expected it to be in. > > The second thing was that I needed to watch a Screencast before I found > out that VisualWorks actually comes with some Code Edit Enhancements > (tab-completion, code formatter, syntax highlighting), but you have to > browse through all the packages first to find those things. > > The third thing was the package of getting the system time and using > that instead of the internal one. I only learned about that, again via a > Screencast. > > (The screencasts make getting to know VisualWorks actually much easier > btw, a big thanks to Mr Robertson for those.) > > But still, what I do not really understand is this: Why is stuff like > that not simply included in the base image itself? > It would make starting out in VisualWorks land so much easier... > > Regards, > > Claus > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |