<?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: Corey Johnson</title>
    <description>The latest articles on DEV Community by Corey Johnson (@johnson_cor).</description>
    <link>https://dev.to/johnson_cor</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%2F107667%2F509eac74-d9ab-46d5-aaa6-1b41d65c6f03.jpg</url>
      <title>DEV Community: Corey Johnson</title>
      <link>https://dev.to/johnson_cor</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/johnson_cor"/>
    <language>en</language>
    <item>
      <title>Should I learn react before trying to learn Gatsby?</title>
      <dc:creator>Corey Johnson</dc:creator>
      <pubDate>Wed, 09 Oct 2019 03:13:40 +0000</pubDate>
      <link>https://dev.to/johnson_cor/should-i-learn-react-before-trying-to-learn-gatsby-4h0c</link>
      <guid>https://dev.to/johnson_cor/should-i-learn-react-before-trying-to-learn-gatsby-4h0c</guid>
      <description>&lt;p&gt;I'm new-ish on the web development front, haven't done anything in years and even then I was primarily focused on learning fundamentals of html, css, js, jquery and the like. I never really had exposure to some of the front end frameworks that are so popular today.&lt;/p&gt;

&lt;p&gt;I recently started a little side project to build a portfolio page for a family member, and I was going to use Gatsby because it seems like it'd suit the project well. I'm not sure if my inexperience with React is going to bite me in the butt though. &lt;/p&gt;

&lt;p&gt;Almost all of my experience with professional software is with Android development so this is out of my wheelhouse. Would love some insight!&lt;/p&gt;

</description>
      <category>help</category>
      <category>javascript</category>
      <category>react</category>
      <category>webdev</category>
    </item>
    <item>
      <title>How to write tests for a library that requires being run on the browser (like Dexie.js or localforage)? </title>
      <dc:creator>Corey Johnson</dc:creator>
      <pubDate>Fri, 03 May 2019 15:53:40 +0000</pubDate>
      <link>https://dev.to/johnson_cor/how-to-write-tests-for-a-library-that-requires-being-run-on-the-browser-like-dexie-js-or-localforage-48k7</link>
      <guid>https://dev.to/johnson_cor/how-to-write-tests-for-a-library-that-requires-being-run-on-the-browser-like-dexie-js-or-localforage-48k7</guid>
      <description>&lt;p&gt;I've been trying to take a TDD approach to building up a side project using mocha and chai, but I've been hitting a wall lately. I want to use localforage, but I can't seem to write automated tests that run and interact with localforage since it requires being run on a browser. I want to wrap a library and write tests to cover the class that I created. Is there a way to do this? &lt;/p&gt;

</description>
      <category>help</category>
      <category>javascript</category>
      <category>webdev</category>
      <category>testing</category>
    </item>
    <item>
      <title>How do you measure your test coverage?</title>
      <dc:creator>Corey Johnson</dc:creator>
      <pubDate>Tue, 16 Apr 2019 22:13:31 +0000</pubDate>
      <link>https://dev.to/johnson_cor/how-do-you-measure-your-test-coverage-k94</link>
      <guid>https://dev.to/johnson_cor/how-do-you-measure-your-test-coverage-k94</guid>
      <description>&lt;p&gt;In some places and teams I've worked with, I've been asked what % of test coverage we want to shoot for and I've never had a good answer. I personally try to write tests that I think help define or validate a piece of code I work on. &lt;/p&gt;

&lt;p&gt;When I run a code coverage scan in Android Studio, it's usually quite a low percentage. However it seems odd to me that you'd have a test for an immutable model that tests all fields. &lt;/p&gt;

&lt;p&gt;What do you think? How would you measure coverage? &lt;/p&gt;

</description>
      <category>help</category>
      <category>android</category>
      <category>tdd</category>
      <category>testing</category>
    </item>
    <item>
      <title>Recording Your Learning Survey Results</title>
      <dc:creator>Corey Johnson</dc:creator>
      <pubDate>Fri, 29 Mar 2019 22:48:02 +0000</pubDate>
      <link>https://dev.to/johnson_cor/recording-your-learning-survey-results-kjc</link>
      <guid>https://dev.to/johnson_cor/recording-your-learning-survey-results-kjc</guid>
      <description>&lt;p&gt;Hello everyone! As some of you might have seen; I ran a short survey and got about 20 responses. While not a viral survey by any means, I did have a great opportunity to learn a little more about the problem domain I'm looking at. I also learned a little bit about making surveys. &lt;/p&gt;

&lt;h3&gt;
  
  
  Drafting the survey
&lt;/h3&gt;

&lt;p&gt;It helped to have a problem domain I wanted to look at. I'm wanting to build some kind of note app, but I didn't really have a good grasp of what problems existed for current systems. I would say it's important not to guide your survey participants in a specific direction. &lt;/p&gt;

&lt;h3&gt;
  
  
  Realizing I have a bad question in the survey
&lt;/h3&gt;

