为 Smalltalk 初学者构建应用程序
我是 Smalltalk 技术的新手。我的编程经验是使用 C 和 C++。我想了解smalltalk的设计方法。任何人都可以建议一些用smalltalk开发的简单实时应用程序,它可以帮助像我这样的初学者探索smalltalk的途径。 目前我正在 Pharo 上试验我的 Smalltalk 学习。
I am a newbie to Smalltalk technology. My experience in programming is with C and C++. I would like to understand the design methodology of smalltalk. Could any one suggest some simple real-time apps developed in smalltalk which can help a beginner like me to explore into avenues of smalltalk.
Currently I am experimenting my smalltalk learning on Pharo.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
学习 Smalltalk 的最佳资源之一是使用类浏览器在指尖下几乎无休止地浏览 Smalltalk 图像。几乎整个语言和 IDE 实现都可用于浏览、结束甚至调试。一开始可能会让人不知所措,至少对我来说是这样,但这是值得付出努力的。只是不要指望在几个晚上就能把它全部吃完。如果您真的很好奇,您甚至可以在 Pharo 和 Squeak 中浏览和破解您自己的虚拟机。
至于其他资源,如果你能找到 Kent Beck 的《Smalltalk Design Patterns》,我衷心推荐它。 Stephane Ducase 收集了免费的 Smalltalk 书籍:http://stephane.ducasse.free.fr/FreeBooks .html 。尽管已经有一段时间没有更新了,已故的 David N. Smith Smalltalk 常见问题解答仍然非常出色,它向新来者以及像我这样不太敏锐的常客展示了许多不那么明显的角度。
对于实时应用程序,我不认为有一些像驱动内燃机点火这样的硬核实时应用程序。但是有很多接近实时的应用程序,例如我曾经研究过用Smalltalk编写的证券交易所交易系统,但它恐怕是专有的。至于非常简单的例子,我认为 Seaside 包括 Comet counter demo,我认为 Dolphin Smalltalk 仍然包括聊天示例。
作为结束语,您会发现 Smalltalk 中的所有内容都非常小。从方法到设计。如此之小,以至于您一开始就会想,好吧,一切都很简单明了,但“真正的东西”在哪里?需要时间来接受 Smalltalk 中真正的东西在于那些小东西及其交互。这有点牵强,但 Smalltalk 在某种程度上就像俳句:)
祝你好运并保持小规模!
One of the best resources for learning Smalltalk is almost endless browsing of the Smalltalk image under your finger tips using class browser. Almost whole language and IDE implementation is available for browsing, end even debugging. At the beginning it can be overwhelming, at least it was for me, but it is well worth of effort. Just do not expect to groak it whole in few evenings. And if you are really curious, in Pharo and Squeak you can even browse and hack your own VM.
As for other resources, if you can get hold of "Smalltalk Design Patterns" by Kent Beck, I whole heartily recommend it. Stephane Ducase has compiled collection of free Smalltalk books: http://stephane.ducasse.free.fr/FreeBooks.html . Although not updated for quite some time, late David N. Smith Smalltalk faq is still brilliant in exposing many not so obvious angles to new comers, and also to some less sharp regulars like me.
For real time apps, I do not think there are some hard core real time apps like driving the ignition of combustion engine. But there are many close to real time apps, for instance I have worked on stock exchange trading system written in Smalltalk, but it I am afraid it is proprietary. As for very simple examples, I think Seaside includes Comet counter demo, and I think Dolphin Smalltalk still includes chat example.
As closing remarks, you will find that everything in Smalltalk is, well small. From methods to design. So small that in the first moment you start to wonder ok, everything is simple and obvious but where is the "real stuff"? It takes time to accept that in Smalltalk the real stuff is in that small stuff an its interaction. It is a bit of a stretch but Smalltalk is to extent Haiku like :)
Good luck and keep it small!
我猜 Pharo 目前最广泛用于构建网络应用程序,并作为一个研究平台。查看 Seaside,了解如何使用 Pharo 构建 Web 应用程序。下载 Seaside 的一键图片,然后查看里面的寿司店。
如果您打算构建更传统的 GUI 应用程序,这是可能的。但它正变得越来越小众。 以下是如何部署在 Pharo 中构建的应用。
I'd guess that Pharo is by now most widely used for building web apps, and as a research platform. Check out Seaside, to see how to build web apps with Pharo. Download Seaside's one click image, and look at the Sushi store inside.
If you're intending to build more traditional GUI apps, that's possible. But it's becoming increasingly niche. Here's how to deploy apps built in Pharo.
我最近开始自己使用 Pharo。只需找到您想做的事情(相当简单),然后弄清楚如何使用您可以使用的工具来完成它。例如,我开始在 Form 和 Matrix 类的帮助下渲染分形和动画图像过渡。
您可能还想加入 Pharo 列表服务之一,因为他们对像我们这样的初学者非常友好,而且同样有帮助。
另外:开始阅读 Pharo 实例。并意识到许多 Squeak 文档都转移到了 Pharo 中,因为 Pharo 是从 Squeak 分叉的。 (太糟糕了,Pharo 中还没有复数。)
I recently started using Pharo myself. Just find something you'd like to do, that's reasonably simple, and figure out how to do it with the tools at your disposal. For instance, I started rendering fractals and animating image transitions with the help of (for example) the Form and Matrix classes.
You might also want to join one of the Pharo listservs because they are awfully nice to beginners like ourselves, and just as helpful.
Also: start reading Pharo by Example. And realize that a lot of Squeak documentation carries over into Pharo, because Pharo forked from Squeak. (Too bad they don't have Complex numbers in Pharo yet.)
我建议你自己买一本《Squeak》。虽然“Squeak”是 Smalltalk 的一种方言,但我强烈建议您阅读免费下载的 pdf 书 通过示例吱吱。另一本可能是“爸爸”的书是 Smalltalk 80,又名“蓝色”书”。干杯
I reccomend getting yourself a copy of Squeak. While "Squeak" is a dialect of Smalltalk, I'd highly reccomend going through the free to download pdf book Squeak By Example. One more book which is perhaps the "Daddy" is Smalltalk 80, aka "the Blue Book". CHEERS