3 ms·
The way you model systems in ST, with objects and messages being passed between them, matches some physical models very closely.
by rbanffy 4y ago
The way you model systems in ST, with objects and messages being passed between them, matches some physical models very closely.
- nickd2001 4y agoThis. And also Smalltalk is so succinct and has simple syntax, that one can "see the wood for the trees" when dealing with an inherently complex data model. I am unfraid for example of a long multi-pronged inheritance hierarchy of classes in Smalltalk, as its still reasonably easy to see what's going on, and there isn't a huge amount of code, whereas in other languages that'd be a nightmare. Java is notorious for that but actually that'd be bad in Python too
- rbanffy 4y ago> Smalltalk is so succinct and has simple syntax There is an interesting aspect in there - the simpler and easier to do complicated stuff, the higher the odds of NIH syndrome: while nobody would try to reinvent the wheel in Java or C#, I've been tempted to reinvent partial wheels for my very own needs that squeak and wobble in very specific ways in such languages, just because it's so easy. It's something in the same line as seeing traditional design patterns just vanish when the language syntax has features that make their implementation trivial. You may need a library for, say, observers in C++, but they are so easy to implement in Python or Smalltalk that you'd feel no need to use something pre-built for that.
- cutler 4y agoHow is that different from Ruby or Elixir?
- Jtsummers 4y agoRuby's object model is based on Smalltalk's so I wouldn't expect much of a difference. And Elixir, courtesy of Erlang, has a "model the world through communicating processes" model which strongly mirrors the Smalltalk model. So developing a program in each of these languages can be, though doesn't have to be, very similar in style. With a focus on communicating entities (be they processes or objects) allowing them to manage their own state over time in response to messages from other entities.
- cutler 4y agoSo Smalltalk doesn't really offer much for all the sacrifices you make by adopting it.
- rbanffy 4y agoAs with any real-world technology, it all depends on what you want to sacrifice.
- deleted 4y ago[deleted]
- coldtea 4y agoIt does, as neither Elixir nor Ruby (Ruby even less) give the same developer experience. Elixir/Erlang has the messaging idea too, and Ruby has some of that model, but there's nowhere clear to how Smalltalk implements it, working withing the image/IDE, the introspection capabilities and so on...