<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Darren Arbon</title>
    <description>The latest articles on DEV Community by Darren Arbon (@darrenarbon).</description>
    <link>https://dev.to/darrenarbon</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F690378%2F572a4f3d-bbf6-4e90-bfcf-6cd5d67b28ed.jpeg</url>
      <title>DEV Community: Darren Arbon</title>
      <link>https://dev.to/darrenarbon</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/darrenarbon"/>
    <language>en</language>
    <item>
      <title>The Road to £1,000,000 - 1 Month in</title>
      <dc:creator>Darren Arbon</dc:creator>
      <pubDate>Fri, 04 Feb 2022 14:47:53 +0000</pubDate>
      <link>https://dev.to/darrenarbon/the-road-to-ps1000000-1-month-in-4eon</link>
      <guid>https://dev.to/darrenarbon/the-road-to-ps1000000-1-month-in-4eon</guid>
      <description>&lt;p&gt;My new years challenge is to experiment with ways of doubling my money each month. The catalyst behind this was hearing that if you start with £1,000 and double it every year, after 10 years you will have £1,000,000 (see earlier blog post for more information)&lt;/p&gt;

&lt;p&gt;This year is all about trying different things, with the 10 year plan kicking off in 2023!! January 2022 I was going to be selling teaching resources from my previous career as a Science teacher. I started the month with £25, with the aim of doubling that. Getting the resources online (with &lt;a href="http://wwww.tes.com"&gt;TES&lt;/a&gt;) cost £0, and over the month of January, I sold £49 worth of resources. January 2022 challenge achieved!!!&lt;/p&gt;

&lt;p&gt;So, what am I going to try in February? Well I am going to keep adding resources to try and increase the revenue from that platform, but I am looking at investing the money from last month to see what that can achieve. I have looked at several &lt;a href="https://www.moneyhelper.org.uk/en/savings/investing/stocks-and-shares-isas"&gt;Stocks and Shares ISA&lt;/a&gt; providers. The returns are not going to double the money, but there is money to be made. I am going to carry on the research, and hopefully start investing later this month!&lt;/p&gt;

</description>
      <category>challenge</category>
      <category>investment</category>
      <category>cryptocurrency</category>
    </item>
    <item>
      <title>New Year Challenge, 2022, The Road To £1,000,000</title>
      <dc:creator>Darren Arbon</dc:creator>
      <pubDate>Sat, 08 Jan 2022 11:59:13 +0000</pubDate>
      <link>https://dev.to/darrenarbon/new-year-challenge-2022-njd</link>
      <guid>https://dev.to/darrenarbon/new-year-challenge-2022-njd</guid>
      <description>&lt;p&gt;I'm not a fan of new years resolutions. You set yourself a target which starts in January, January is cold and dark, you have little money after Christmas. Not really setting yourself up for success. I stopped setting sensible new years resolutions over 20 years ago, but this year I decided to change it into a new year challenge. More like something I want to try to do, but not beat myself up if I don't achieve.&lt;/p&gt;

&lt;p&gt;This years challenge, find ways to double my money. Why? I read a great post somewhere which said that if you start with £1,000 and double its value every year, in ten years you'll have £1,000,000. I'm not planning on getting to the million mark, but it might be fun to have a play and see how far I could go.&lt;/p&gt;

&lt;p&gt;2022 is the testing year. I'm starting with £25 and I'm going to try lots of different ways to double that money which I shall document here. The ultimate aim is to end the year with £1,000, ready to start the ten year, £1,000,000 plan. &lt;/p&gt;

&lt;p&gt;For January I plan to sell my teaching resources. I quit teaching 4 years ago, but have loads of quality resources I could sell. This isn't scalable and won't get me to that million, but should easily double the £25, and with some effort could yield £1,000 a month.&lt;/p&gt;

&lt;p&gt;For the rest of the year, I'll be doing research into stocks, shares, bitcoin and the other crypto currencies, and testing the water with those. I might try setting up an ebay shop.&lt;/p&gt;

&lt;p&gt;I'm quite excited about what could happen, obviously I will probably also lose some money, but as I'm starting with a small amount of money, this will be less scary than it could be, but also a valuable lesson. &lt;/p&gt;

&lt;p&gt;I'll update at the end of the month on how the teaching resources work, and whether I've achieved £25!!&lt;/p&gt;

</description>
      <category>challenge</category>
      <category>cryptocurrency</category>
      <category>investment</category>
    </item>
    <item>
      <title>My First Blog - React, Jest, CircleCI</title>
      <dc:creator>Darren Arbon</dc:creator>
      <pubDate>Mon, 13 Sep 2021 19:08:14 +0000</pubDate>
      <link>https://dev.to/darrenarbon/react-jest-circleci-3409</link>
      <guid>https://dev.to/darrenarbon/react-jest-circleci-3409</guid>
      <description>&lt;p&gt;The React application we were writing started to grow in size, as did the tests. Our repo was hooked up to CircleCI (other CI providers are available) which ran &lt;code&gt;npm test&lt;/code&gt; for us. Things were going well, then all of a sudden, out of nowhere, the tests started failing. This lead us to identify some issues we had with our testing setup which I shall outline here.&lt;/p&gt;

&lt;p&gt;The main reason the tests were failing in CircleCI was the linux boxes they were running on were running out of memory and falling over. The first thing we did was add a new testing call in &lt;code&gt;package.json&lt;/code&gt;, this was &lt;code&gt;test:ci&lt;/code&gt; and was to be run by CircleCI as part of the build process:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"test:ci": "tsc &amp;amp;&amp;amp; react-scripts test --runInBand --logHeapUsage"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;--runInBand&lt;/code&gt; flag forces the tests to run one at a time. This slows the process down considerably so isn't ideal to have running in development (hence the new script which we configured circleCI to run). The &lt;code&gt;--logHeapUsage&lt;/code&gt; flag is solely for debug and allows you to see the memory usage for each test suite, something that would have given us a better idea of the issue straight away.&lt;/p&gt;

&lt;p&gt;There is also an issue with jest (our test provider) and garbage collection. Garbage collection isn't automatically done, so we needed to add this. Initially we changed our &lt;code&gt;test:ci&lt;/code&gt; script in the &lt;code&gt;package.json&lt;/code&gt; file to:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;"tsc &amp;amp;&amp;amp; react-scripts --expose-gc test --logHeapUsage --runInBand"
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;--expose-gc&lt;/code&gt; flag opens up garbage collection from the node process. Secondly we needed to add:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;afterEach(() =&amp;gt; {
  if (global.gc) {
    global.gc();
  }
});
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;to the file that contains your jest setup. Both of these together enables garbage collection, thus reducing the memory used by the complete test suite.&lt;/p&gt;

&lt;p&gt;These fixes solved our problem. CircleCI was now able to run the tests successfully!&lt;/p&gt;

</description>
      <category>react</category>
      <category>javascript</category>
      <category>testing</category>
      <category>circleci</category>
    </item>
  </channel>
</rss>
