News for hackers. Stuff that matters.
Re:Pharo 11 by jdthedisciple on Thursday May 11, 2023 @12:01PM (#35904126)
Serious question: Can you create medium-size to large applications without a text editor?
Re:Pharo 11 by tvink on Thursday May 11, 2023 @12:28PM (#35904514)
It's actually one of the best parts of it.

Extreme TDD is amazing - you write a test, run it, and when it fails you basically fill in the chunk of code right from the error window and continue. It's not always super obvious how to get into the flow, but I found that although I didn't feel productive enough with the Pharo ecosystem, I _really_ miss the smalltalky development flow which foregoes using text files to organize code.

Re:Pharo 11 by zabzonk on Thursday May 11, 2023 @12:14PM (#35904316)
yes, pharo is basically written in pharo.

please note you _do_ have to type in code in text, but not monolithic amounts of it as you would in (say) a C++ program.

Re:Pharo 11 by kragen on Thursday May 11, 2023 @02:13PM (#35906004)
it's not that it doesn't have a text editor; most smalltalk windows have five or six text editors
Re:Pharo 11 by jdthedisciple on Thursday May 11, 2023 @02:47PM (#35906527)
Oh boy, how does one keep their sanity like that?!
Re:Pharo 11 by kragen on Thursday May 11, 2023 @03:48PM (#35907495)
you use the windows to keep them organized, same as in any other gui
Re:Pharo 11 by Jtsummers on Thursday May 11, 2023 @04:33PM (#35908005)
The primary way of editing code in Pharo, Squeak, and similar implementations derived from Smalltalk-80 (but not all, some use the more familiar idiom of "many files in many directories") is to use one of the built-in (to the Smalltalk environment) browsers.

Select the package, class, and then method (or the options to create new ones) and the method will be in an editor pane for you. Start changing it, and the change is immediately applied once saved. No need to rebuild the world and restart the image. (Of course, that leads to some fun things where you can redefine True/False and break the image right there on the spot. Pharo seems to do a good job of blocking you from changing things like that so easily.)

Smalltalk code "lives" in a database. You interact with that database. The code is also serialized to a file if you happen to want more conventional access, but that's not the normal route. Though serialization to files is how Pharo and others allow you to interact with git and collaborate with other people.