4 ms·
Pharo does have commandline functionality, but that won't demonstrate its value as a first experience. For an interactive tutorial... open Pharo, then left-clic
by ben-coman 8y ago
Pharo does have commandline functionality, but that won't demonstrate its value as a first experience. For an interactive tutorial... open Pharo, then left-click background, Tools > Playground, type & highlight 'ProStef go', right-click & 'do it'.
Then try these one-liners in the Playground... https://medium.com/concerning-pharo/elegant-pharo-code-bb590f0856d0 https://medium.com/concerning-pharo/elegant-pharo-code-bb590....
Then (and I know its a video) but maybe serverless PharoLambda would interest you... https://www.youtube.com/watch?v=YUbd0-FX6pI https://www.youtube.com/watch?v=YUbd0-FX6pI
- igouy 8y agoDo you understand that you are not answering `virtualized`s question? The question is not about a Pharo commandline that exists as part of the Pharo GUI. The question is about an OS commandline like "GNOME Terminal" with stdio.
- detaro 8y agoThey do. By saying "there is such functionality, but you should try this instead, because using it from commandline won't tell you why this is interesting". Which isn't directly answering the question, but pointing the asker in a good direction.
- igouy 8y agoUntil the asker has been shown that their commandline requirements can be met — they will not be interested.
- goatlover 8y agoBut it's entirely missing the point in that you don't use a Smalltalk environment so that you can run some hello world example from the command line.
- igouy 8y agoA simple hello-world command-line example may be used to demonstrate: — How to run a Smalltalk source code file as a script — How to use stdio, How to use file handles — How to load Smalltalk source code from files, save, deploy , and invoke on remote machines Until `virtualized` has seen that basic stuff can be done, why should they care?
- goatlover 8y agoBut this is about Pharo, which is a Smalltalk environment, which is different from how most programing languages are used. So starting from those kinds of questions is missing the point, when the focus should first be on seeing what makes a Smalltalk environment different.
- igouy 8y ago> a Smalltalk environment A Smalltalk implementation. > So starting from those kinds of questions is missing the point… The questions `virtualized` asked are simple and clear. Telling `virtualized` that they are missing the point — instead of answering their questions — makes the community seem arrogant.
- goatlover 8y ago> Telling `virtualized` that they are missing the point — instead of answering their questions — makes the community seem arrogant. However, virtualized stated that they gave up after five minutes because they couldn't find a hello world example similar to programming languages they're presumably familiar with, because they didn't want to watch a video or read a book. So explaining that the Smalltalk environment is different, and thus it doesn't make a lot of sense for Pharo's website to advertise with a command line example, is appropriate, since that implementation is GUI-based. It would be akin to complaining about RStudio's site because someone couldn't quickly find how to run a hello world R script from the command line, when RStudio is about the IDE.