Pharo 10
I&#x27;ve been using Pharo professionally for about 1.5 months now, and I&#x27;m beginning to getting the hang of the language, and the culture surrounding it.<p>I&#x27;ll share a couple of thoughts.<p>__General Development&#x2F;Hacking__<p>0. From Pharo 9 and onwards, it runs smooth on an M1 Mac.<p>1. If you&#x27;re interested in developing in Pharo professionally, we&#x27;re hiring [1]!<p>1b. Other ways to learn about Pharo is to come to Smalltalk&#x2F;Pharo conferences. I&#x27;ve been to the Pharo Days in Lille recently and I&#x27;ve learned a lot in those 3 days! Other than the Pharo Days there is ESUG.<p>1c. Check out the Discord channel. People have been really helpful [0].<p>2. A big part of the documentation can be found inside the image. For example, press SHIFT + enter and type &quot;tutorial&quot; or &quot;exercise&quot; and a few will come up. Moreover, when you click on any class, there&#x27;s a &quot;class comment&quot; tab. Some class comments actually have comments and they&#x27;re written out in a quite understandable fashion when they do.<p>3. You can make the following clicks and they do something different:<p>- Click: shows a context menu to showcase a particular window &#x2F; tool<p>- Right click: shows &quot;World Contents&quot;, aka objects about your GUI (I haven&#x27;t used this one yet)<p>- Shift + Option + click: this shows a &quot;halo&quot; around a GUI<p>- Shift + Control + Click: the coolest meta click there is, it shows all objects that are directly related to the pixel you clicked on. If you clicked on a table cell item in a GUI window, you can figure it out via this click. I&#x27;ve used this trick to figure out where to go in order to alter my IDE to my own taste.<p>4. Pharo is one of the few languages I know where you can create like a game or application for which it&#x27;s possible to immediately see the source code and interact with it. The use-case this allows for is highly hackable open-source applications. For example, here&#x27;s a game that allows you to design chips [2]. It&#x27;s easy to see how you could alter levels yourself quite easily, just start editing the code! IMO, that&#x27;s next level open-source.<p>5. If you want to, it&#x27;s relatively easy-ish to inspect the AST and see how it&#x27;s mapped to the VM. Be careful of setting breakpoints here, you&#x27;ll crash your image :P<p>6. A Smalltalker told me that Pharo&#x27;s VM enforces everything to be an object but <i>technically</i> not everything is an object, as far as VM implementation goes. If you&#x27;re not hacking on the VM, then you can assume everything is an object.<p>7. Overwriting the #doesNotUnderstand: message can lead to all kinds of fun! I wrote my custom If&#x2F;Elif&#x2F;Else DSL. Smalltalkers will hate me but I found it awesome because it showcases how one could hack a DSL quickly. You can see about it here [3]. Here&#x27;s some example code:<p>```
If _: (someCondition) _: [ &quot;code&quot; ]
Elif _: (anotherCondition) _: [ &quot;more code&quot; ]
Else _: [ &quot;final code&quot; ]
```<p>As you can see, I&#x27;ve hacked the _: to be a separator of some sorts, but what it actually is, is an argument of a message. You can do all kinds of fun stuff with this. See [8].<p>8. When you overwrite #doesNotUnderstand then you can inspect the message and its arguments. So whether you send Object1 a:arg1 veryImportant:arg2 message:arg3, then you can inspect those arguments. In the case above, this means you can also inspect _:arg1 _:arg2 or _:arg1 _:arg2 _:arg3 ... _;argN. In other words, you can deal with variable arguments and it doesn&#x27;t matter what they&#x27;re called. Because of this, it&#x27;s easy to create a simple DSL, if you need another separator, then simply add one. You have a lot of characters at your disposal that are quite unique [4]. I figured that out by using by using point (2) and just looking around in the environment.<p>__Web Development__<p>9. Seaside is capable of live and dynamic updating. MOOCs won&#x27;t tell you this because it requires using Seaside quite differently. In short, the pattern that I see used at my work is by having server-side rendered HTML that has designated blocks as callbacks. So when you send your server-side rendered HTML, those callback blocks will transform itself into a jQuery GET&#x2F;POST request. Pharo writes the jQuery for you. We also use React, but I haven&#x27;t gotten around to it how it&#x27;s used, I&#x27;m fairly sure we don&#x27;t use anything like Redux.<p>10. In terms of testing, it&#x27;s relatively easy to write tests. As with Go, it&#x27;s all included and you&#x27;re ready to test! Also note: if you want to use Selenium tests, you can use Parasol [5], it&#x27;s quite easy to use.<p>11. The following concepts are not explained well, so I&#x27;ll do it: Seaside heavily uses what we&#x27;d call middleware in NodeJS (filters in Seaside). In NodeJS&#x2F;Express we also have a request object that exists during the lifetime of a request. In Seaside this is called a dynamic variable (WADynamicVariable is the class).<p>__Stuff I wrote out in the open__<p>12. I&#x27;ve been working on refactoring i18n in Seaside [6]. I currently find the approach Pharo uses the nicest approach, which is something along the lines of:<p>&#x27;You have some string that needs translation in your web app&#x27; SeasideTranslated<p>When you want to export a catalog file of all the strings you want to translate, then you send exportCatalog new exportCatalog and it will look through the whole image and find every tagged string and export it into a catalog (.pot) file that you can edit with POEdit (a free Mac app [7]).<p>13. I wrote a simple animation that shows the definition of sin and cos [8]. Most of the code is shown in that video, IMO it gives a good enough sense how to use it.<p>__Bottom Line Thoughts__<p>14. I think Pharo is a production-ready language for SaaS apps where you can easily scale by adding instances. I am not sure if it&#x27;d be production-ready for consumer facing web apps with many concurrent users.<p>15. It&#x27;s an amazing language to create desktop applications for.<p>16. The debugger capabilities are awesome and there&#x27;s active research on it. Time travel debugging is currently in its PoC phase (source: Pharo Days).<p>17. It&#x27;s also a good language for live music making (source: Pharo Days where someone demo-ed some live coded acid music).<p>[0] <a href="https:&#x2F;&#x2F;discord.gg&#x2F;QewZMZa" rel="nofollow">https:&#x2F;&#x2F;discord.gg&#x2F;QewZMZa</a><p>[1] We&#x27;re hiring developers able to work in Europe and based in a European time zone. The way we use Pharo is IMO the real deal, it goes far beyond what any MOOC can teach you.<p><a href="https:&#x2F;&#x2F;yesplan.be&#x2F;en&#x2F;vacancy&#x2F;full-stack-software-engineer" rel="nofollow">https:&#x2F;&#x2F;yesplan.be&#x2F;en&#x2F;vacancy&#x2F;full-stack-software-engineer</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;pavel-krivanek&#x2F;PharoChipDesigner" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pavel-krivanek&#x2F;PharoChipDesigner</a><p>[3] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=BUEnRrUZ-Ug" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=BUEnRrUZ-Ug</a><p>[4] ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyzªµºÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ<p>[5] <a href="https:&#x2F;&#x2F;github.com&#x2F;SeasideSt&#x2F;Parasol" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;SeasideSt&#x2F;Parasol</a><p>[6] <a href="https:&#x2F;&#x2F;github.com&#x2F;SeasideSt&#x2F;Seaside&#x2F;tree&#x2F;gettext-fix" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;SeasideSt&#x2F;Seaside&#x2F;tree&#x2F;gettext-fix</a><p>[7] <a href="https:&#x2F;&#x2F;poedit.net&#x2F;features" rel="nofollow">https:&#x2F;&#x2F;poedit.net&#x2F;features</a><p>[8] <a href="https:&#x2F;&#x2F;drive.google.com&#x2F;file&#x2F;d&#x2F;1Z3UwTAj4A2CRo_TXk6JNG-mN9yMamYMj&#x2F;view" rel="nofollow">https:&#x2F;&#x2F;drive.google.com&#x2F;file&#x2F;d&#x2F;1Z3UwTAj4A2CRo_TXk6JNG-mN9yM...</a>