<?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 Julia McGeoghan on Medium]]></title>
        <description><![CDATA[Stories by Julia McGeoghan on Medium]]></description>
        <link>https://medium.com/@juliakmdev?source=rss-578b884b8563------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XDBj4xvF-hfILRvObepnkg.jpeg</url>
            <title>Stories by Julia McGeoghan on Medium</title>
            <link>https://medium.com/@juliakmdev?source=rss-578b884b8563------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 17:20:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@juliakmdev/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[The Virtues of Open Source]]></title>
            <link>https://medium.com/@juliakmdev/the-virtues-of-open-source-4cd3e080399d?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/4cd3e080399d</guid>
            <category><![CDATA[schools]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 12 Apr 2019 20:12:19 GMT</pubDate>
            <atom:updated>2019-04-12T20:16:50.221Z</atom:updated>
            <content:encoded><![CDATA[<h3>Motivation</h3><p>I started this school year after finishing an internship, where I was working with a team of developers, writing software, attending stand up meetings, code reviews, etc. Open Source quickly became a non-optional thing for me to participate in, because I realized it was a decent way of keeping up the momentum of that experience while in school.</p><p>One-off assignments don’t seem like a very good reflection of software development itself, they’re just a way of exercising certain concepts. You’re rarely encouraged to keep close attention to best practices or the maintainability of the code in the future. You’re not (usually) getting feedback from piers or learning to work with them to complete something, at least not in a way that’s encouraged.</p><p>Most importantly (to me anyway), you’re only learning to work from information that is spoon fed to you, on something that someone else will almost always have the answer to. You’re not developing the ability to take on totally unfamiliar challenges and adapt through your own research, which was a common demand I faced during my internship. I was scared to lose touch with that, of stagnating.</p><h3>Getting There</h3><p>Before I made a concerted effort to participate in Open Source projects, in my mind a lot of them were enigmatic and a bit off limits, in terms of larger or more popular projects. It seemed too good to be true that I could just jump in and contribute code for popular development tools or even languages. It took a while for me to realize that I was ready and capable of doing so.</p><p>It started small with a contribution to a project called <a href="https://github.com/filerjs/filer">Filer</a>. At that point I wanted to learn how to contribute to something I didn’t myself own. I learned the process of looking through and ‘claiming an issue’, creating a PR for it and working with any possible feedback.</p><figure><img alt="Image result for hacktoberfest" src="https://cdn-images-1.medium.com/proxy/1*OsNbZRAL4XOMRC263dUPaw.png" /></figure><p>From there I participated in an event called <a href="https://hacktoberfest.digitalocean.com/">Hacktoberfest</a>. It was a fun exercise where I learned about a lot of different project types; although it was a bit chaotic because there was a lot of competition to complete PRs. I’m glad I went through it because it was a good primer for future work and I got a decent t-shirt out of it.</p><p>I like to draw and make storyboards, when I have the spare time to at least. So the next project I went to work on was an application I used before called <a href="https://github.com/wonderunit/storyboarder">Storyboarder</a>, which was immediately appealing to me because it was free, and a lot of other storyboarding software most definitely it not. The software itself seems to be <a href="https://blog.hubspot.com/marketing/storyboard-software">gaining traction</a> despite its insanely small development team, probably because people prefer free things, as I do. I thought if I became a regular contributor I could help build something sorely needed, that could really use the extra help, even if it was small bug fixes.</p><p>However Storyboarder was the point where I began to build confidence and realize that I wasn’t stuck to beginner issues or smaller projects. And as soon as I reached that point I got distracted by other things, more ‘monolithic’ projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*YjSxm4V79l4s51tN.png" /></figure><p>I think one of my proudest contributions to date was for Node.js. This is something I never would have imagined contributing to even just a year ago. In fact before 2018 ended I was starting to develop of list of larger projects that I felt similarly about:</p><ul><li><a href="https://github.com/nodejs/node/commit/07a7bf7272e1c460c0ee84547bdc08d579abed8b">Node.js</a></li><li><a href="https://github.com/Microsoft/vscode/pull/65556">VS Code</a></li><li>Firefox</li><li>Mozilla’s Voice-Web</li><li>Typescript (<a href="https://github.com/Microsoft/TypeScript/pull/29250">kind of</a>, learned that I need to research it more before making a PR again though)</li></ul><h3>Conclusion</h3><p>But because I was participating in so many different projects, I wasn’t gaining any real traction in a particular one. It was fun to experiment with different things, but I didn’t like that I was only ever making small fixes and not working in any one community.</p><p>To remedy that I decided to contribute to <a href="https://github.com/Microsoft/fast-dna">fast-dna</a>. As of now I have 6 merged PRs all centered around a particular task/feature, and have become a lot more familiar with the project in general.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/0*1swZG2LyfzyEKE1T.png" /></figure><p>It’s been a great experience because I’ve gotten to work with a team that seems dedicated to a strong development process and code quality, which in turn helps me build good habits when writing code. I’m focusing a lot of my energy this year on Javascript, so getting to work exclusively in it in this case has helped a lot. And having now gotten used to one project, it might open the door to progressively more difficult tasks within it.</p><p>There’s no doubt in my mind that actively contributing to Open Source during this school year was a good idea. It was difficult at times but I’ve gotten a lot out of it. I only wish that I started sooner, did more with it where I could, was bolder earlier in my decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4cd3e080399d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning that Github Pages Struggles with Certain File Names]]></title>
            <link>https://medium.com/@juliakmdev/learning-that-github-pages-struggles-with-certain-file-names-4d867d499ca9?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d867d499ca9</guid>
            <category><![CDATA[jekyll]]></category>
            <category><![CDATA[github-pages]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 05 Apr 2019 16:36:08 GMT</pubDate>
            <atom:updated>2019-04-05T16:36:08.575Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I made a new contribution to a project called fast-dna, which included a build script that generated various pages for their documentation site. However, soon after landing the last bit of the script, a new <a href="https://github.com/Microsoft/fast-dna/issues/1544">bug</a> appeared in the project’s documentation. Routing to certain pages gave a familiar error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/617/1*R67rTBYUo2ee6w2wGm2NQQ.png" /></figure><p>Testing locally, nothing like this every happened; I’d build the site with the script, load it, and could route to ever page generated. What gives? Obviously it looked like there was a problem with how the project was built into production.</p><p>At first I thought the problem was caused by a different file structure in the development and build/production versions of the docsite, since the two are in fact different; however this wasn’t the case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*ecYuWPmBsqZ3q64P.png" /></figure><p>The error was caused by Jekyll, which Github Pages is <a href="https://help.github.com/en/articles/about-github-pages-and-jekyll">deeply integrated with</a>. If you don’t know what Jekyll is, in brief it is a static website generator that uses markup to generate its pages.</p><p>But how did Jekyll cause this issue? It’s pretty simple really; it won’t build some types of files or directories that follow some specific formats , namely files/directories that are:</p><ul><li>used for backup, using ~ , . or #</li><li>used to contain site content, so they start with an underscore(_ )</li><li>are excluded in the site configuration</li></ul><p>The pages I couldn’t route to, surprise surprise, started with _ . So when the docsite was being built these files were being ignored. When running the site locally it wasn’t using Github Pages, which explains why it was working at that moment.</p><p>So at this point the question is; how could an issue like this be fixed? There were literally hundred of these files that had this naming convention, and finding a way to rename them all or change their formatting didn’t seem viable.</p><p>Thankfully there are <a href="https://help.github.com/en/articles/files-that-start-with-an-underscore-are-missing">ways to force jekyll to not ignore these types of files</a>. If a .nojekyll or _config.yml<em> </em>file is included in the root project folder, files that start with underscores can be recognized. So for me a _config.yml file with the following is all that’s really needed in this specific scenario.</p><pre>include:  <br>- &quot;_*_.html&quot;  <br>- &quot;_*_.*.html&quot;</pre><p>The doc site was created with something called Docusaurus. This made me a bit nervous at first because with Docusaurus you don’t have full control over your final build folder, so I wasn’t sure if permanently adding something like this to root was even possible. However, it is in fact do-able if a file is added to the website/pages folder, anything there will get built into the root folder of the final build by default.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d867d499ca9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Continued Open Source Contributions]]></title>
            <link>https://medium.com/@juliakmdev/continued-open-source-contributions-bdfb81e44240?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdfb81e44240</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 15 Mar 2019 18:31:37 GMT</pubDate>
            <atom:updated>2019-03-15T18:31:37.371Z</atom:updated>
            <content:encoded><![CDATA[<p>These recent weeks in Open Source have been an interesting and fun one for me. I’ve learned more about proper project documentation, rebasing, task automation, various Node.js core modules, and making larger Pull Requests to projects. Most of those lessons were related to a couple of contributions in particular, which you can view here:</p><ul><li><a href="https://github.com/Microsoft/fast-dna/pull/1340">chore: update automation process for docusaurus documentation generation by jkmdev · Pull Request #1340 · Microsoft/fast-dna</a></li><li><a href="https://github.com/Microsoft/fast-dna/pull/1481">chore: add script for typedoc docusaurus integration by jkmdev · Pull Request #1481 · Microsoft/fast-dna</a></li></ul><h4>Working with Docusaurus</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/0*lC-3w7NDYaaN7_-E.png" /></figure><p>These recent weeks were my first exposure to <a href="https://docusaurus.io/en/">Docusaurus</a>. Learning about something like this was great because I’m now likely to use it as a solution in the future. It’s a nice, quick way to create a simple documentation site.</p><p>It’s pretty interesting to learn how it works in general. The highest level description of it I can give is that it will take files you store in a certain folder + a couple json files and use these to generate your site for you. I wouldn’t mind learning more about how Docusaurus actually <a href="https://github.com/facebook/docusaurus">goes about doing that</a>, at some point.</p><h4>Node Processes</h4><figure><img alt="Image result for nodejs" src="https://cdn-images-1.medium.com/proxy/1*mr4iRSqGzoCev0HNwR3oiA.png" /></figure><p>I’ve been wanting to get better with Node and my recent Open Source contributions have certainly centered around that a lot! I’ve been writing a lot of different Node-centric blog posts lately, each inspired by said work.</p><p>One thing that I’m a bit caught on is how to better handle spawned processes in Node applications. In the recent script I wrote 30 typedoc processes would be spawned simultaneously….</p><pre>const typedoc = spawn(typedocPath,<br>    [<br>        &#39;--tsconfig&#39;, config,<br>        &#39;--excludeNotExported&#39;,<br>        &#39;--out&#39;, output, file,<br>        &#39;--theme&#39;, &quot;markdown&quot;<br>    ]);</pre><p>…and this would cause the CPU use to reach 100% of its utilization, making the computer itself very laggy and slow! Not only that but the processing itself would take a while. So effectively a developer’s computer could become close to unusable for a minute or two, purely because this script was running….</p><p>I have a hunch there was something I could do to at least alleviate the CPU usage on the computer when something like this is running. I’m definitely going to look into this one more in-depth.</p><h4>What’s Next</h4><p>At this point I’m making smaller fixes or changes to what I wrote. For example, there would be nits in one script I’d notice while writing the other, and instead of addressing them in a technically unrelated PR I saved them for later.</p><p><a href="https://github.com/Microsoft/fast-dna/pull/1546">refactor: update how copy readme script prints output to terminal by jkmdev · Pull Request #1546 · Microsoft/fast-dna</a></p><p>For a while I think I’ll just focus on making smaller, easier bug fixes to this project. I want to learn more about the 30 or so packages/projects included in it, doing so would be a better way of learning about each different one.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdfb81e44240" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Node and Linux Processes]]></title>
            <link>https://medium.com/@juliakmdev/node-and-linux-processes-db84967e6e41?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/db84967e6e41</guid>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 08 Mar 2019 20:23:38 GMT</pubDate>
            <atom:updated>2019-04-27T22:14:46.632Z</atom:updated>
            <content:encoded><![CDATA[<h3>About Node and Linux Processes</h3><p>Lately I’ve been learning more about Linux systems programming, as well as Node.js. As such I’ve learned that the two share some similarities; in general Node seems to borrow a lot from Unix/Linux standards. In this post I will cover one specific similarity; how they handle processes.</p><p>A process is a running instance of a program. In node they are accessed through the process object, which exposes many of the functions and properties of the currently running node process. In Linux, processes can be interacted with by a suite of functions built to do so.</p><h3>POSIX Signal Events</h3><p>Like in Linux, Node has the ability to handle POSIX signal events. POSIX signals are a form of interprocess communication; a signal will be sent asynchronously to another process that signifies some sort of event.</p><p>A common signal is SIGINT , or signal interrupt, it is often triggered when a user presses CTRL-C in the terminal. When handled in a Node script it would look something like:</p><pre>function handle(signal) {<br>  console.log(`Received ${signal}`);<br>}</pre><pre>process.on(&#39;SIGINT&#39;, handle);</pre><p>Where handle is a generalized function that can take any type of signal, not just SIGINT . The last line attaches the handle object to the SIGINT event, or signal.</p><p>When writing this code for Linux processes, it would look very similar. You’d write a function capable of handling a signal, or group of them:</p><pre>static void handler(int sig) {<br> switch(sig) {<br>  case SIGINT: cout &lt;&lt; &quot;Handles SIGINT signal...&quot; &lt;&lt; endl;<br>       break;<br>  case SIGTSTP: cout &lt;&lt; &quot;Handles SIGSTP signal...&quot; &lt;&lt; endl;<br>       break;<br> }<br>}</pre><p>Then use the signal function to attach this handler to a specific signal.</p><pre>sighandler_t error = signal(SIGINT, handler);</pre><h3>Exit Codes</h3><p>In Node when a process terminates it often ends with exit code 0. However in some cases an error might occur, in which case a different exit code will be returned depending on the specific error. While not the same, there is some overlap between exit codes in Linux and Node. In Linux they are:</p><ul><li>1 - Catchall for general errors</li><li>2 - Misuse of shell builtins (according to Bash documentation)</li><li>126 - Command invoked cannot execute</li><li>127 - “command not found”</li><li>128 - Invalid argument to exit</li><li>128+n - Fatal error signal “n”</li><li>130 - Script terminated by Control-C</li><li>255\* - Exit status out of range</li></ul><p>Node exit codes are a lot more varied, for a full list you can find them <a href="https://nodejs.org/api/process.html#process_exit_codes">here</a>. Of those available those similar to the Linux implementation include:</p><ul><li>1 Uncaught Fatal Exception - There was an uncaught exception, and it was not handled by a domain or an uncaughtException event handler.</li><li>2 - Unused (reserved by Bash for builtin misuse)</li><li>&gt;128 Signal Exits - If Node receives a fatal signal such as SIGKILL or SIGHUP, then its exit code will be 128plus the value of the signal code. This is a standard Unix practice, since exit codes are defined to be 7-bit integers, and signal exits set the high-order bit, and then contain the value of the signal code.</li></ul><h3>Forking (Child Processes)</h3><p>Both Linux and Node processes have the ability to fork a parent and run child processes. Creating and using multiple processes in this way can be a great way to better scale an application and make use of it.</p><p>In Node child processes can be created with a variety of functions, but the one of most interest here is a function called fork() . In both Linux and Node this function not only creates a child process, but can also be used to communicate between the parent and child.</p><p>For Node, the parent file would look like the following:</p><pre>const { fork } = require(&#39;child_process&#39;);<br><br>const forked = fork(&#39;child.js&#39;);<br><br>forked.on(&#39;message&#39;, (msg) =&gt; {<br>  console.log(&#39;Message from child&#39;, msg);<br>});<br><br>forked.send({ hello: &#39;world&#39; });</pre><p>And in the child file, child.js:</p><pre>process.on(&#39;message&#39;, (msg) =&gt; {<br>  console.log(&#39;Message from parent:&#39;, msg);<br>});<br><br>let counter = 0;<br><br>setInterval(() =&gt; {<br>  process.send({ counter: counter++ });<br>}, 1000);</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=db84967e6e41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[More Adventures in Open Source]]></title>
            <link>https://medium.com/@juliakmdev/more-adventures-in-open-source-f052d3b084eb?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/f052d3b084eb</guid>
            <category><![CDATA[documentation]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 22 Feb 2019 19:32:02 GMT</pubDate>
            <atom:updated>2019-02-22T19:32:02.462Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/940/0*25oqTEj6ruMVu0le" /></figure><p>This week I continued to honor my resolution to contribute to a singular open source project for the time being (<a href="https://github.com/Microsoft/fast-dna">fast-dna</a>).</p><p>There’s been a lot happening. The <a href="https://github.com/Microsoft/fast-dna/pull/1340">previous script</a> I wrote required some revisions since there have been changes to other parts of the documentation build process, which created some new bugs.</p><p><a href="https://github.com/Microsoft/fast-dna/issues/1392">Bug #1</a>: copy readme script fails if packages folder name is missing</p><p><a href="https://github.com/Microsoft/fast-dna/issues/1394">Bug #2</a>: update title casing for consistency in page and navigation</p><p>The first bug of the two has been fixed. When I made a PR for it initially there was an error caught by the code climate bot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*gO6zsGjbBYAUL0xnFd9Zuw.png" /></figure><p>Two blocks of code were doing the same thing so I went and created a new function to handle both tasks:</p><pre>function createDirectory(dir) {    <br>    if (!fs.existsSync(dir)) {        <br>        dryRun ? console.log(`...CREATE the &#39;${dir}&#39; folder.`) :     fs.mkdirSync(dir);    <br>}}</pre><p>This way every time my script created a new directory there was a function ready to handle it.</p><h4>Trying something new</h4><p>Earlier I volunteered to help fix a bug that dealt with a part of the project I was interested in learning more about, and my progress on that continues.</p><p><a href="https://github.com/Microsoft/fast-dna/issues/1329">Foundation component assumes handled props property on class is available · Issue #1329 · Microsoft/fast-dna</a></p><p>The bug itself wasn’t difficult to replicate and doesn’t seem too difficult to fix:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/795/1*sioA7M4U0phibaSF5LhBzw.png" /></figure><p>Above is the offending code; it looks likethis.handledProps.hasOwnProperty is generating an error since this.handleProps doesn’t exist.</p><p>As it stands I’m learning more about this unhandledProps function and how it works inside the component it’s in. This is because I’m attempting a more test driven approach to this bug, and want to make sure I’m making values correctly. I’m planning on writing a failing test for this error before continuing and fixing it.</p><h4>Writing a new script file</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/218/0*_KHZn4F2QTJkGPlz.png" /><figcaption>The Typedoc logo</figcaption></figure><p>Fast-dna is adding a lot more to their existing documentation, and doing more to automate their documentation generation process. <a href="https://github.com/Microsoft/fast-dna/issues/1382">I volunteered to help write a new script for this</a>, this time dealing with typedoc API generation.</p><p>As it stands, the new document will be linked to in the readme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/0*nlHz6M6T-T40hD3I.png" /><figcaption>API Reference references the Typedoc api page</figcaption></figure><p>This week I learned more about how typedoc worked, as well as finding out how it does so across all packages in fast-dna. Some existing issues that I’ll be looking to do this following week include:</p><ul><li>Finding out how to host the new api docs through github pages</li><li>Finding out how to display the typedoc files in general</li><li>Making sure the build process for these files incorporates well with the existing documentation build process</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f052d3b084eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Debugging a Node dependency in VS Code]]></title>
            <link>https://medium.com/@juliakmdev/debugging-a-node-dependency-in-vs-code-a3232ffab6ec?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/a3232ffab6ec</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[vscode]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[chalk]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 15 Feb 2019 19:53:12 GMT</pubDate>
            <atom:updated>2019-02-15T19:53:12.691Z</atom:updated>
            <content:encoded><![CDATA[<p>There’s an open source project called Chalk that I find to be really interesting. What it does is fairly simple; it stylizes and adds color to terminal output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*NMzGp24W3uSPK7KTlfsbfA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/910/1*VDK5TQXbFxKPkYFs6EZutQ.png" /></figure><p>What I like about it is how it’s structured. The way it builds its API is something I haven’t seen before and I want to learn from it. Also if I learn how it works I could maybe <a href="https://github.com/chalk/chalk/issues/300">contribute to the project</a> in the future.</p><p>I wasn’t sure how to go about it at first though. My first reaction was to simply read through the code on github, but this wasn’t great since I didn’t understand some of what I was reading. Then I considered using console.log statements everywhere, but I knew that wouldn’t be very effective.</p><p>What I needed was to find a way to actually step through lines of code with a debugger. However debugging Chalk wasn’t as simple as opening the project and immediately debugging it; it needed to be used as a dependency in another project, then run from there.</p><p>Turns out the process was fairly simple, for it I:</p><h4>1. Cloned Chalk onto my local machine</h4><pre>git clone <a href="https://github.com/chalk/chalk.git">https://github.com/chalk/chalk.git</a></pre><h4>2. Used npm link to create a symbolic link to Chalk</h4><pre>cd chalk<br>npm link</pre><p>After the linking was successful I saw:</p><pre>/usr/local/lib/node_modules/chalk -&gt; /home/anneandy/Projects/OpenSource/chalk</pre><h4>3. Created a new, simple project</h4><pre>mkdir simpleScript<br>cd simpleScript<br>npm init</pre><p>From here I opened the new simpleScript directory in VS Code, and created a file called index.js.</p><h4>4. Used npm link to establish a connection to chalk</h4><p>If you wanted I could have made changes to my local installation of Chalk, then copied it into the node_modules folder for simpleScript. But I found that using npm link was a far easier approach.</p><pre>npm link chalk</pre><p>After linking the terminal outputted:</p><pre>/home/anneandy/Projects/OpenSource/simpleScript/node_modules/chalk -&gt; /usr/local/lib/node_modules/chalk -&gt; /home/anneandy/Projects/OpenSource/chalk</pre><p>From here when I make changes to my local Chalk version simpleScript will have access to this newer version without me having to copy over files.</p><h4>5. Wrote code that executed/made use of Chalk in some way</h4><p>In simpleScript/index.js, all I needed to write was:</p><pre>const chalk = require(&quot;chalk&quot;);</pre><pre>console.log(chalk.red(&quot;Hello World!&quot;));</pre><h4>6. Added both projects to my workspace in VS Code’s explorer</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*rtwJEJbRVZwQJHYTEXaJ8Q.png" /></figure><p>Having each project accessible in the same workspace made it a lot easier to switch between them during this debugging process.</p><h4>6. Added a breakpoint to the beginning of Chalk’s `index.js` file</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/783/1*76y_iC4qiEkDnyHI2Ik6xw.png" /></figure><p>Chalk doesn’t have a main function that it starts from. From what I could tell the code I was interested in started executing at the beginning of the project’s index.js file, so that’s where I left the breakpoint.</p><h4>7. Clicked inside/focus on my `simpleScript/index.js` file</h4><p>If this wasn’t done and I’d just made changes to Chalk, VS Code would try to build from Chalk and would give an error.</p><h4>8. Ran Dubug &gt; Start Debugging (or hit F5)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/988/1*P_QziF-fQrlLy5eBFac8sg.png" /></figure><p>And that’s that! This is the first part of my two part series about Chalk, thanks for reading. In part two I’ll actually cover how the package works and new things/techniques I learned while studying it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a3232ffab6ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My First Contribution to Fast-Dna]]></title>
            <link>https://medium.com/@juliakmdev/my-first-contribution-to-fast-dna-67fd5df787c?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/67fd5df787c</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 08 Feb 2019 19:47:32 GMT</pubDate>
            <atom:updated>2019-02-08T19:47:32.178Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/870/1*YsC8V8YpxmE7wzTr9blWtQ.png" /></figure><p>Recently I created a Node.js script for a Microsoft component library called <a href="https://github.com/Microsoft/fast-dna">fast-dna</a>. During this I learned a lot, including:</p><ul><li><a href="https://medium.com/jkmdev-walkthroughs/on-writing-platform-independent-node-scripts-2e11552eb674">The importance of writing platform-agnostic code when contributing to open source projects</a></li><li><a href="https://medium.com/jkmdev-walkthroughs/console-log-but-fancier-10fec931c44a">How to better approach terminal output when writing a script file</a></li><li>And much more!</li></ul><p>I’ve already blogged about this piece before, but today will be an overview of what I actually did and how. Next week I’ll focus on something new.</p><h3>What I Made</h3><p>Fast-dna is composed of many different npm packages, where most webapps are one just one package. Each package has its own readme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/607/1*689GMqocj3vUlvCSijDhXQ.png" /></figure><p>Referencing readme files in so many different folders can make things difficult. It’d be easier to store them all in one folder so if they need to be read by a process, this process just needs to traverse a single folder.</p><p>The <a href="https://github.com/Microsoft/fast-dna/blob/master/build/documentation/copy-package-readme.js">script I wrote</a> does just that. It takes the readme files in these packages and copies them to a separate docs folder. From there they can be referenced by fast-dna’s documentation site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*BD0Tj3gjhd7jOemrlELIAw.png" /></figure><p>Before it’s run you’ll see the docs site only includes one option for its many packages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*4WmuJ8t4vO3wWZhLk7zxeg.png" /></figure><p>The new script in run from the root folder, with the npm run docs:build command. The result:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/1*8VoHMAQknx7E6lo0udjL9Q.png" /></figure><p>As the script runs, it will print success/error messages to the terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*W8vEmYMSiHQnCsVI38jF_w.png" /></figure><p>A dry run version of this script can be run. The command npm run docs:dry-run triggers it and outputs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/566/1*J2y4Y7PjfeZneZeRApiMmw.png" /></figure><p>This submission was broken down into two stages/pull requests, since it made it easier for project maintainers to review my changes.</p><h3>PR #1</h3><p>At this stage I’d create a script in the ./build/documentation/copy-package-readme.js folder that copies all the package readme.md files to the ./docs/en/packages/[package-name]/ folder.</p><p>Writing the script that copied the files what fairly straight forward at this point. But as you‘d see in the <a href="https://github.com/Microsoft/fast-dna/pull/1315">PR itself</a> I struggled with cross-platform issues for a bit. Using Node’s path module remedied that.</p><p>During the review process the person that requested the feature mentioned that a dry-run process be incorporated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*QKG0McbRTbj6n76RgJpDgQ.png" /></figure><h3>PR #2</h3><p>At this point the script worked, but wouldn’t be recognized by the separate documentation site fast-dna used to serve its doc pages. To make this happen, at the beginning of each copied readme I needed to add a unique header formatted like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/206/0*ucTRf-coYNalJr8e.png" /></figure><p>Update a JSON file that contolled the side naviagtion for the site:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/0*qpog8-9MAloW9D2O.png" /></figure><p>And finally create npm commands for the regular and dry run versions of the script so they could easily be used by people.</p><p>I had fun working with the files and learning how to manipulate them. It was cool to see how I could read from a JSON file, parse it, manipulate/add to it, then save the file again so it could be used by some other process soon down the line.</p><p>Something I was proud of was that I wasn’t dinged by the repo’s code climate bot for the majority of this process. It’s not like I was writing some massive feature but it kind of felt like a floor-is-lava situation where I just…you know….</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*W1gXJMPGlYQ37JFn.jpg" /></figure><p>However it ended up happening anyways, right at the end of my contribution…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*fgnzmPHJg_lZv0AF8yxsEQ.png" /><figcaption>It’s basically complaining about how one of my functions had too many conditional statements.</figcaption></figure><p>But it was for a good, approved reason, kind of.</p><p>Originally when I wrote the dry run feature I was able to avoid angering the code climate bot by separating all of its logic in its own function, to avoid having too many conditional statements. But then one of the project’s maintainers mentioned that I should have the regular and dry run code paired together in the same places of the code.</p><p>And they were right. When a dev does something as simple as a quick fix, the dry run and regular run could be out of sync. Having them coupled together made this easier to maintain. But, at the same time, this made the code slightly more difficult to read and work with. Was there a way I could potentially preserve the readability of the code without making it difficult to keep these identical processes in sync? Probably.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/0*Khv3QbHwFvfX6wZ7.png" /></figure><p>Earlier in this process it was mentioned to me by one of my professors that the Strategy design pattern might be a good fix for this type of problem. I wanted to try and implement it, but at that point I’d already written a lot of the dry-run’s functionality, and I was hesitant to make use of it. I think I should have known about it from the onset so I could have pitched this strategy before starting any work. This PR highlighted an important gap in my knowledge, I need to have a better working understanding of design patterns so I can avoid this sort of issue in the future.</p><h3>Final Thoughts</h3><p>This contribution had a lot more feedback compared to what I was used to for other projects. This was a good thing, and something I was hoping for, however it meant that it took me longer to complete things than I’d initially have expected. I couldn’t just make a submission and expect it merged, or for me to tweak one or two things then have it accepted. Whatever I made would need to go through multiple iterations.</p><p>I want to write the best code possible; but proper variable names and concise functions are just the tip of the iceberg. Proper abstractions need to be used too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=67fd5df787c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[console.log(), but Fancier]]></title>
            <link>https://medium.com/jkmdev-walkthroughs/console-log-but-fancier-10fec931c44a?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/10fec931c44a</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 01 Feb 2019 15:23:16 GMT</pubDate>
            <atom:updated>2019-02-01T15:23:16.568Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/685/1*pL6_-A_4638KFMNx9b_bHQ.png" /></figure><p>Recently I was writing a Node script for a project called <a href="https://github.com/Microsoft/fast-dna">fast-dna</a>, where messages were printed to the terminal based off the status of the script and what it was doing. However, initially I wasn’t making full use of what console had to offer. Until I got some <a href="https://github.com/Microsoft/fast-dna/pull/1340">feedback</a> from the project’s maintainers, I was creating the same sort of statements for any sort of message without taking advantage of more recent Javascript and Node features. Here I’ll go over what I learned when improving the formatting of these logs, as well as some additional info related to what I learned along the way.</p><h3>String Substitutions</h3><p>Your standard string formatting in Javascript might often look like the following:</p><p>console.log(name + &quot;&#39;s employee id is &quot; + is);</p><p>Another fairly common method:</p><p>console.log(“%s&#39;s employee id is %d”, name, id);</p><p>If you’ve used C this approach will be familiar to you, it uses printf style formatting. It’s a bit cleaner than the first example; you don’t need to separate and concatenate different portions of the string.</p><p>console.log(`${name} employee id is ${id}`);</p><p>An even better approach, using <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals">template literals</a>. This is a feature introduced in ES6, fundamentally enhancing what the Javascript language can do with strings. In addition to cleaner string substition it has expression interpolation.</p><pre>let carrotAmount = 2;<br>let onionAmount = 3;</pre><pre>console.log(`There are ${carrotAmount + onionAmount} veggies`);</pre><pre>// output: There are 5 veggies.</pre><p>and much more!</p><h3>Multi-Line Strings</h3><p>Using template literals for this can make writing multi-line code a lot cleaner. For example instead of:</p><pre>console.log(name + &quot;&#39;s employee id\n&quot; +<br>&quot;is &quot; + id + &quot;\n&quot;);</pre><p>You can do the same thing without the newlines or string concatenation.</p><pre>console.log(`${name}&#39;s employee id<br>is ${id}`);<br>// output:<br>// John&#39;s employee id<br>// is 2</pre><p>At first glance the above approach seems like a nice way to handle multi-line input in all cases, however when it’s nested in other blocks of code it becomes somewhat less workable…</p><pre>if (isValid) {<br>    console.log(`${name}&#39;s employee id<br>    is ${id}`); <br>}<br>// output:<br>// John&#39;s employee id<br>//    is 2</pre><p>As you can see, the spaces in front of the second line get included in the output. In this situation you can use certain packages to strip leading spaces/indents or compensate for other downfalls, <a href="https://github.com/declandewet/common-tags">common-tags</a> is a good example.</p><pre>import {stripIndents} from &#39;common-tags&#39;</pre><pre>if (isValid) {<br>    console.log(stripIndents`${name}&#39;s employee id<br>    is ${id}`);<br>}<br>// output:<br>// John&#39;s employee id<br>// is 2</pre><h3>Terminal Output with Colour</h3><p>At one point in my PR one of the maintainers asked about adding colour to my terminal output to make it easier to read. It makes a lot of sense; when you have multiple lines of text in the terminal, how can you determine what’s important? Using strong colours like red or green can be a good way to accent certain lines/messages.</p><h4>Ansi</h4><p>A simple approach is to use ansi codes. Below is an example of a console.log statement using them, as well as a breakdown of what’s going on.</p><p>console.log(&#39;\x1b[32m%s\x1b[0m&#39;, &#39;The files were successfully created!&#39;);</p><p>\x1b[32m = ansci colour code</p><p>%s = formatter, represents a string</p><p>\x1b[0m = clears the terminal</p><p>When we run our script with the above code, we’ll see it output the desired colour. If you want to view all the available colours to use click <a href="http://console.log(`The number of fruits I have are ${appleAmount + orangeAmount}`);">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/447/1*f5-D6t_MFw-yOgiluf-AOA.png" /></figure><h4>External Packages</h4><p>When using ansi codes you can’t easily tell what’s going on at first glance. For a better approach, you might want to consider external packages. For example, you could try using the <a href="https://github.com/chalk/chalk">chalk</a> package:</p><pre>const chalk = require(&#39;chalk&#39;);<br>console.log(chalk.red(&#39;Text in red&#39;));</pre><h3>Tables</h3><p>JSON objects with large data sets can get difficult to read. In some cases you might want to print select properties to the terminal so you can convey a targeted message.</p><pre>sampleJson.map(entry =&gt; {<br>    console.log(<br>        `firstname : ${entry.name.first}, ` +<br>        `lastname : ${entry.name.last}, ` +<br>        `balance: ${entry.balance}, ` + <br>        `company: ${entry.company}` <br>    );<br>});</pre><p>Will then output…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*6fWclzAQlwr3WCqY9xv3BQ.png" /></figure><p>Which works fine on its own, but there are some other ways of approaching this. In these sort of situations, you might find it more useful to view this data in a table. Using the global console module you can do this easily.</p><pre>sampleJson.map(entry =&gt; {<br>    console.table([{<br>        firstname : entry.name.first,<br>        lastname : entry.name.last,<br>        balance: entry.balance,<br>        company: entry.company<br>    }]);<br>});</pre><p>Will then output…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*z2l11jKxwXgNojql_PdhaA.png" /></figure><p>Having everything highlighted in green makes it easier to view certain properties and the table layout makes things easier to locate in general.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10fec931c44a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jkmdev-walkthroughs/console-log-but-fancier-10fec931c44a">console.log(), but Fancier</a> was originally published in <a href="https://medium.com/jkmdev-walkthroughs">julias-guides</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[On Writing Platform Independent Node Scripts]]></title>
            <link>https://medium.com/jkmdev-walkthroughs/on-writing-platform-independent-node-scripts-2e11552eb674?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e11552eb674</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[node]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[path]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 25 Jan 2019 18:59:58 GMT</pubDate>
            <atom:updated>2019-02-01T15:26:04.265Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*vwwzh7hfQ_ZxQvFw.png" /></figure><p>One day you write a simple Node script that traverses the file system and copies all the files you need from A-Z to destination folder B. In a matter of seconds your new script will accomplish something that would have taken much longer, in a way that is less error prone.</p><p>You make a juicy PR containing your changes. However, when others try to run your script many immediately hit an error:</p><blockquote>Error: ENOENT: no such file or directory</blockquote><p>Yikes. Your primary development environment is Linux but other people are using Windows. You hard-coded the path to a file you wanted</p><p>path/to/file</p><p>…but this won’t be recognized by Windows because it doesn’t recognize those forward slashes. You consider using some sort of conditional statement to handle filepaths for these two types of systems, but that seems messy. And the reality is that you shouldn’t do that because there is, in fact, a much cleaner option.</p><h3>Node’s Path Module</h3><p>The Node path module is a core module that provides a set of functions/utilities that can be used to deal with filepaths. It is a very useful tool for cross-platform development and is great for open source projects, where different contributors are likely to use different systems.</p><h4>Windows vs. POSIX</h4><p>These are the two main file systems a developer will need to worry about when working with Node (both Mac and Linux use POSIX), and most of Path’s functions support both by default. There are a lot of useful utilities provided by this module and you might find it worthwhile to look through them all, but here I’ll cover a few I thought were especially noteworthy and relevant to this post.</p><h4><a href="https://nodejs.org/api/path.html#path_path_join_paths">path.join</a></h4><p>At first glance it might seem like this function simply joins filepath segments. However when reading through its documentation you’ll notice it mentions an extra benefit.</p><blockquote>The path.join() method joins all given path segments together using the <strong>platform-specific</strong> <strong>separator</strong> as a delimiter, then normalizes the resulting path.</blockquote><p>To avoid hard-coding slashes in filepaths and therefore introducing bugs, path.join should be used instead. This function will output a string with forward or backward slashes based on the system. For example:</p><pre>path.join(&#39;path&#39;, &#39;to&#39;, &#39;file&#39;);<br>// On Linux/Mac returns: &#39;path/to/file&#39;<br>// On Windows returns: &#39;path\to\file&#39;</pre><h4><a href="http://&/#39;/foo/bar/baz/asdf&#39;">path.sep</a></h4><p>What if you have a path, and want to create an array from each of its segments? For example, you do something like the following:</p><pre>&#39;path/to/file&#39;.split(&#39;/&#39;);<br>// Returns [&#39;path&#39;, &#39;to&#39;, &#39;file&#39;] on Linux/Mac</pre><p>If you write a function that searches for the / delimiter and creates an array based off that, it will create an error on Windows.</p><pre>&#39;path\\to\\file&#39;.split(&#39;/&#39;);<br>// Throws error on Windows</pre><p>To avoid this problem path.sep can be used. It isn’t a function, but a constant, and will be the path segment separator used by the corresponding system.</p><pre>&#39;path/to/file&#39;.split(path.sep); <br>// path.sep == &#39;/&#39;<br>// Returns[&#39;path&#39;, &#39;to&#39;, &#39;file&#39;] on Linux/Mac</pre><pre>&#39;path\\to\\file&#39;.split(path.sep); <br>// path.sep == &#39;\&#39;<br>// Returns [&#39;path&#39;, &#39;to&#39;, &#39;file&#39;] on Windows</pre><h4><a href="https://nodejs.org/api/path.html#path_path_delimiter">path.delimiter</a></h4><p>Like path.sep, path.delimiter provides a single constant value; on Windows this will be ; , on POSIX it’s :.</p><p>One place where you’ll likely see this sort of delimiter being used is in the PATH environment variable for your system. So if you ever need to parse that value, path.delimiter will be useful to you.</p><pre>process.env.PATH.split(path.delimiter);<br>// On POSIX returns [&#39;/usr/bin&#39;, &#39;/bin&#39;, &#39;/usr/sbin&#39;, &#39;/sbin&#39;, &#39;/usr/local/bin&#39;]<br>// On Windows returns [&#39;C:\\Windows\\system32&#39;, &#39;C:\\Windows&#39;, &#39;C:\\Program Files\\node\\&#39;]</pre><h4><strong>In Summary</strong></h4><p>When dealing with paths in your Javascript applications, use Node’s Path module to make filepaths platform agnostic. This is especially important when working in open source since you can’t guarantee that all contributors will be using a specific type of system.</p><h3>Further Reading</h3><ul><li><a href="https://shapeshed.com/writing-cross-platform-node/">https://shapeshed.com/writing-cross-platform-node/</a></li><li><a href="https://alan.norbauer.com/articles/cross-platform-nodejs/">https://alan.norbauer.com/articles/cross-platform-nodejs/</a></li><li><a href="https://gist.github.com/domenic/2790533#paths-and-urls">https://gist.github.com/domenic/2790533#paths-and-urls</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e11552eb674" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jkmdev-walkthroughs/on-writing-platform-independent-node-scripts-2e11552eb674">On Writing Platform Independent Node Scripts</a> was originally published in <a href="https://medium.com/jkmdev-walkthroughs">julias-guides</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Choosing Projects to Contribute to in the Long Term]]></title>
            <link>https://medium.com/jkmdev-open-source/my-next-step-in-open-source-4fdc233c4004?source=rss-578b884b8563------2</link>
            <guid isPermaLink="false">https://medium.com/p/4fdc233c4004</guid>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Julia McGeoghan]]></dc:creator>
            <pubDate>Fri, 11 Jan 2019 16:53:34 GMT</pubDate>
            <atom:updated>2019-01-11T20:01:27.847Z</atom:updated>
            <content:encoded><![CDATA[<p>In recent months I’ve introduced myself to the world of open source by being more active in the community. I’ve contributed to a large variety of projects and enjoyed doing so because it’s given me a better understanding of the industry as a whole. But it’s too much variety. I want to get rooted in one or two projects so I can start making more substantial contributions.</p><h3>Personal Priorities</h3><p>What motivates me as a developer is the idea of ‘skill hoarding’ and being able to develop whatever applications I think of. I want to learn a lot of things, build a lot of different skills relating to a certain type of project, to be familiar with and help coordinate an application in its entirety.</p><p>Not only that but everything is connecting with software. IOT. I want to be able to interface and ‘speak the language’ of the new world. Build tools for communities I’m a part of. And get paid for my lifestyle, hopefully. Plus I love sci-fi and I find to be pretty inspirational…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*tEJF74Ni6GOhJESg.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*n7WnJTQdam0jwcZQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*xdB1JDFYVrfo28k0.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*d7m1ira_8Cd0w3ib.gif" /></figure><p>I’m not expecting myself to help create some sort of human-level AI anytime soon. But I want to help build something that makes things that little bit faster, better looking, to make them run smoother. To contribute to a project that move things forward in some way.</p><h4>In a nutshell</h4><p>When contributing to a new project…</p><ol><li>I want to learn a lot of skills that have a high relevance to things I want to work on in the future</li><li>I want to be able to collaborate with the project’s community when building new features</li><li>I want it to be something I care about and want to help maintain past a few contributions</li><li>I want to work on something the impresses and inspires other people, that has a genuine utility, is fairly well made</li></ol><h3>Project Must Haves</h3><p>When contributing to a new project for the long term, I’ve decided it needs to have the following based off my priorities.</p><p><strong>Needs lots of enhancements vs. small bug fixes. </strong>I want to avoid working on small bug fixes, except maybe initially to get familiar with a project. I find that they’re good ways to learn how something works, but I’m generally not learning how to build things from them.</p><p><strong>It uses languages I want to be more familiar with or often already use. </strong>I’m still a bit too generalized right now, and need to fix that. I want to specialize more in a small group of technologies.</p><p><strong>Has an active community of developers and maintainers. </strong>I need an easy means of contacting and discussing things with other collaborators on the project.</p><p><strong>Is well built and maintained. </strong>Lots of automated testing, clean code, through code reviews, etc.</p><h3>Projects</h3><p>A list of projects that I’m currently considering. Nothing is set in stone yet, this is just what I’ve thought of based on my current brainstorming.</p><h4>mozilla/voice-web</h4><p>Open source voice recognition software. <a href="https://github.com/mozilla/voice-web">link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*NAsh0ULWt8HyZwgcAZvcUw.png" /></figure><p><strong>Pros:</strong></p><ul><li>Interesting use case</li><li>A few interesting enhancements/features to add</li><li>Uses React with Typescript</li><li>Have contributed before, somewhat familiar with project structure</li></ul><p><strong>Cons:</strong></p><ul><li>active community for it is fairly small</li><li>the project is in its later stages, so not very many enhancements</li><li>enhancements all seem to be UI or mobile related?</li></ul><h4><strong>microsoft/fast-dna</strong></h4><p>An unopinionated suite of components and utilities to be used as a foundation for enterprise-grade applications. <a href="https://github.com/Microsoft/fast-dna">link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*4hh7ULKIU3HCiJNzNchnDg.png" /></figure><p><strong>Pros:</strong></p><ul><li>lots of recent activity</li><li>lots of tasks/enhancements</li><li>could be getting feedback from Microsoft devs</li><li>fast and responsive project maintainers. No open issues beyond 4 days.</li></ul><p><strong>Cons:</strong></p><ul><li>Haven’t contributed to it before, don’t know how it works</li></ul><h4><strong>wonderunit/storyboarder</strong></h4><p>An application for creating storyboards (something used in film/animation to plot out the story in a rough format). <a href="https://github.com/wonderunit/storyboarder">link</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*FPLU8BLwTW48T8rkvHsX8A.png" /></figure><p><strong>Pros:</strong></p><ul><li>could be a good way to develop a big feature that will be used by 1000s of people</li><li>would learn how image editors work, exposure to various data structures ‘in the wild’ (e.g. undo/redo action uses stacks)</li><li>I’d learn more about building electron apps</li></ul><p><strong>Cons:</strong></p><ul><li>it’s almost completely dead right now…</li><li>would expect next to no help up until the PR</li><li>not even sure if I’d be given approval to work on a large feature, but maybe?</li></ul><h3>The Plan</h3><p>My plan so far is to pick one main project to contribute to, while making smaller fixes to a variety of others. So far it looks like fast-dna will be the main one I choose, but for the time being I’m still looking for ones that have similar advantages to them.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4fdc233c4004" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jkmdev-open-source/my-next-step-in-open-source-4fdc233c4004">Choosing Projects to Contribute to in the Long Term</a> was originally published in <a href="https://medium.com/jkmdev-open-source">julia-on-open-source</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>