<?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 Fiore on Medium]]></title>
        <description><![CDATA[Stories by Fiore on Medium]]></description>
        <link>https://medium.com/@fiore42?source=rss-6da27be019ee------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*S1xb0q4Qiay_2MuQDAX_Hw.png</url>
            <title>Stories by Fiore on Medium</title>
            <link>https://medium.com/@fiore42?source=rss-6da27be019ee------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 20:41:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fiore42/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[From zero to reinforcement learning (RL) with gpt4]]></title>
            <link>https://fiore42.medium.com/from-zero-to-reinforcement-learning-rl-with-gpt4-2977405a0223?source=rss-6da27be019ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/2977405a0223</guid>
            <category><![CDATA[pytorch]]></category>
            <category><![CDATA[q-table]]></category>
            <category><![CDATA[reinforcement-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[prisoners-dilemma]]></category>
            <dc:creator><![CDATA[Fiore]]></dc:creator>
            <pubDate>Sat, 27 Jan 2024 19:09:13 GMT</pubDate>
            <atom:updated>2024-01-29T21:43:03.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Prisoner Dilemma: Cooperate or Defect?" src="https://cdn-images-1.medium.com/max/1024/1*HICwVGkLceXVXgTJRmHfdw.png" /><figcaption>Prisoner Dilemma: Cooperate or Defect?</figcaption></figure><p>I enjoyed sharing a story of my learning curve, but if you prefer to go directly to the learnings about coding a reinforcement learning strategy for the Iterative Prisoner’s Dilemma, jump <a href="#7c7f">here</a>.</p><h3>The Good (Simple, Non-ML Code)</h3><p>During the holidays I watched <a href="https://www.youtube.com/watch?v=mScpHTIi-kM">this video</a> by Veritasium about the prisoner dilemma. It’s one of the most famous games in game theory. Two players face each other and they can either cooperate or defect. If both cooperate, they gain 3 points each. If they both defect, they gain 1 point each. If one defects and the other cooperates, the defector gets 5 points and the coop gets 0 points. The video gives a lot more context, so I won’t repeat it here.</p><p>After watching the video, I decided it could have been an interesting code project (similar to my iOS calculator last year) to build a prisoner dilemma arena with gpt4. Without asking gpt4 what would have been the right platform (big mistake!), I started coding it with javascript. I guess I was thinking of maybe hosting it online and javascript came first to mind. It was very quick and simple to build and not that eventful, and I played with my iterative prisoner dilemma arena for an hour or so.</p><h3>The Bad (The RL Agent Saga)</h3><p>But then a thought popped into my head (cue <a href="https://www.youtube.com/watch?v=mcBO0ctbmgs&amp;t=14s">Jaws theme</a>): this seemed the perfect environment to learn how to build a simple RL (reinforcement learning) agent. <em>How hard can it be? </em>Again, without asking first for the right platform, I asked gpt4 to help me build an RL agent (from now on, just agent) with tensorflow. It was really painful. Tensorflow fails in very sneaky ways. Since I know the huge performance difference that GPUs have compared to CPUs when it comes to ML training (thanks to <a href="https://www.acquired.fm/episodes/nvidia-the-dawn-of-the-ai-era">this great Acquired podcast</a>), initially I thought my CPU was simply not capable to train the model fast enough (it’s ridiculous, but I never trained a model before!) Turns out, I was simply coding the input wrong, but tensorflow was accepting my “almost ok” input without complains. The first learning was that <strong>gpt4 was great at guiding me through the non-ML part of my project, but was utterly incapable of helping me debug the ML-related code</strong>. A big part I think was that due to my limited but useful understanding of classical programming, I was able to review and call out gpt4 mistakes in the non-ML code, while I was entirely clueless when it came to tensorflow so I couldn’t “code-review” gpt4.</p><p>I started asking around and got introduced to a couple of really interesting whatsapp groups of ML enthusiasts but it didn’t help me fix my code (since mine was an implementation error, impossible to debug without an in-depth analysis of the code). Eventually I fixed my code (meaning that the training cycles [epochs] were happening), but the results were absolutely not what I expected. I was using DQN (Deep Q Network) technique but the moves suggested by the model never made my agent competitive. It was sometimes winning but most of the time my agent would lose badly against a random selection of other deterministic strategies. But I learned a lot, and asked myself questions I would have not otherwise tought about: how long should my history be? i.e. how many previous game “hands” should I look at? Should I encode my state by grouping all my moves and then all the opponent move? Or alternating them? Should the last move go at the start of the state (new to old) or at the end (old to new)? Should I reset the model after each game or keep it running? How many hidden layers?</p><h3>The Ugly (Trial, Error, and Revelation)</h3><p>gpt4 failed miserably here also. For each of these questions its answer simply boiled down to “it depends”, without really explaining a way to find an answer in my particular scenario. I’ll try to answer these questions at the bottom of this article based on my current understanding.</p><p>After a few more hours wasted in javascript and tensorflow, I bit the bullet and did what everyone I spoke with suggested: switched to python and pytorch. The deterministic part of the code was again very painless with the help of gpt4. My arena with few deterministic strategies was up and running in 1–2 hours or so. Then, I tried to reimplement the DQN agent using PyTorch. What I learned is that PyTorch was a lot more vocal about wrong code, and so it took longer to get the code to run, but when it did, it didn’t fail silently like tensorflow did, so I was happy with my choice. But the results were the same. My agent was not at all winning. It was not doing much better than a strategy which select its behaviour completely randomly. So, once again with my back against the wall, I had to take the most dreadful decision, but also the only one left: studying a bit of theory.</p><p>I turned to youtube, but it didn’t really work cause the video on reinforcement learning with PyTorch with most views was 2 years old and in the meanwhile JupyterLab changed a bit and so on top of struggling to understand the code, I was struggling to find a way to adapt it to run in JupyterLab. I tried to switch to Google Colab and soon after I gave up that route.</p><p>Finally, a bit of joy came from reading <a href="https://towardsdatascience.com/a-practitioners-guide-to-reinforcement-learning-1f1e249f8fa5">this article</a> from towardsdatascience. It explained very clearly the concept of q_table. I understood clearly what states are and what they represent, and what was the impact of changing the length of my history. I scrapped my previous reinforcement_learning.py DQN module and started over with a much simpler “plain” q_table approach. Note that q_table is a reinforcement learning tecnique so simple that it doesn’t require any ML library (so no PyTorch was harmed in the making of this software). After I implemented the simpler q_table approach, I finally got some results, and since I finally understood what I was doing, I could tweak the approach to better serve its purpose. I’ll now share a few mild intuitions in the hope that they could help other people who, like me, would like to dip their feet into ML.</p><h3>Learnings</h3><p>This reinforcement learning technique is based on a data structure called q_table. This data structure is made of states (see later), and for each state it encodes the list of possible decisions, with respective weights. These weights are constantly updated based on the reward gained by the agent. So if the agent acts in a certain way and loses, the weight will reflect that. If the agents wins, the weight will reflect that. In subsequent hands, the agent will stop guessing and keep repeating the move which proved successful earlier on.</p><p>Each “state” represents a game state, based on the history (how many game hands) you decided to analyse. To understand pros and cons of long vs short history, you need to understand that a state must represent a “full blown” scenario. Imagine you decide to test a RL model which keeps track of 2 previous hands. This means that you will have the following possible states:</p><pre>01: CCCC<br>02: CCCD<br>03: CCDC<br>04: CCDD<br>05: CDCC<br>06: CDCD<br>07: CDDC<br>08: CDDD<br>09: DCCC<br>10: DCCD<br>11: DCDC<br>12: DCDD<br>13: DDCC<br>14: DDCD<br>15: DDDC<br>16: DDDD</pre><p>It also means that this model will not be able to distinguish these two states: DDCCCC and DCCCCC, since the last two hands are the same: CCCC.</p><p>Let’s assume we encode our hands old to new and alternate with my move before my opponent’s move. This means that state number 5 (from the table above) encodes the following scenario: in the last hand both players played C and in the previous hand I played C and my opponent D (so CDCC).</p><p>To generalise, given H = how many hands you want to “remember”, you will have 2^(H*2) states, or 2 (the number of possible decisions: Defect or Cooperate) to the power of the many decisions given your history length H. When H is 2, since we keep track of the decision of both players, the exponent becomes 4.</p><p>If H = 2, how do you code your state after (let’s say) 5 hands? The entire game state might be something like CCDCCDDDDC (or any string of 10 characters). Well, simple: you “forget” (or delete) the first 3 hands, and you’re left with DDDC (the most recent two hands assuming you code old to new and alternate). But what do you do when it’s the first hand (and so your history is empty) or the second hand? You need to normalise your state, and you do that with padding (i.e. completing the empty spaces with something).</p><p>Here is where a good understanding of the specific game you are solving (in my case, prisoner dilemma) starts to become relevant. What are the possible decisions when it comes to padding?</p><ul><li>Generate the padding by repeating C, as many times as needed</li><li>Generate the padding by repeating D, as many times as needed</li><li>Generate the padding with a mix of C and D</li><li>Generate the padding with a new character to not mix the state of 1st and 2nd game hand with any other “ongoing state”</li></ul><p>As gpt4 would certainly tell you, the answer is “it depends”. And it would be right, in general. But by looking closely at the game of prisoner dilemma (and this is the first insight into ML), you realise a special characteristic of the game: other than a consistent ongoing game where each hand is DC (Defect, Cooperate) in which you get 5 points each hand and your opponent always gets zero points, the 2nd best scenario that makes you get the most point) is a consistent CC in which both opponents get 3 points each. But the only way to attain DCDCDCDC consistently, is to face the ALLC (always Cooperate) strategy, the only true <em>gullible</em> strategy that doesn’t fight back when being exploited. Every other decent strategy would not let you “exploit” it so badly. There is NO other “common” strategy that would lead to a consistent DCDCDC game. But there are a lot of strategies that you can face and attain a CCCCCC scenario. TFT (tit for tat), grudger (play always D if the opponent plays D even once), ALLC (always Cooperate), Win-Stay Lose-Shift, and many others.</p><p>(As a skippable paragraph, I want to note that this is NOT a coincidence. By reading white papers like <a href="https://dash.harvard.edu/bitstream/handle/1/3200671/fudenberg_titfortat.pdf">this one</a>, it’s clear that a requirement of a prisoner dilemma point system is that <em>R &gt; (T + S)/2</em> meaning that the sum of the rewards of a DC (or CD) hand MUST be smaller than the sum of the rewards of a CC hand. In the most common point system, CC is rewarded with (3,3) while CD is rewarded with (0,5). In this case 2*3&gt;5, which makes it a valid point system. Or, by reading this another way, over 2 hands, you gain more point by playing CCCC (6 points each), than by playing DCCD (5 points each). <strong>Since most strategies don’t let you exploit them, the result is that your goal should be to find a CC equilibrium whenever possible.</strong>)</p><p><strong>So, since CCCCCC in inherently the only positive equilibrium, I tweaked all aspects of my RL agent to be mindful of this.</strong> When implementing a q-table agent, it’s standard practice to apply something called an epsilon-greedy approach. This means that with a certain frequency determined by a certain value (I decided to start with 1, meaning always, and I quickly reduce to 0.01, meaning 1%) we let the code explore a random behaviour and not what the q_table would otherwise suggest (see the code snippet below). The idea is very useful to explore “the world” around and “stumble” upon possible more rewarding scenarios. In the case of the prisoner dilemma, I tweaked that to reply always C unless the opponent had previously used D at least once. I call this “don’t poke the bear” approach. Pushing the strategy to Defect might lead to a huge positive windfall when I’m facing ALLC with a constant DCDC game (5 points for each hand, every single hand), but it could also cage me in a constant DDDD game if I’m facing grudger, or lead me into an overall lower final score if I’m facing TFT (with a DCCDDCCDDC alternate game). <strong>By saying “only really play random and explore the other strategy if the opponent played D at least once”, I preclude myself the chance to learn that I can exploit ALLC, but I guarantee a perfect game with many other strategies I can encounter.</strong></p><pre>    if random.random() &lt; epsilon:<br>        if len(opponentHistory) == 0 or &#39;D&#39; not in opponentHistory:<br>            nextAction = &#39;C&#39;<br>            if very_verbose: print (f&quot;No reason to attack first - random action: {nextAction}&quot;)<br>        else:<br>            nextAction = random.choice([&#39;C&#39;, &#39;D&#39;])<br>            if very_verbose: print (f&quot;epsilon: {epsilon} random action: {nextAction}&quot;)<br>            # Update epsilon<br>            if epsilon &gt; min_epsilon:<br>                epsilon = max(min_epsilon, epsilon / 2)</pre><p>The other mild intuition I reached, was related to a property of the key formula of reinforcement learning with q-table:</p><pre>alpha = 0.1<br>gamma = 0.9<br><br>        q_table[state][action] = (1-alpha)*q_table[state][action] + alpha*(reward + gamma*max(q_table[next_state].values()))</pre><p>This is the default way to update the q_table while playing, based on the outcome of the choice made in that state (reward). When I was playing the tournament using the “real” rewards (0, 1, 3, or 5 respectively for CD, DD, CC, DC), I notice that my strategy allowed ALLD (always Defect) to entirely exploit it, reaching after 1,000 hands zero points vs 5,000 points for ALLD. My agent would fail to find the right answer, which would be to always play D and end up with 1,000 points each (1 point per hand). After a bit of staring (and the usual zero help from gpt4), I realised that the formula above means that a reward of zero doesn’t change the value of <em>q_table[state][action]</em> since the q_table is initialised with all zeroes and after update <em>q_table[state][action]</em> would still be zero. So I re-coded the reward to -1 (only for the purpose of training the model, not for counting points) and suddenly the q-table started doing its magic and protected my RL strategy from being exploited by ALLD. This is again another example of tweaking the generic approach to the specific needs of the game.</p><pre>    if myReward == 0:<br>        # because 0 is the same value of initialization for q_table,<br>        # let&#39;s try to mark the difference with 0, <br>        # which is the worst result in prisoner dilemma<br>        myReward = -1 </pre><p>Finally, few answers to questions I was asking myself early on in this project:</p><p>Should I code the game state old hand to new hand? Should I group all my moves together and then all opponent moves? My conclusion is that, at least for the prisoner dilemma, it absolutely doesn’t matter. As long as you code each game state correctly and with the same logic when you ask the model to make_decision and when you call train_model, it’s irrelevant. If I encode new to old, a state might be coded CCDD, and with old to new of course it would be coded DDCC, and if I group moves it might be CDCD (new to old) or DCDC (old to new). But it doesn’t really impact the performance of your RL model. You simply need to make sure that the model can update the right state and take the right decision based on the previous learnings.</p><p>Different story when it comes to history. H has certainly an impact. When H gets big (e.g. when H = 10, there are 2²⁰ [1,048,576] distinct states), the code becomes incredibly slow due to the the size of q_table. So slow that it’s impossible to test quickly. A single tournament lasts several minutes. And, more importantly, it’s necessary that your game is long enough to train the agent. Imagine if each game would last 1,000 hands, and the q_table would track over 1 million states. In theory, it’s almost guaranteed that every time your code “asks” the q_table for guidance, the q_table would still have the same values of initialisation. In contrast, if the game played has 1,000 hands and the q_table had 16 (H = 2) or 64 (H = 3) states, it’s safe to assume that quickly the q_table would learn and start “exploit” what it had learned.</p><p>A short history means the table is updated a lot more often so immediately your agent starts acting based on its training. But on the other hand, a short history would fail pray of a very sneaky opponent strategy which play well for H+1 hands and then exploit the opponent.</p><p>I should run tens of thousands of tournaments to try to determine the ideal H, since the 8 strategies facing my agent would also impact the result. This, incidentally, it’s also why I managed to train a better than average RL model, but now a clear winner. Deterministic strategies, when successful, start winning immediately. Don’t need time to learn. And time translate into lost points. My agent now wins often in a tournament, and never loses by more than 15% compared to the overall winner. But I couldn’t build an ML strategy that was able to dominate my tournaments.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Wdt39JiPeFrskJwJU2QYMQ.png" /><figcaption>An example output of my Prisoner Dilemma tournament</figcaption></figure><p>Should the q_table (aka what we learn) be re-initialised for each new game? This was another key question that I couldn’t answer when I played with tensorflow and PyTorch without knowing what I was doing. But it’s obvious now. A q_table represents a map to navigate and exploit a specific opponent. When facing ALLD, the right q_table will suggest me to play D in any given state. When facing tit-for-tat, grudger, the right q_table should suggest me to play C every time. Ideally, when playing ALLC, the best q_table should suggest me to play D all the time, but I haven’t found a way to explore such q_table without “poking the bear” and losing a lot of points against e.g. grudger and tit-for-tat.</p><p>Different it would be if the tournament would allow e.g. more than 1 <em>consecutive</em> game with the same opponent. Then you would have the luxury to fully explore your opponent and then exploit it fully in the subsequent game. I wouldn’t be so sure if I could win the overall tournament if each strategy would face each other only twice. But if a strategy would face each opponent e.g 5 times in a row, it’s clear that it would really pay off to explore as much as possible in the “get-to-know-you round” and then fully exploit the opponent in all the subsequent rounds.</p><p>And this is all I have to share on this topic. It was fun and I learned a lot. If you read so far, thank you and feel free to <a href="https://www.linkedin.com/in/alfonsofiore/">reach out</a> for any question.</p><p>You can also clone <a href="https://github.com/fiore42/Prisoner-Dilemma-q_table-Python">the git repository</a> and play around.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2977405a0223" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My iOS calculator with GPT3]]></title>
            <link>https://fiore42.medium.com/my-ios-calculator-with-gpt3-2a2f3efb0dc0?source=rss-6da27be019ee------2</link>
            <guid isPermaLink="false">https://medium.com/p/2a2f3efb0dc0</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[creativity]]></category>
            <category><![CDATA[inspiration]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Fiore]]></dc:creator>
            <pubDate>Thu, 15 Dec 2022 06:04:28 GMT</pubDate>
            <atom:updated>2022-12-19T09:21:54.487Z</atom:updated>
            <content:encoded><![CDATA[<p>I wrote my first app with GPT3 and these are some of my notes and my takeaways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*1FIxHY4fsZLJcwN1R5PfMA.png" /><figcaption>My calculator</figcaption></figure><p>I always wanted to try GPT3. I bookmarked a YouTube tutorial to try GPT3 with Python. And sure enough I never started it. (If only I could learn from bookmarks!!)</p><p>Then chat GPT was launched. Like million others I couldn’t get enough. After some interesting and some stupid questions, I decided to try programming. I saw on Reddit that GPT3 can churn out working code in multiple languages.</p><p>I always wanted to write a small app.</p><p>So I took the opportunity of some downtime between interviews (I’m looking for a new job!) and asked GPT: “what do I need to do to write a calculator for iOS”?</p><p>Boy, was I blown away!!!</p><p>I decided to write this article to share my experience and my learnings.</p><h3>Structure drives behaviour</h3><p>If you ever spoke with me about work for more than 5 minutes, you probably heard me saying that “structure drives behaviour”. When you start seeing the world this way, there is no way back. If you are old enough to understand this analogy, it’s like that guy who could see the people walking when looking at the green screen in the matrix.</p><p>GPT was always so powerful, and I was always attracted to it when reading r/GPT3 but yet the barrier to entry was still too great for me. The moment the barrier was reduced (structure) I started using the platform (behaviour).</p><h3>What can GPT3 do and what it cannot (or I didn’t know how to ask!)</h3><p>It’s important to understand that without GPT3 my app would have never been completed, but my logic and rudimentary experience in programming was also absolutely necessary to complete the project. I am just trying to give you realistic expectations. If someone knows nothing about software development and never wrote a line of code, I’m worried it might be hard to pull off. All in all, GPT was essential to laid out the skeleton of the code and the UI. Without any knowledge of Swift it would have taken likely hours to get something going. GPT3 made it possible for the basic UI to be visible and working within minutes. This significantly reduced the level of frustration, put the project within reach and made in orders of magnitude more likely for me to complete it.</p><p>It is also great at answering tedious questions in a way that is very tailored to my specific case. Instead of the traditional “Google programming”, where you type a question when you get stuck and then try to apply the stackexchange (or your fav dev forum) answer to your case, with GPT3 you can paste your code and ask the AI why you get this particular error code or how can you make the background colour of the button change when you click that button (r/oddlyspecific) and it replies with the code that achieves that objective (or close enough) 🤯 – it really is mind-blowing. I can see this tool replacing Google for many use cases.</p><h3>It’s way too exciting!</h3><p>This section and the the rest of this article don’t relate much to GPT3. They focus more on my personal experience during the project. I relived my uni days when I literally couldn’t go to sleep until I figured out a certain problem. One night I was up till 3am refactoring the code to figure out a sneaky edge case. I wonder (and if you’re reading this, pls share your experiences) how full time developers handle this. Is it normal to get so excited to solve a problem? Is it easy to unplug at the end of the day when it’s not “your” project or do you keep thinking about it? As soon as I had 10 minutes I was on Xcode coding and debugging.</p><h3>Scope creep is real!</h3><p>I didn’t start with an MVP (bad PM!) I had the same UI that you see in the screenshot since the beginning and I kept adding stuff without thinking of the risks. As a product manager, it’s great to see first hand how true it is that test cases grow exponentially. E.g. I wanted an operator (*, /, +, -) button to change colour when pressed. What I thought would be very easy to do, took me few hours due to edge cases I didn’t foresee. GPT suggested to use a Boolean and toggle() to switch colour. The result was the if I typed 3x3x4 the colour changed the first time I pressed X and then went back to normal the second time! I think this will give me more perspective when trying to nail an MVP.</p><p>I still think on new features I want to add! I’ll change font so that you can use the calculator to write stupid “words”. If you’ve used digital stand alone calculators long time ago you understand what I mean.</p><h3>Edge cases and QA</h3><p>This project renewed my admiration for software engineers and QA engineers. The first hurdle when developing a calculator is that sometimes you need to show a string on the screen which is not a “proper” representation of a number. “2&quot;, “2.”, “2.0&quot;, “2.000&quot; are all the same number: “2&quot;. The extra characters are meaningless untill you type another digit between 1 and 9. Nailing that logic took me a few hours and a lot of “2.0.4&quot; shown on the screen 😓</p><p>A superficial QA (“2.01&quot;, works!) would have left a tons of bugs in the code.</p><p>So shout-out to devs and QAs who are passionate about their work and allow us to enjoy bug free apps and websites.</p><h3>Refactoring</h3><p>Even for such a small project at some point I had the need for a non-trivial refactoring. I decided to group a few variable to represent the current state of the calculator. The number, the string currently on screen and 3 more. That became necessary when I couldn’t figure out a nasty bug and I realised that I was doing too many direct changes to these variables breaking the internal coherence of the current state. It gave a small window into the struggles of engineers who need to chase a bug in a code they probably didn’t write, always with less time that they would like.</p><h3>Geeks are geeks</h3><p>I know this project sounds dull to most of you but I also know it sounds exciting to some. I know who among my friends would get excited about playing with GPT3 for software development and the challenges even a simple calculator has. I spent a fun few hours chatting with them. ♥️</p><h3>Apple Developer Program</h3><p>My last thoughts goes to the mind blowing number of apps considering you must pay $100 per year for the privilege to publish an app. What made me sad was realising that you cannot even publish on test-flight without paying. I was hoping to share my app with a few friends, but it might be destined to live as a single unique copy in my own phone! If you have experience please share it. I would need to sell 350 copies if I charge $0.29 to recover the cost. Do you think it’s realistic?</p><p>If you have an idea for another simple basic app that I could tackle in a week, let me know! I’m trying to write a snake game next but I’m worried it will prove too much!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2a2f3efb0dc0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>