&lt;p&gt;After about 4 people responded to the survey; I realized that I had a question that was essentially useless. I was worried about breaking the survey link, so I just left the question in there. This probably could have been avoided if I had done a quick survey with a person or two in order to test the usefulness of each question. &lt;/p&gt;

&lt;h3&gt;
  
  
  Deciding the length of time to keep the survey open
&lt;/h3&gt;

&lt;p&gt;I had 11 responses on the first day of the survey, 3 responses on the second, and 7 on the third day. By the 4th day I had no responses and I felt I could see a decent gathering of common information gathered by the survey, so I decided to close it. I had recruited a number of other people to take the survey manually on the 3rd day, which is where the spike came from. &lt;/p&gt;

&lt;h3&gt;
  
  
  Getting participants
&lt;/h3&gt;

&lt;p&gt;Honestly this was the hardest part. I think a majority of participants for the survey were people I recruited through direct communication. I had the idea of going to local coffee shops and asking the manager if I could conduct the survey but I decided a smaller sample set was okay for this purpose. &lt;/p&gt;

&lt;h3&gt;
  
  
  Results
&lt;/h3&gt;

&lt;p&gt;Here are the results, they are by no means comprehensive for a large audience, but it's a starting point if you're curious to explore this problem domain a little further! &lt;/p&gt;




&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--cCUBxeDG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/9tjw2c8e5fexlsqc3atf.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--cCUBxeDG--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/9tjw2c8e5fexlsqc3atf.jpeg" alt="Survey Page 1"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--WFFP_XBB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/uhkga4wpl19nemlqwsrw.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--WFFP_XBB--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/uhkga4wpl19nemlqwsrw.jpeg" alt="Survey Page 2"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--NfWQWpdK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/cdxkm2tf515yvuyqok2b.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--NfWQWpdK--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/cdxkm2tf515yvuyqok2b.jpeg" alt="Survey Page 3"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>research</category>
      <category>learning</category>
      <category>productivity</category>
      <category>beginners</category>
    </item>
    <item>
      <title>How do you record your learning?</title>
      <dc:creator>Corey Johnson</dc:creator>
      <pubDate>Tue, 26 Mar 2019 00:53:29 +0000</pubDate>
      <link>https://dev.to/johnson_cor/how-do-you-record-your-learning-10hh</link>
      <guid>https://dev.to/johnson_cor/how-do-you-record-your-learning-10hh</guid>
      <description>&lt;p&gt;Here are the survey results: &lt;a href="https://dev.to/johnson_cor/recording-your-learning-survey-results-kjc"&gt;https://dev.to/johnson_cor/recording-your-learning-survey-results-kjc&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;I have a problem, and I want to understand if others face the same kinds of issues I do. I've tried bullet journaling, handwritten notes, and building fancy Google Docs.. Yet I always seem to either lose my notes or never look back at them, even if I need to. &lt;/p&gt;

&lt;p&gt;I'd really appreciate anyone willing to take like 5-10 min of their time to fill out the survey, almost everything is optional to fill out :) &lt;/p&gt;

</description>
      <category>career</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>help</category>
    </item>
    <item>
      <title>Organizational Tip for Gradle</title>
      <dc:creator>Corey Johnson</dc:creator>
      <pubDate>Tue, 12 Mar 2019 20:54:31 +0000</pubDate>
      <link>https://dev.to/johnson_cor/organizational-tip-for-gradle-523o</link>
      <guid>https://dev.to/johnson_cor/organizational-tip-for-gradle-523o</guid>
      <description>&lt;p&gt;If you're anything like me, Gradle can be a bit of a mystery at times. I'm trying to better understand it and what kinds of things I can do to make it my own! &lt;/p&gt;

&lt;p&gt;Here's the TL;DR that I included in my post:&lt;/p&gt;

&lt;p&gt;1) Create a libraries.gradle file in your root project folder&lt;/p&gt;

&lt;p&gt;2) In your project-level gradle, write apply from: 'libraries.gradle' above the buildscript block&lt;/p&gt;

&lt;p&gt;3) Declare your dependencies in libraries.gradle, using &lt;code&gt;ext.versions&lt;/code&gt; for the version codes, &lt;code&gt;ext.libraries&lt;/code&gt; for the gradle artifacts, and &lt;code&gt;ext.libPacks&lt;/code&gt; for the implementation groups&lt;/p&gt;

&lt;p&gt;4) To use in your module’s build.gradle file in the dependencies block, all you need to do is write libPack.retrofit or libPack.glide&lt;/p&gt;

&lt;p&gt;A little more longwinded explanation is here: &lt;a href="https://medium.com/@cor.johnson/a-simple-way-to-improve-your-android-build-gradle-files-c7325731b3ea"&gt;https://medium.com/@cor.johnson/a-simple-way-to-improve-your-android-build-gradle-files-c7325731b3ea&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;If anyone has any other awesome tricks they use, I'd love to hear about them!&lt;/p&gt;

</description>
      <category>android</category>
      <category>gradle</category>
      <category>mobiledev</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
