zlacker

[return to "Stop Writing Dead Programs"]
1. spion+hD[view] [source] 2022-10-20 10:18:09
>>aidenn+(OP)
Stop trying to make Smalltalk happen, its not going to work!

I kid, but I also wish there was some understanding that once state goes bad (as it very often does during program development) you really do want to restart that program from scratch. Or at least a part of it, I guess - an Erlang process will do.

(Unless you have very good time-traveling tools for the entire program state. Which can be prohibitively expensive).

◧◩
2. aidenn+QH1[view] [source] 2022-10-20 16:08:06
>>spion+hD
I don't know about Smalltalk, but a typical Common Lisp implementation will certainly allow you to restart the program from scratch.

Mutating state in a live program shouldn't be done carelessly (any more than a schema migration on a live database), but removing it completely from the toolbox is overly restrictive, especially since that also involves removing it from the toolbox while testing and developing.

◧◩◪
3. Jtsumm+fN1[view] [source] 2022-10-20 16:33:04
>>aidenn+QH1
Despite many people's beliefs, yes. Smalltalk can be restarted from scratch. First, the images are paired with a serialization of the source code. If you used nothing else you could restore the source in an image via that, it can also be used to produce diffs for distribution. That's not the best way, but it is a viable way.

The better way is tools like Iceberg and its various predecessors (Iceberg is nice because it works with git which has become the industry standard at this point for version control). There, you select down to the individual method what you want to commit and you can push it to other git repos on services like Github.

[go to top]