<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Elad Bogomolny on Medium]]></title>
        <description><![CDATA[Stories by Elad Bogomolny on Medium]]></description>
        <link>https://medium.com/@bogomolnyelad?source=rss-ed368caf53a6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oPU1ZT9TC0jVJ1d_rcGo9A.jpeg</url>
            <title>Stories by Elad Bogomolny on Medium</title>
            <link>https://medium.com/@bogomolnyelad?source=rss-ed368caf53a6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 09:54:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bogomolnyelad/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Getting Started With Common Lisp in 2018]]></title>
            <link>https://medium.com/@bogomolnyelad/getting-started-with-common-lisp-in-2018-3a1b18c9050?source=rss-ed368caf53a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a1b18c9050</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[lisp]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[visual-studio-code]]></category>
            <category><![CDATA[functional-programming]]></category>
            <dc:creator><![CDATA[Elad Bogomolny]]></dc:creator>
            <pubDate>Sun, 15 Apr 2018 18:25:38 GMT</pubDate>
            <atom:updated>2018-04-15T18:25:38.193Z</atom:updated>
            <content:encoded><![CDATA[<p>I have wanted to learn Lisp for a long time. Everything I heard about it made it sound like the kind of language I would use for myself. <a href="https://en.wikipedia.org/wiki/Alan_Kay">Alan Kay</a> says it is “..<em>the greatest single programming language ever designed</em><strong>”, </strong>and he is <a href="http://www.paulgraham.com/quotes.html">not alone</a> thinking that there is something special about it.</p><h4>Why Common Lisp?</h4><p>Part of the magic of Lisp is how extensible it is. It allows you to write code that writes code for you. As a result, there are many Lisp dialects out there, Common Lisp being one of them.</p><p>Since Common Lisp is not widely used today, friends asked me why I chose that and not, say, Clojure, a dialect of Lisp that is rapidly gaining popularity. But my goal was never to learn the dialect that I will most likely use in production.</p><p>My goal is to understand the underlying concepts that make Lisp different; and from the outside it seems like the best books for that purpose were written 20 years ago, using Common Lisp. More on that later.</p><h3>Getting Started</h3><p>The Common Lisp ecosystem is scary to an outsider. The recommended editor is Emacs and unless you are already familiar with it, it is daunting to learn both an alien language and how to use a complex editor at the same time.</p><p>Here is how you can start in 5 minutes with your own code editor:</p><p><em>Note: The following section is for mac users. I am hoping to add a linux/Windows section in the future.</em></p><p>The easiest way to setup your environment is to use <a href="https://github.com/roswell/roswell">roswell</a>.</p><pre>brew install roswell</pre><p>roswell is a “<em>full-stack environment for Common Lisp development</em>”. But for now, all we need is the REPL (Read-Evaluate-Print-Loop).</p><p>As the name suggests, the REPL is a dynamic environment to run Lisp code, and later on load it from a file.</p><p>To launch a REPL:</p><pre>ros run </pre><p>At this point you can start using the REPL to evaluate your Lisp code:</p><pre>&gt; 3<br>3 <br>&gt; (+ 2 3)<br>5</pre><p>To load a file into the REPL use <em>load</em>:</p><pre>&gt; (load &quot;somefile.lisp&quot;)</pre><h4><strong>Where to Learn?</strong></h4><p>Here is what worked for me:</p><ul><li><a href="http://www.gigamonkeys.com/book/">Practical Common Lisp</a> is great for getting you started, especially chapter 3.</li><li>To get a better theoretical grasp of the basics I recommend ANSI Common Lisp by Paul Graham.</li></ul><p>I am not there yet but my next steps and the de facto reason I chose Common Lisp are:</p><ul><li><a href="https://norvig.github.io/paip-lisp/#/?id=paradigms-of-artificial-intelligence-programming">Paradigms of Artificial Intelligence</a></li><li><a href="http://www.paulgraham.com/onlisp.html">On Lisp</a></li></ul><h3>Using Your Own Editor</h3><p>Here is what’s really important:</p><ol><li>Parenthesis matching.</li><li>Having your REPL connected to your code editor to quickly test your code.</li><li>It’s not always obvious where to put parenthesis, even for simple operations like variable assignments and iterations. Learn it once and create a code snippet. Shout-out to <a href="https://pawelgrzybek.github.io/snippet-generator/">Snippet-Generator</a> for making it really easy.</li></ol><h4>VSCode as a case study</h4><p>Here is a how to get a viable IDE with VSCode. I am not claiming it is as good as using Emacs with slime, just that it is good enough to get you started.</p><ul><li>Download the<a href="https://marketplace.visualstudio.com/items?itemName=mattn.Lisp"> lisp-syntax</a> extension.</li><li>Use a parenthesis matching extension. I am currently using Rainbow Brackets.</li><li><a href="https://code.visualstudio.com/docs/editor/integrated-terminal">Launch a terminal inside VSCode</a> and then launch a REPL. use the “Run Selected Text in Active Terminal” from the Command Palette (⇧⌘P) to quickly test your code.</li><li>Create your own snippets. Here is <a href="https://gist.github.com/bogobogo/d7c873ebd1f6c7b02a811251cdc90ce7">a file</a> with some of mine.</li></ul><p>Any suggestions on how to improve this short guide are welcome.</p><p>Happy Lisp coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a1b18c9050" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Test your React Native App Like a Real User]]></title>
            <link>https://medium.com/@bogomolnyelad/how-to-test-your-react-native-app-like-a-real-user-ecfc72e9b6bc?source=rss-ed368caf53a6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecfc72e9b6bc</guid>
            <category><![CDATA[react]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Elad Bogomolny]]></dc:creator>
            <pubDate>Fri, 21 Apr 2017 09:00:00 GMT</pubDate>
            <atom:updated>2017-04-21T09:02:17.646Z</atom:updated>
            <content:encoded><![CDATA[<p>You have built a new feature for your react native app.</p><p>But just before you launch it, it’s time to run the app on a device to check that everything is working, only to find out later that some old feature has a bug, because nobody has the time to actually go through each feature and test everything manually again and again.</p><p>To solve this problem, Wix has decided to build a cross platform tool that enables you to automatically test apps the same way a user would test it.</p><p>It’s now open source so you can use it too. Also, it looks really cool:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*5t5-tOhOAlyQRzWKQjs_rw.gif" /><figcaption>detox in action</figcaption></figure><h3>Introducing Detox</h3><p><a href="https://github.com/wix/detox">Detox</a> is an end to end testing library for your react native app that enables you to emulate user behavior and test how your app reacts to it, automatically.</p><p>It also supports multiple device configurations, notifications, permissions and basically everything a user might do with your app.</p><p>Want to judge for yourself? Here is a short guide that will help you with getting started:</p><h3>How to Use Detox with a Basic React Native App</h3><h4>Installation:</h4><p>Follow this video:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FoPPCYZBefvM%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DoPPCYZBefvM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FoPPCYZBefvM%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/378424a276e6aa7e454323fb0bcb6b2b/href">https://medium.com/media/378424a276e6aa7e454323fb0bcb6b2b/href</a></iframe><p>Or the installation steps in <a href="https://github.com/wix/detox#getting-started">the docs</a>.</p><p>At the end of this step you should have an e2e folder with a failing test suite.</p><h4>Getting Started:</h4><p>Lets take a look at our first test suite and break it down:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/aacaca976931ed06d5aadfeced3f6a63/href">https://medium.com/media/aacaca976931ed06d5aadfeced3f6a63/href</a></iframe><ul><li>The beforeEach hook tells detox to reload the react native app before every test in our test suite using thedevice.reloadReactNative() function:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/36bed9790bc918942194751226c30fc8/href">https://medium.com/media/36bed9790bc918942194751226c30fc8/href</a></iframe><ul><li>Our first test, <em>should have welcome screen,</em> looks for an element with a <em>welcome</em> id using theelement(by.id(...)) <em>Matcher </em>and checks if it is visible with the expect(….).toBeVisible() <em>Assertion:</em></li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/72851131fe75c7e3f543c7774032d533/href">https://medium.com/media/72851131fe75c7e3f543c7774032d533/href</a></iframe><p>To make this test pass add a welcome id to a view on your first screen with the <strong>testID</strong> property and run detox test. You should see one passing test and two failing tests:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1c275b44b5bd6f46914c16c1c43541db/href">https://medium.com/media/1c275b44b5bd6f46914c16c1c43541db/href</a></iframe><ul><li>Our second test, <em>should show hello screen after tap, </em>has two parts:</li></ul><ol><li>First, it looks for an element with a <em>hello_button</em> id and performs the tap <em>action</em> on that element.</li><li>It then checks if an element with the text ‘Hello!!!’ is visible using the by.label() <em>matcher</em> and the expect(….).toBeVisible() <em>assertion:</em></li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1595fd5d820a86ef1f52781d6fae0bd1/href">https://medium.com/media/1595fd5d820a86ef1f52781d6fae0bd1/href</a></iframe><ul><li>Our third test has the same functionality, except it taps on a different button and expects a different text to be visible:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5cc6816d30da719af3e58aec542cdd91/href">https://medium.com/media/5cc6816d30da719af3e58aec542cdd91/href</a></iframe><p>To make these tests pass we will add two buttons to our main view that render a view with either an ‘Hello!!!’ or ‘World!!!’ text:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cecd6f7c334c947f893b0a5c48de6f8e/href">https://medium.com/media/cecd6f7c334c947f893b0a5c48de6f8e/href</a></iframe><p>You can find the code of this demo app <a href="https://github.com/wix/detox/tree/master/examples/demo-react-native">here</a>.</p><h4>Write your own tests!</h4><p>Detox has a wide variety of Matchers, Actions and Assertions to</p><p>Access elements in your app:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fb91b67dda181b76bd605ec5b9e7645b/href">https://medium.com/media/fb91b67dda181b76bd605ec5b9e7645b/href</a></iframe><p>Perform Actions:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0399e283c59f24fbbe6db5eb243d7618/href">https://medium.com/media/0399e283c59f24fbbe6db5eb243d7618/href</a></iframe><p>And test how your app behaves:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/63394e9831af6253e0c3b2529e00ec65/href">https://medium.com/media/63394e9831af6253e0c3b2529e00ec65/href</a></iframe><p>So go ahead and build your own tests!</p><p><em>To find out more about advanced topics and how to use detox check out the </em><a href="https://github.com/wix/detox"><em>docs</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecfc72e9b6bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>