<?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 Joanne on Medium]]></title>
        <description><![CDATA[Stories by Joanne on Medium]]></description>
        <link>https://medium.com/@jdaudier?source=rss-90a662a100da------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eq34OWv3B-ytVSQGxb46AQ.jpeg</url>
            <title>Stories by Joanne on Medium</title>
            <link>https://medium.com/@jdaudier?source=rss-90a662a100da------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 15:03:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jdaudier/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[Improv Walk of Trust]]></title>
            <link>https://medium.com/@jdaudier/improv-walk-of-trust-8040f6a58564?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/8040f6a58564</guid>
            <category><![CDATA[improv]]></category>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Thu, 21 Jun 2018 00:55:15 GMT</pubDate>
            <atom:updated>2018-06-21T00:55:15.602Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*OjLCd48BTtDWLJivGBriBA.jpeg" /><figcaption>Person in the middle will walk across the circle with his eyes closed</figcaption></figure><p>I did this little warm-up game at my improv class recently, and it was a trip! I am writing it down so that you can try it out as well. It doesn’t seem much when you read it, but trust me, you need to experience this to know what it actually feels like.</p><h3>Rules of the Game</h3><ol><li>With a group of 10 to 20 people, form a large, even circle.</li><li>One person, the walker, will go in the middle of the circle.</li><li>Let’s say you’re the walker. You will then start walking across the circle with your eyes closed.</li><li>When you get to the edge of the circle, the people forming the circle will stop you by gently putting their hands on your shoulders, turn you around, and push you back towards the center.</li><li>You will then start walking again till you get stopped by another person on the edge of the circle.</li><li>Keep walking around until you’ve been turned around 6 to 8 times.</li><li>If you’re walking towards two people, one of them will need to center themselves to guide you. We should only have <strong>one person</strong> pushing you back.</li><li>Our responsibility is to help each other gently.</li></ol><h3>Tips for the Walker</h3><ul><li>Try not to estimate where you are — we are hardwired to underestimate.</li><li>Put your hands behind your back or on your sides so that your arms don’t swing and hit someone as you’re walking.</li><li>Walk normally by taking normal-sized steps.</li><li><strong>You’ll feel fear like you’re going to die</strong>, but the worst that could happen is you bump into a wall. (And that didn’t happen with all the 16 people that played this game in my class.)</li></ul><p>Enjoy and let me know how you felt afterwards!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8040f6a58564" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Make Your Pull Requests Visual for Front-End Changes]]></title>
            <link>https://medium.com/statuscode/make-your-pull-requests-visual-for-front-end-changes-ef91d83d4fc2?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef91d83d4fc2</guid>
            <category><![CDATA[frontend]]></category>
            <category><![CDATA[front-end-development]]></category>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Sun, 19 Feb 2017 05:19:17 GMT</pubDate>
            <atom:updated>2017-06-17T18:18:15.324Z</atom:updated>
            <content:encoded><![CDATA[<h3>Make Your Pull Requests Visual</h3><h4>For Front-End Changes ✨</h4><p>If you’re a front-end dev like me, you’ll often find yourself making pull requests that have visual changes. I wanted to share something that I’ve started doing at <a href="https://www.grovo.com/">work</a> that has been helpful in getting my pull requests approved.</p><p>The idea is simple, but I will add a few tips and tricks to help you take it to the next level!</p><p>The basic idea is to <strong>add screenshots and screen recordings </strong>for<em> any</em> visual changes. They make the job for the reviewers much easier since they can visually see what’s been changed instantly.</p><h3><strong>FREE TOOLS</strong></h3><ul><li><a href="https://www.techsmith.com/jing.html"><strong>Jing</strong></a> or <a href="https://marker.io/"><strong>Marker</strong></a> (which even includes emojis!)— for static screenshots <em>(With Chrome 59, you can now take a </em><a href="https://youtu.be/r_6_9eFPhxI"><em>full-page screenshot</em></a><em>.)</em></li><li><a href="http://recordit.co/"><strong>Recordit</strong></a> — for animated GIFs <em>(other alternatives: </em><a href="https://giphy.com/apps/giphycapture"><em>GIPHY Capture</em></a><em> or </em><a href="https://getkap.co/"><em>Kap</em></a><em>)</em></li></ul><p>I like to show the <strong>before</strong> and <strong>after</strong> visual diffs.</p><p>Take a screenshot of the before and after, and add it to your PR like so:</p><h3><strong>BEFORE</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*hP5Ep4FSNKq4a-81BfC6sA.png" /></figure><h3>AFTER</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*VXJsj3bGUPeM3usjVhYDHw.png" /></figure><p>Jing has a <strong>capture hotkey</strong> that you can set to launch the capture mode using keyboard shortcuts. Use the hotkey, and your co-workers will be asking how you capture things so fast!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/1*WW7Unz4_-9SfrWypbPNdKg.png" /><figcaption>The Jing hotkey is your secret weapon!</figcaption></figure><p>Then, add some <strong>arrows</strong> to point out the differences or areas to focus on. You can even use the <strong>text tool</strong> to add some quick notes.</p><p>To show UI interaction, I like to use Recordit to record an animated GIF. And if the component you’re building has various states, <strong>record all the variations</strong>!</p><p>Right after you record a video, Recordit will take a few seconds to process, and you’ll see a toast message/notification in the top right corner that looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*4gOHqDxvgWjT-zoeqcBhew.png" /><figcaption>Click this toast message to get your animated GIF</figcaption></figure><p>Click on it to get the animated GIF. If you missed the toast message/notification, you can also get the link to the GIF from the settings menu:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*id2pdUvHy2oDvljU4MQwUg.png" /><figcaption>Recordit menu to get your animated GIFs if you missed the toast message</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*j-wtU-ZdoJDhuATc28YGBA.png" /><figcaption>Click on the GIF button to get your animated GIF</figcaption></figure><p>But instead of adding a <em>link</em> to the GIF in your PR, I’d recommend <strong>downloading the animated GIF</strong> and adding it so that it shows up <strong>inline</strong>. It’s so nice when someone can see the animation right away without having to click.</p><p><strong>Get your visuals in front of your reviewers’ faces right away, always! The first one to </strong><a href="http://larahogan.me/blog/etsy-lessons/"><strong>create a visual for everyone</strong></a><strong>, wins.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*H0v3I0PaOnitHTTdsgpgng.gif" /><figcaption>Add your animated GIF inline</figcaption></figure><p>I even go as far as using screenshots to show console warnings if I have a PR that remove those warnings. <strong>You can get visual in many ways.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*RsTDIIHcwSVg__6qzNuxhg.png" /><figcaption>You can even screen capture errors</figcaption></figure><p>I know what you’re thinking. This is too time consuming. However, I can’t tell you how many times I’ve been trying to screen record my “finished” work and caught bugs alongs the way. Why? Because trying to capture what you’ve done, including all the various states, will slow you down and make you QA your work indirectly.</p><p>Another great thing: in case someone else comes along and breaks something, you have proof of the way it worked before as a reference!</p><p>At <a href="https://www.grovo.com/">Grovo</a>, we add our designers to pull requests for front-end changes. They can often spot visual quirks, as well as typos, earlier in the process thanks to our screenshots and screen recordings.</p><h4>TL;DR</h4><ol><li>Add <strong>screenshots</strong> with a <strong>before</strong> and <strong>after</strong> diff;</li><li>Call out areas of focus with <strong>arrows</strong> and <strong>text boxes;</strong></li><li>Add <strong>screen recordings (animated GIFs)</strong> to show UI interaction of all the various states;</li><li>Have your visuals <strong>inline, </strong>so they can be viewed instantly.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*c2aarN0UWTX6gmZJvVFBpQ.gif" /><figcaption>PR example</figcaption></figure><p><em>Try it out, and let me know how it goes!</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef91d83d4fc2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/statuscode/make-your-pull-requests-visual-for-front-end-changes-ef91d83d4fc2">Make Your Pull Requests Visual for Front-End Changes</a> was originally published in <a href="https://medium.com/statuscode">Statuscode</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Guess These American Idioms]]></title>
            <link>https://medium.com/art-marketing/guess-these-idioms-d671d3afb5cf?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/d671d3afb5cf</guid>
            <category><![CDATA[guess-these-idioms]]></category>
            <category><![CDATA[american-idioms]]></category>
            <category><![CDATA[idioms]]></category>
            <category><![CDATA[art]]></category>
            <category><![CDATA[fun]]></category>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Mon, 04 Jul 2016 17:02:55 GMT</pubDate>
            <atom:updated>2017-09-10T17:39:37.535Z</atom:updated>
            <content:encoded><![CDATA[<p>At my last job, I worked with a very international group of people. My boss was Italian, and I started drawing American idioms on a little whiteboard I bought to have him guess them. Let me just say, there’s nothing funnier than hearing the guesses of these idioms from foreigners.</p><p>You can now guess them as well, but to yourself, so you don’t spoil the fun for everyone. =)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YYl_aD-6IEYG8Sa15NfDrw.jpeg" /><figcaption>7/10/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jucK9AonRLXOGv08_zjWGA.jpeg" /><figcaption>7/14/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ikbskq68PKJ3CvFzeki8Sg.jpeg" /><figcaption>7/14/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CS5WCtmtyP_FEeyX9UrDzw.jpeg" /><figcaption>7/14/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PljOLZ8GdGNaPYaCWkyxjQ.jpeg" /><figcaption>7/16/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cGkpFC2tZsd4hxyVB0ALsA.jpeg" /><figcaption>7/17/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0y-bnODDYkC2ZbyjyszKNg.jpeg" /><figcaption>7/20/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*51W3PcwMeQ9HE6HpCpuVOQ.jpeg" /><figcaption>7/28/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6zQocj3Q2hRKhZYedB1F8Q.jpeg" /><figcaption>7/29/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pWzMdx_7BN1LxPPpCubbCQ.jpeg" /><figcaption>7/29/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1tz_ZwO2hngtYBnslRkz9w.jpeg" /><figcaption>7/30/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ICzpo8uZrN7CWpu5on0V3Q.jpeg" /><figcaption>7/31/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_udF9qXvbsthZl1gGJt_Pw.jpeg" /><figcaption>8/4/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_agpOv1aSCjR4CXXzTZ1sA.jpeg" /><figcaption>8/6/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O36aalbD1L15Wbxwb5nLPQ.jpeg" /><figcaption>8/6/15</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fAs8cewmqReSCpcyEnPbfQ.jpeg" /><figcaption>8/10/15 (drew by a co-worker)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-nMgf7DLHdNgaAE7vL2i_Q.jpeg" /><figcaption>8/12/15 (drew by a co-worker)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*yOJfTonlExAsqdPV1thXSA.png" /><figcaption>Name this movie… 8/14/15 (drew by a co-worker)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xBhT0DRjMoANbzxWntbKzg.jpeg" /><figcaption>8/17/15 (drew by a co-worker)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*rEKzAeKrnvU26LDMdzXsSA.png" /><figcaption>2/3/17 (hint: this is an inspirational saying)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*4Sk_7pN-Qj5L5K1ntfdk1g.png" /><figcaption>2/16/17</figcaption></figure><p>I hope you enjoyed them as much as I enjoyed drawing them!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d671d3afb5cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/art-marketing/guess-these-idioms-d671d3afb5cf">Guess These American Idioms</a> was originally published in <a href="https://medium.com/art-marketing">ART + marketing</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let’s Make Open Source More Inclusive]]></title>
            <link>https://medium.com/@jdaudier/lets-make-open-source-more-inclusive-5129837b505d?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/5129837b505d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[diversity-in-tech]]></category>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Sun, 08 May 2016 06:24:50 GMT</pubDate>
            <atom:updated>2018-01-17T17:54:10.058Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S-ss4DFdO-viwUZtwPZwow.jpeg" /><figcaption><a href="https://medium.com/u/569d16a2d104">Gregor</a> | EmpireJS 2016</figcaption></figure><p>The app you’re currently building is utilizing a ton of open source software (OSS), and the people who works on open source projects are likely to be single, white, male and in their 20s. How can we, as a community, make open source more accessible and sustainable to noobs, women, parents, and other underrepresented groups? Here are some ideas from 3 different perspectives.</p><h3><strong>Project Maintainers</strong></h3><p>As a project maintainer, you are the gatekeeper, you have a lot of power, and you can make or break someone’s open source experience. It’s easy to abuse your power and get into verbal wars with your contributors when you don’t agree with them (or when they’re being rude). Open source was built on the premise of collaboration, and it will test your ability to collaborate with others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6EYngs4PGfKxV7irQu-JHA.png" /><figcaption><a href="https://medium.com/u/569d16a2d104">Gregor</a> | EmpireJS 2016</figcaption></figure><h4><strong>Show Respect</strong></h4><p>Be nice in your comments in the heat of the moment, attack the issue, not the person. Be direct and kind with your concerns. Be respectful. Instead of “you’re doing it wrong”, suggest alternatives. When someone is learning, help them learn more. <a href="https://www.youtube.com/watch?v=OCbO-u43xNk">Sometimes it’s easy to forget there’s a human being on the other side</a>. Kyle Simpson said it better than me:</p><blockquote><strong>If you are an OSS project maintainer and you’re so busy with so much work or Issue triaging that you can’t be bothered to <em>not be an asshole</em> as your default response, you either need to GTFO of OSS, or you need to get a hell of a lot better at recruiting help.</strong></blockquote><h4><strong>Practice Empathy and Gratitude</strong></h4><p>There are many people entering the open source community, and for them, it’s an unknown world. Maybe they’re a novice developer or an experienced developer new to open source. When you’re just starting out, contributing can be scary. I bet some of you reading this, at one time or another, may have had a lack of confidence in your own code and felt nervous about submitting your code to someone else’s scrutiny. So be grateful when newcomers are putting themselves out there to help you for free by treating every single contribution and contributor as incredibly valuable and worthy of your time.</p><h3>gold on Twitter</h3><p>the products get redesigned and the code gets deleted; what remains is always how you treated people.</p><h4><strong>Adopt a Contributor Covenant</strong></h4><p>This <a href="http://contributor-covenant.org/">document</a> is a code of conduct for open source projects. Add this or something similar to your repo at the root level, discuss it with your core team (more on this later), and enforce it. As the leader in the your project community, you have the added responsibility of making sure everyone treats each other with respect. Here’s a more elaborate <a href="http://hood.ie/code-of-conduct/">example</a> from Hoodie.</p><h4><strong>Make it Easy</strong></h4><p>Write <a href="https://github.com/marionettejs/marionette.inspector/issues/184">pseudo code</a> and break down the steps to make it easier for people to contribute. The issue should be well described with pointers to help the implementer. The more guidance you can give upfront, the more likely someone will be able to help. Start a <a href="https://gitter.im/">Gitter</a> channel and be available to pair.</p><p>Better yet, <a href="https://github.com/formly-js/angular-formly/issues/343#issuecomment-111495740">push up some tests</a> for the feature you want. I think <a href="https://medium.com/@kentcdodds/first-timers-only-78281ea47455#.fxayxhjou">this</a> is an ingenious idea!</p><p>Another aspect of making it easy is having the time to review each PR and merge it in, making it easy for the contributor to see the fruit of their hard work, creating a positive feedback loop. If you’re finding it hard to keep up with the PRs coming in, it’s time to recruit more help, talk to your company (more on this later), or experiment with a <a href="http://hintjens.com/blog:95">zero-consensus process</a>.</p><h4><strong>Make it Obvious</strong></h4><p>One of the most common feedback from would-be contributors is that they’re not sure where to start. Label simple issues that are low hanging fruit perfect for new contributors.</p><p><strong>Some ideas:</strong></p><ul><li>Great for beginners</li><li>Good first patch</li><li>Entry-level</li><li>First-timers-only</li><li>First time contributor</li></ul><p>There’s a great discussion about this topic <a href="https://github.com/osscommunity/starters/issues/5#issuecomment-156909548">here</a>.</p><h4><strong>Add Contributing Guidelines</strong></h4><p>Add a CONTRIBUTING file in the root directory to explain how a participant should do things like format code, test fixes, and submit patches. The document should succinctly communicate how best to collaborate and explain in detail how and where someone can help. <strong>Be specific in your asks!</strong></p><p>GitHub will <a href="https://github.com/blog/1184-contributing-guidelines">add a link</a> to your file when a contributor creates an Issue or opens a Pull Request.</p><p>Some examples:</p><ul><li><a href="https://github.com/puppetlabs/puppet/blob/master/CONTRIBUTING.md">Puppet</a></li><li><a href="https://github.com/request/request/blob/master/CONTRIBUTING.md">Request</a></li></ul><p>Here’s a <a href="https://github.com/nayafia/contributing-template">template</a> to help you get started.</p><p>If you have a project page, you can even add something similar there like what<strong> </strong><a href="http://hood.ie/contribute/">Hoodie</a> has done or even publish a dedicated “<a href="https://github.com/hoodiehq/discussion/issues/84">job ad</a>” for the position.</p><p>This is also the place to <strong>set up expectations</strong>. You can even talk about what you are <strong>NOT</strong> looking for. What you are not going to accept PR’s for, etc. Communicate your <a href="https://youtu.be/GQhzKbjkBr4?t=53s">hell no’s</a>. You might have specific vision for your project, and you’ll need to communicate that the code will not fit all purposes.</p><h4><strong>Create a Core Team</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*VhpK2EfpAjTgRvyyfGy-_Q.jpeg" /><figcaption>How it feels</figcaption></figure><p>Once you’re at the point where you have repeat contributors, you should invite them to join your core team. The core team members are simply a subset of contributors who have been given write access to the repo.</p><p>Typically, people will feel honored that you’ve invited them, and if they join, they’ll feel a greater sense of responsibility and accountability. Treat your core team like a little startup, and set up a Gitter chat room.</p><p>Ultimately the project’s health is a reflection of the team’s health. You might be sick or tired one week, but a strong team can shoulder the burden. And if the day comes when you are no longer able to contribute, you can always <a href="http://derickbailey.com/2014/07/08/living-the-dream-or-is-it-a-nightmare/">work yourself out of the equation</a>, and the train will still run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h4VCaIpR9SAqRb2HxrOV9w.jpeg" /></figure><h3>You (Contributor)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*y3jI87z-xN21alSpLnTIZQ.png" /><figcaption>Comic from <a href="https://twitter.com/yasinsiddiqui">@yassinsiddiqui</a></figcaption></figure><p>Now, let’s switch sides and talk about how you can be a good open source citizen, and how to make it sustainable for yourself.</p><h4>Read the Contributing Guidelines</h4><p>Read this file to understand more about the project and the maintainer’s guidelines.</p><h4><strong>Start a Discussion</strong></h4><p>Discuss your implementation by opening an issue before actually starting the work, or at least leave a message on a task you’d like to work on. Yes, you are offering your help, but someone else will have to maintain your code over the long term — get their buy-in first, avoid surprises. Maybe they’ve already started working on a similar idea in a separate branch and would love to have your help. This <a href="http://rob.conery.io/2015/01/21/thank-you-for-that-pull-request-however/">article</a> and this <a href="https://www.igvita.com/2011/12/19/dont-push-your-pull-requests/">one</a> sums it up really well.</p><blockquote>Before you dive into the editor, open a discussion, outline your problem and solution, and offer to do the work — don’t “push” the pull request, and don’t work in the dark.</blockquote><h4><strong>Start Small</strong></h4><p>Have you heard that the secret to changing your habits is to start incredibly small? Say you want to start a habit of flossing every night, just start with flossing one tooth. Same can be said of open source contribution. Start as small as you can manage — fix a typo in the documentation, update a sentence in the README, improve the project site, etc. This will get you comfortable with the code base through bite-sized challenges. The best way to find something to contribute to, is not to arbitrarily pick a project, but to contribute to something that you actually use.</p><h4><strong>Create Your Own Space</strong></h4><p>I consider myself an accidental contributor to <a href="https://github.com/marionettejs/backbone.marionette">Marionette.js</a>, and I used to feel less than adequate because I didn’t contribute to the source. But now I’ve come to realize that it’s ok to let your contributions be whatever you naturally gravitate towards. If you like working on the project site, that’s ok. You don’t always have to contribute to the source. There’s a place for everyone, and you shouldn’t feel your contribution is any less, or let someone make you feel that way. Don’t fall into that trap of comparing yourself to others. Work on things that you like and find fun. <a href="https://opensource.com/life/16/1/8-ways-contribute-open-source-without-writing-code">Make a space</a> for yourself.</p><h3>Yehuda Katz on Twitter</h3><p>As a tech community, we must treat documentation, marketing, logistics, infrastructure, art, etc. work with as much respect as engineering</p><h4><strong>Put Yourself First</strong></h4><p>Solving problems can be addicting. If you’re already contributing to open source and find yourself spending most of your free time doing it, it’s time to put yourself first. When you constantly give more than you have and never take time to replenish your source, you’ll end up getting depleted and burnt out. OSS is work and should not take over your life. Don’t sacrifice your own health or happiness for it. <a href="https://remysharp.com/2015/01/09/dont-like-open-source">You come first, not your code or someone else’s project: you</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*FEEzQU7C8nMtiuP6OHAfQg.png" /></figure><h3>Roman Komarov on Twitter</h3><p>That&#39;s how burnout looks like.pic.twitter.com/LN8Rx0SjKB</p><h3><strong>Companies</strong></h3><p>Most people contribute to open source on their spare time, and people that have more spare time are typically people without kids. If we want to make open source more inclusive, we have to allow open source work on company time.</p><p>And why would companies allow that? Most won’t because the value is not immediate or measurable (like revenue). But I’d like to make a case for open source work on company time because …</p><h4><strong>Your employees will become better coders</strong></h4><p>Open source is an excellent way to for your employees to level-up their skills and receive unbelievable learning opportunities. Over time, open-source work will help them become better coders in closed-source projects as well. Your company can benefit from the practices that open source teams have been doing well for years: thorough code reviews, forthright communication, and efficient collaboration. The best open source teams also have clear documentation, regular releases, and predictable versioning. Your employees will be exposed to other ways of thinking, not getting lost in your own bubble.</p><h4><strong>It’s an investment</strong></h4><p>You probably have a training budget or budget for online videos and other resources. Companies need to start seeing open source work as a part of training. It’s got the same spirit of putting the work in now to get payoff later on. Technology is always changing, and building a culture that’s big on continuing education to keep everyone current is important to the success of any company.</p><h4><strong>Build brain trust</strong></h4><p>Giving back to the tools your team is using will strengthen your team’s understanding of the tools, not to mention they’ll start making friends with some of the smartest devs from all over the world. When you have questions that are deeply connected to an open source project you use, you’ll have an in-house champion who can communicate with their brain trust to give you an edge.</p><h4><strong>It’s good for business</strong></h4><p>For some companies, open source work has been an invaluable marketing tool, raising awareness for the company and getting client leads through it. And a company that embraces open source and allowing its employees to work on it during the workweek will attract talent. It’ll also create employee happiness, allowing them working on things they care about. Like ping pong tables, it’s a great perk! <em>(I couldn’t have said it better than this </em><a href="http://blog.pathgather.com/blog/the-startup-training-program"><em>post</em></a><em>).</em></p><h4><strong>Empower your employees</strong></h4><p>The most important thing I’ve learned from doing OSS work is that it has taught me to roll up my sleeve and be the change I want to see in the world. If I don’t like something, I can change it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/540/1*RJWT8u1w8jwog1PrOwpwBQ.png" /></figure><h3><strong>What Needs to Change</strong></h3><p>The benefits of OSS is obvious to me as an insider, but one day, I hope it’ll be obvious to more companies. Not everything that’s beneficial are things we can easily measure.</p><p>Our time is limited, and in order to make OSS more inclusive and sustainable, I see no other way other than having the support of our employers. We need to teach our employers to see beyond the numbers and allow us to contribute back during normal work hours. OSS should become part of our full-time job, not just a hobby.</p><blockquote><strong>We need open source work to be done on dedicated company time, at least 1 day out of the week (#OSS-Friday).</strong></blockquote><p><strong>OSS is the tireless product of human labor and ingenuity, and it needs help from all kinds of different people in the community to survive.</strong></p><h4><strong>Additional Resources</strong></h4><ul><li><a href="https://css-tricks.com/open-source-etiquette-guidebook/">An Open Source Etiquette Guidebook</a></li><li><a href="https://storify.com/trodrigues/why-i-don-t-like-open-source-a-play-in-3-acts">Why I Don’t Like Open Source</a></li><li><a href="http://www.coglib.com/~icordasc/blog/2015/11/corporations-and-oss-do-not-mix.html">Corporations and OSS Do Not Mix</a></li><li><a href="http://www.defmacro.org/2013/04/03/issue-etiquette.html">Github Issue Etiquette</a></li><li><a href="https://nolanlawson.com/2015/12/28/how-to-fix-a-bug-in-an-open-source-project/">How to Fix a Bug in an Open Source Project</a></li><li><a href="https://egghead.io/series/how-to-contribute-to-an-open-source-project-on-github">How to Contribute to an Open Source Project on GitHub</a></li><li><a href="http://jlord.us/blog/osos-talk.html">Privilege, Community, and Open Source</a></li><li><a href="https://medium.com/the-javascript-collection/healthy-open-source-967fa8be7951#.724088mmi">Healthy Open Source</a></li></ul><p><em>Special thanks to </em><a href="https://twitter.com/rockbot"><em>Raquel Vélez</em></a><em>, </em><a href="https://twitter.com/jasonlaster11"><em>Jason Laster</em></a><em>, and </em><a href="https://medium.com/@aidanfeldman"><em>Aidan Feldman</em></a><em> for reviewing.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5129837b505d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Create and Publish Your First Node.js Module]]></title>
            <link>https://codeburst.io/how-to-create-and-publish-your-first-node-js-module-444e7585b738?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/444e7585b738</guid>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Mon, 06 Jul 2015 07:03:01 GMT</pubDate>
            <atom:updated>2017-12-06T20:35:11.372Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2TwgcgPMqbflx_AdDPPHOw.png" /><figcaption>Image from a <a href="https://youtu.be/HFRU6eQKp4Y?t=12m44s">very funny talk</a> by <a href="http://twitter.com/searls">Justin Searls</a> about what it’s like to be an open source maintainer.</figcaption></figure><h3>What is npm?</h3><p>npm makes it easy for JavaScript developers to share and reuse code, and it makes it easy to update the code that you’re sharing. The <a href="http://dailyjs.com/2015/06/26/npm-3/">beta of npm v3</a> has been released recently.</p><h3>Pre-reqs</h3><ul><li>Sign up for a <a href="https://github.com/">GitHub</a> account</li><li>Install <a href="https://nodejs.org/">Node.js</a> (npm comes with Node, but it’s often an old version)</li><li>Update to the latest npm version (Node’s release cycle is far slower than npm’s, which is weekly)</li></ul><pre>npm install npm@latest -g</pre><pre><em>If you get an EACCES error, don’t worry! Here&#39;s a </em><a href="https://docs.npmjs.com/getting-started/fixing-npm-permissions"><em>solution</em></a><em>.</em></pre><ul><li>Create an <a href="https://www.npmjs.com/signup">npm account</a> (and confirm your npm account email address‏)</li><li>Create a <a href="https://travis-ci.org/">Travis CI</a> account (using GitHub)</li><li>Create a <a href="https://coveralls.io/">Coveralls</a> account (using GitHub)</li></ul><h3>Create a GitHub repo</h3><ol><li>Create a new repo on GitHub and call it “<strong>number-formatter</strong>” (make sure you check the <strong>README</strong> box, add a .<strong>gitignore</strong> file for <strong>Node</strong>, and a <strong>MIT</strong> license)</li><li>Clone it locally</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VIC8KjGMWkdBvGVGMP0mbw.png" /><figcaption>Make sure you add a README, .gitignore, and license</figcaption></figure><p><strong><em>Note</em></strong>: The completed demo code is at the bottom in case you want a high-level view of the project layout.</p><h3>Why add a license?</h3><p>It’s your right not to include a license with your code or project, but the absence of a license means that the default copyright laws apply. This means that you retain all rights to your source code and that nobody else may reproduce, distribute, or create derivative works from your work. This might not be what you intend.</p><figure><a href="https://twitter.com/tjholowaychuk/status/509462531895611392"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DTzmkZZIvLXPK2iQt8SXMA.png" /></a><figcaption>Pro tip!</figcaption></figure><p>Yes, there’s really a legit “<a href="http://www.wtfpl.net/about/">Do What the Fuck You Want to Public License</a>”.</p><h3>Tell npm who you are</h3><pre>npm set init.author.name “Channing Tatum”</pre><pre>npm set init.author.email “<a href="/service/mailto:magic.mike@gmail.com">magic.mike@gmail.com</a>”</pre><pre>npm set init.author.url “<a href="http://www.magicmikemovie.com/">http://www.magicmikemovie.com</a>&quot;</pre><p>Your credentials will be now saved to a <strong>~/.npmrc</strong> file and used as defaults whenever you initialize a npm package, so you don’t have to enter them each time.</p><p>To authenticate on your machine, log in with your npm <strong>username</strong>, <strong>password</strong>, and <strong>email</strong>.</p><pre>npm login</pre><h3>Initialize a npm package</h3><p>When you create a new module, you want to describe your package with the <strong>package.json</strong> file.</p><pre>npm init</pre><p>If you want to <a href="https://docs.npmjs.com/getting-started/scoped-packages#initializing-a-scoped-package">namespace your modules</a>, do this instead</p><pre>npm init --scope=username</pre><p>Answer all the questions you’re prompted.</p><p>For the <strong>version</strong>, let’s start with</p><pre>0.1.0</pre><p>When you make changes to your library in the future, remember to update the version according to <a href="http://semver.org/">semantic versioning</a> (<strong>SemVer</strong>).</p><p>I like to think of a version number that follows SemVer like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mNitzeL5UsaioK1-R5Il9Q.png" /><figcaption>Breaking down SemVer</figcaption></figure><p>SemVer isn’t used by all libraries. Some maintainers <a href="https://gist.github.com/jashkenas/cbd2b088e20279ae2c8e">strongly believe that it makes no sense</a>. They feel that any change to a library could potentially break backwards compatibility. In my experience, libraries that don’t follow SemVer cause more problems for the consumers, so I encourage you to follow it.</p><p>Answer the <strong>test command</strong> question with this</p><pre>mocha --reporter spec</pre><p>You should now see a <a href="http://browsenpm.org/package.json"><strong>package.json</strong></a> file in your project folder.</p><h3>Specify a minimum Node version</h3><p>By adding the following (optional) to your <strong>package.json</strong>, you can specify the minimum Node version that your package requires to ensure your library will work for your users.</p><pre>&quot;engines&quot;: {<br>  &quot;node&quot;: &quot;&gt;=4.2.4&quot;<br>},</pre><h3>Create a node module</h3><p>A Node/npm module is just a regular JavaScript file, but it must follow the <a href="http://wiki.commonjs.org/wiki/Modules/1.1">CommonJS module spec</a>. <a href="https://github.com/umdjs/umd">UMD</a>, which is CommonJS compatible, also works.</p><p>Now, let’s create a very tiny module and name the file <strong>index.js</strong>.</p><pre>&#39;use strict&#39;;<br><br><em>/**<br> * Adds commas to a number<br> * </em><strong><em>@param </em></strong><em>{number} number<br> * </em><strong><em>@param </em></strong><em>{string} locale<br> * </em><strong><em>@return </em></strong><em>{string}<br> */<br></em>module.exports = <strong>function</strong>(number, locale) {<br>    <strong>return </strong>number.toLocaleString(locale);<br>};</pre><p><strong><em>Confession</em></strong>: I know this module is pretty pointless since browser support is already there via the native <em>toLocaleString</em> method. However, I wanted to get this working in Node by passing in different locales, and I just couldn’t figure it out. Hints are welcome!</p><p><strong><em>Side note</em></strong>: Sindre Sorhus is the author of over <a href="https://www.npmjs.com/~sindresorhus">600</a> modules on npm. He recently wrote a long <a href="https://github.com/sindresorhus/ama/issues/10#issuecomment-117766328">GitHub comment about why we should use small modules</a>.</p><h3>Write some tests</h3><p>I’m going to use the <a href="http://mochajs.org/"><strong>Mocha</strong></a> testing framework and <a href="http://chaijs.com/"><strong>Chai</strong></a> assertion library, but you can use whatever you like. In your project root</p><pre>npm i mocha -D<br>npm i chai -D</pre><p>Check your package.json file, and you should notice that both are now added to the “<em>devDependencies</em>” section since they are only required during development and not at runtime.</p><p><strong><em>Fun facts!</em></strong></p><ul><li><strong>-D</strong> is the same as <strong>--save-dev</strong></li><li><strong>-S</strong> is the same as <strong>--save</strong></li></ul><p>Create a <strong>test </strong>folder and a <strong>test.js </strong>file inside of it.</p><pre>mkdir test &amp;&amp; touch test/test.js</pre><p>Add the following tests to the <strong>test.js </strong>file. I’m new to writing unit tests, so feel free to make them better.</p><pre>&#39;use strict&#39;;<br><br><strong>var </strong>expect = require(&#39;chai&#39;).expect;<br><strong>var </strong>numFormatter = require(&#39;../index&#39;);<br><br>describe(&#39;#numFormatter&#39;, <strong>function</strong>() {<br>    it(&#39;should convert single digits&#39;, <strong>function</strong>() {<br>        <strong>var </strong>result = numFormatter(1);<br>        expect(result).to.equal(&#39;1&#39;);<br>    });<br><br>    it(&#39;should convert double digits&#39;, <strong>function</strong>() {<br>        <strong>var </strong>result = numFormatter(12);<br>        expect(result).to.equal(&#39;12&#39;);<br>    });<br><br>    it(&#39;should convert triple digits&#39;, <strong>function</strong>() {<br>        <strong>var </strong>result = numFormatter(123);<br>        expect(result).to.equal(&#39;123&#39;);<br>    });<br><br>    it(&#39;should convert 4 digits&#39;, <strong>function</strong>() {<br>        <strong>var </strong>result = numFormatter(1234);<br>        expect(result).to.equal(&#39;1,234&#39;);<br>    });<br><br>    it(&#39;should convert 5 digits&#39;, <strong>function</strong>() {<br>        <strong>var </strong>result = numFormatter(12345);<br>        expect(result).to.equal(&#39;12,345&#39;);<br>    });<br><br>    it(&#39;should convert 6 digits&#39;, <strong>function</strong>() {<br>        <strong>var </strong>result = numFormatter(123456);<br>        expect(result).to.equal(&#39;123,456&#39;);<br>    });<br><br>    it(&#39;should convert 7 digits&#39;, <strong>function</strong>() {<br>        <strong>var </strong>result = numFormatter(1234567);<br>        expect(result).to.equal(&#39;1,234,567&#39;);<br>    });<br><br>    it(&#39;should convert 8 digits&#39;, <strong>function</strong>() {<br>        <strong>var </strong>result = numFormatter(12345678);<br>        expect(result).to.equal(&#39;12,345,678&#39;);<br>    });<br>});</pre><h3><strong>Run our tests</strong></h3><p>Because our <strong>package.json</strong> file already has the following via npm init</p><pre>&quot;scripts&quot;: {<br>  &quot;test&quot;: &quot;mocha --reporter spec&quot;<br>}</pre><p>You can now run your tests from your command line with</p><pre>npm test</pre><p>Change reporter type from “<strong>spec</strong>” to “<strong>nyan</strong>” for a little fun.</p><h3>Write a good README</h3><p>Update the <strong>README.md</strong> (markdown) file with details and usage examples for your users, especially since this will be displayed prominently on GitHub and npm.</p><p>Read <a href="https://pages.18f.gov/open-source-guide/making-readmes-readable/"><strong>this</strong></a> to learn the art of writing a good README, and here’s a good <a href="https://gist.github.com/jxson/1784669"><strong>template</strong></a>.</p><pre><strong>Number Formatter<br>=========<br></strong><br>A small library that adds commas to numbers<br><br><strong>## Installation<br><br>  </strong>`npm install @jdaudier/number-formatter`<br><br><strong>## Usage<br><br></strong>    var numFormatter = require(&#39;@jdaudier/number-formatter&#39;);<br><br>    var formattedNum = numFormatter(35666);<br>  <br>  <br>  Output should be `35,666`<br><br><br><strong>## Tests<br><br>  </strong>`npm test`<br><br><strong>## Contributing<br></strong><br>In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.</pre><p><strong><em>Reminder</em></strong>: Don’t forget to update the README above with your own project name, and if you’re publishing a scoped module, update it to</p><pre>@username/project-name</pre><p><strong><em>Note</em></strong>: It is also a common practice to have a separate <a href="https://github.com/babel/babel/blob/master/CONTRIBUTING.md"><strong>CONTRIBUTING.md</strong></a> file for your contribution guidelines.</p><h3>Commit &amp; push to GitHub</h3><p>Let’s create a version tag as well.</p><pre>git add .</pre><pre>git commit -m “Initial release”</pre><pre>git tag v0.1.0</pre><pre>git push origin master --tags</pre><h3>Publish to npm</h3><pre>npm publish</pre><p>If you run into errors with the above command, it could mean that the package name is already taken. In that case, you might want to either rename or scope your package.</p><p><strong>Scoped packages are private by default.</strong> To publish private modules, you need to be a paid <a href="https://www.npmjs.com/private-modules">private modules</a> user.</p><p>However, <strong>public</strong> scoped modules are free and don’t require a paid subscription. To publish a public scoped module, <strong>set the access option when publishing it. This option will remain set for all subsequent publishes.</strong></p><pre>npm publish --access=public</pre><p><strong><em>Pro tip!</em></strong> When creating a scoped module, it’s a good idea to check your <strong>package.json</strong> before publishing just to make sure that the name of your package is “@username/project-name” — otherwise it won’t be scoped and if it’s meant to be private, it will end up being public by accident.</p><p>Log in to your npm account and your module should show up there. <strong>Congrats! You’ve just published your first Node module.</strong></p><h3><strong>Add continuous integration</strong></h3><p><a href="https://travis-ci.org/">Travis CI</a> is a lightweight continuous integration tool that runs tests on every commit to your GitHub repo, even pull requests. It’s free for open source projects.</p><p>Log in to your Travis CI account, and follow these steps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8i6_xJ4GnP9SFPy9eFW3uA.png" /></figure><p>This is what your <strong>.travis.yml</strong> file should look like in the project root</p><pre>language: node_js<br><br>node_js:<br>  - stable<br><br>install:<br>  - npm install<br><br>script:<br>  - npm test</pre><p><strong>Commit</strong> and <strong>push</strong> to GitHub.</p><p>Log in to Travis to see your build status! You will also get email notifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PO1vrw0v84juEU18U-I_QQ.png" /><figcaption>Email notifications on build status from Travis</figcaption></figure><h3>Add code coverage statistics</h3><p><a href="http://gotwarlost.github.io/istanbul/">Istanbul</a> is a JavaScript code coverage library that will check statement, branch, and function coverage statistics by inserting lines of code into your JavaScript as your tests run and then report back how many of its inserted lines were called.</p><p><a href="https://coveralls.io/">Coveralls</a> is a test coverage reporter that you can integrate with Travis. It formats the coverage data in a nice way. You can get pretty much everything from the reports from Istanbul, but only locally and less pretty.</p><pre>npm i coveralls -D<br>npm i istanbul -D</pre><p>Log in to Coveralls with your GitHub account, click the “<strong>ADD REPO</strong>” button, and <strong>toggle the switch</strong> to enable the repo for which you want code coverage statistics. To use Coveralls, your code must be hosted on GitHub or <a href="https://bitbucket.org/">Bitbucket</a>.</p><p>Configure your <strong>package.json</strong> file for Istanbul and Coveralls by adding a new script named “<strong>cover</strong>”:</p><pre>&quot;scripts&quot;: {<br>  &quot;test&quot;: &quot;node_modules/.bin/mocha --reporter spec&quot;,<br>  <strong>&quot;cover&quot;: &quot;node_modules/istanbul/lib/cli.js cover node_modules/mocha/bin/_mocha -- -R spec test/*&quot;</strong><br>},</pre><p>And update your <strong>.travis.yml </strong>file to this</p><pre>language: node_js</pre><pre>node_js:<br>  - stable</pre><pre>install:<br>  - npm install<br><br>script:<br>  - <strong>npm run cover</strong><br><br><strong><em># Send coverage data to Coveralls<br></em>after_script: &quot;cat coverage/lcov.info | node_modules/coveralls/bin/coveralls.js&quot;</strong></pre><p>Now you can run your tests and code coverage stats from your command line with</p><pre>npm run cover</pre><p>Now, <strong>commit</strong> and <strong>push</strong> to GitHub.</p><p>Travis will now invoke Istanbul, and Istanbul will run an lcovonly code coverage report, save that info to coverage/lcov.info, and pipe that data to the Coveralls library.</p><p>Log in to Coveralls to check and see if everything executed smoothly.</p><h3>Add some sweet badges</h3><p>Now that you’ve wired your repo to run tests on Travis and send coverage data to Coveralls, you’re probably wondering how to get those sweet badges on your GitHub and npm repos.</p><h4><strong>Travis</strong></h4><p>Click on the <strong>settings</strong> toggle next to your repo on Travis CI, and click on the badge icon.</p><p>Choose <strong>Markdown</strong> and add the code to your README.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rjjigrBbGXy6iRwTJbWDIw.png" /><figcaption>Markdown code for Travis build status badge</figcaption></figure><h4>Coveralls</h4><p>Log in to Coveralls, click on your repo, click the “<strong>BADGE URLS</strong>” dropdown, and add the Markdown code to your <strong>README</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HnwuOvI_C85ApRVDOApFJA.png" /><figcaption>Markdown code for Coveralls code coverage badge</figcaption></figure><p><strong>Commit</strong> and <strong>push</strong> to GitHub.</p><p>Travis will run your tests, and you can see your build status in your GitHub README.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/202/1*xHO6lAKJa7bL6JOzadlodA.png" /><figcaption>Build passed</figcaption></figure><p>If the build succeeds, you should see this badge.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/172/1*yVhK8rgBBj56P-Y86j2_6g.png" /><figcaption>Build failed</figcaption></figure><p>If the build fails, you will see this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/228/1*ITIALzNmX8oi2nTdluEFtA.png" /><figcaption>Code coverage badge from Coveralls</figcaption></figure><p>You should also see another badge from Coveralls showing your code coverage stats.</p><h3><strong>Release a new version</strong></h3><p>Now that we have our sweet badges on GitHub, let’s get them on npm as well.</p><p>The only way to update npm is to release a new version, even if you’re just fixing a typo. npm will not allow you to re-publish to the same number.</p><p>So let’s create a new release by bumping the version in your <strong>package.json</strong>. To do that, you can use edit the file manually or use</p><pre>npm version &lt;update_type&gt; -m &quot;&lt;message&gt;&quot;</pre><p>where <strong>update_type</strong> is one of the <a href="http://semver.org/">semantic versioning</a> release types:<br><strong>patch</strong>, <strong>minor</strong>, or <strong>major</strong>.</p><p>So let’s do</p><pre>npm version patch -m &quot;Version %s - add sweet badges&quot;</pre><p><strong>%s</strong> = the new version number.</p><p>This command will bump the version number in <strong>package.json</strong>, add a new commit, and tag it with this release number.</p><p><strong><em>Note</em></strong>: Your Git working directory has to be <strong>clean</strong> before you can run <strong>npm version</strong>.</p><p>After bumping the version number</p><pre>git push &amp;&amp; git push --tags (or git push origin master --tags)</pre><pre>npm publish</pre><p>Now if you go to your published module on npm, you should see your new release with the two sweet badges!</p><h3>Test out your module</h3><p>Create a new directory and a <strong>package.json</strong> file.</p><pre>{<br>  &quot;dependencies&quot;: {<br>    &quot;project-name&quot;: &quot;*&quot;<br>  }<br>}</pre><p>Then from the command line</p><pre>npm i</pre><p>Create an <strong>index.js</strong> file with the following content</p><pre>var<strong> </strong>numFormmater = require(&#39;project-name&#39;);<br><br>var<strong> </strong>formattedNum = numFormmater(234324234);<br><br>console.log(formattedNum);</pre><p><strong><em>Reminder</em></strong>: If you published a scoped module, update the project name to</p><pre>@username/project-name</pre><p>Then from the command line</p><pre>node index</pre><p>You should see a console log of</p><pre>234,324,234</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*9U1NVP6GjFx8WlmLFs3-Mg.gif" /><figcaption>Oh, the sweet smell of success!</figcaption></figure><h3>More info</h3><ul><li>Sample <a href="https://github.com/jdaudier/numberFormatter">repo</a> with completed code</li><li><a href="https://ericdouglas.github.io/2015/09/27/checklist-for-your-new-open-source-javascript-project/">Checklist for Your New Open Source JavaScript Project</a></li><li><a href="http://h3manth.com/new/blog/2015/authoring-node-modules/">Authoring Node Modules</a></li><li><a href="http://slides.com/seldo/npm-past-present-and-future?token=xYgn8LKj#/">npm past, present and future</a></li><li><a href="https://strongloop.com/strongblog/npm-modules-travis-coveralls/">Building Better npm Modules with Travis and Coveralls</a></li><li><a href="http://slidedeck.io/saintedlama/be-a-good-npm-module">Be a Good npm Module!</a></li><li><a href="http://danhough.com/blog/nodejs-maintainer/">How to be a Better Node Module Maintainer</a></li><li><a href="http://johnheroy.com/2014/11/11/code-coverage-statistics-using-coveralls-and-istanbul.html">Code Coverage Statistics Using Coveralls and Istanbul</a></li><li><a href="http://www.toptal.com/open-source/developers-guide-to-open-source-licenses">Developer’s Guide to Open Source Licenses</a></li><li><a href="https://github.com/OmerHerera/badges">Badges, Badges, Badges</a></li><li><a href="https://docs.npmjs.com/cli/link">Symlink a Package Folder</a> — SUPER useful for working on modules before publishing them, especially in the context of a larger app</li></ul><h3>Special thanks to</h3><ul><li><a href="https://quickleft.com/blog/creating-and-publishing-a-node-js-module/">Quick Left’s post</a> on the same topic</li><li><a href="https://github.com/paulfalgout">Paul Falgout</a>, <a href="https://github.com/jmeas">James Smith</a>, <a href="https://github.com/jridgewell">Justin Ridgewell</a> for reviewing this (best brain trust ever)</li><li><a href="https://twitter.com/rockbot">Raquel Vélez</a> for giving me great suggestions from an insider’s POV</li></ul><figure><a href="http://bit.ly/codeburst"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i3hPOj27LTt0ZPn5TQuhZg.png" /></a></figure><blockquote>✉️ <em>Subscribe to </em>Codeburst’s<em> once-weekly </em><a href="http://bit.ly/codeburst-email"><strong><em>Email Blast</em></strong></a><strong><em>, </em></strong>🐦 <em>Follow </em>Codeburst<em> on </em><a href="http://bit.ly/codeburst-twitter"><strong><em>Twitter</em></strong></a><em>, and </em>🕸️ <a href="http://bit.ly/learn-web-dev-codeburst"><strong><em>Learn Full Stack Web Development</em></strong></a><em>.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=444e7585b738" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/how-to-create-and-publish-your-first-node-js-module-444e7585b738">How to Create and Publish Your First Node.js Module</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 68 of 68: My Experience at MakerSquare Coding Bootcamp]]></title>
            <link>https://medium.com/@jdaudier/day-68-of-68-my-experience-at-makersquare-coding-bootcamp-fafa17ec3e41?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/fafa17ec3e41</guid>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Sat, 04 Apr 2015 03:47:05 GMT</pubDate>
            <atom:updated>2015-04-04T03:55:55.829Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*jBrEhNBtWJuH0c3ekeODTA.jpeg" /><figcaption>Last day!</figcaption></figure><p><em>Aug 16, 2013</em> — Ten weeks have flown by and my MakerSquare bootcamp experience have ended. On the last week, we wrapped up our group projects and practiced giving demo presentations for the Career Day on the last Friday.</p><p>I’ve been getting contacted by people about my experience, and I figure I’d post an entry with my answers in case it helps others who are thinking of joining a coding bootcamp like MakerSquare.</p><h3><strong>Q: How did you make or find all these cute pictures?</strong></h3><p>I created the images by drawing on a Wacom Bamboo board with SketchBook Express. If you have an iPad, there’s an app called <a href="https://itunes.apple.com/us/app/paper-by-fiftythree/id506003812?mt=8">Paper</a> that makes what you draw look cool (kinda like what Instagram did for photos).</p><p>The ideas for my comics were inspired by what happened in class from what the instructors were saying or during a conversation with classmates.</p><h3><strong>Q: I was wondering what advice you might have for someone that is entering this course.</strong></h3><p>Work hard but find time to relax at least one day out of the week. We’re only human, after all. The more prepared you are coming in via the pre-work, the more advanced you can get and the more you can contribute to team projects. You get out what you put in as you might’ve heard.</p><h3><strong>Q: What worked well for you, what if anything would you do differently knowing what you know now?</strong></h3><p>My group project, <a href="http://codermatch.me/">CoderMatch</a>, turned out really well because I had a great partner who complemented my skills. You learn a lot about your working style when you pair up with someone. BTW, if you’re learning to code, please test out our app because it’s not a party unless there’s people, right?</p><p>And my first Ruby app, <a href="http://gifanator.com/">Gifanator</a>, was a hit with my classmates because it was silly and fun.</p><p>What would I do differently? I would code more on the weekends since I felt that I had too much fun playing soccer and goofing off on the net and not being very productive.</p><h3><strong>Q: What was the best part of your experience?</strong></h3><ul><li>Meeting cool people and struggling with them together.</li><li>Having awesome mentors and even strangers that are willing to help you.</li><li>Learning at a faster rate than what I would’ve done on my own.</li><li>Eating the best avocado salad at <a href="http://www.tacodeli.com/">Tacodeli</a>.</li></ul><h3><strong>Q: What was the biggest challenge you encountered? How did you overcome it?</strong></h3><p>Ten weeks goes by <em>really</em> fast and a lot of the topics were introduced to us in passing such as scope, RSpec, etc. It is hard to remember everything when you’ve only seen or used it once or twice. So the biggest challenge is putting what you’ve learned to use. I’m not sure if I overcame this yet, I’m just trying to code as much as I can to practice what I’ve learned.</p><p>I’ve also noticed a change in myself in that I turn to Google for real-life issues that I run into as well. My roommates couldn’t figure out how to turn on the new shower, and I Google the make and model and solved it. In the past, I wouldn’t have turned to Google that fast, but coding has trained me to become a professional Googler of life.</p><p>I’ve also realized that being a developer means you are learning new things <strong><em>your whole life</em></strong>. The learning doesn’t end here, and I think that’s a great thing!</p><p><em>(Got more questions for me? Ask away.)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*BgMvaMdCDXByyPMqc-homg.jpeg" /><figcaption>Inaugural cohort</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fafa17ec3e41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 64 of 68: My Experience at MakerSquare Coding Bootcamp]]></title>
            <link>https://medium.com/@jdaudier/day-64-of-68-my-experience-at-makersquare-coding-bootcamp-183fb09a8eef?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/183fb09a8eef</guid>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Sat, 04 Apr 2015 03:41:16 GMT</pubDate>
            <atom:updated>2015-04-04T03:41:16.816Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Aug 12, 2013</em> — One thing I’ve learned in this bootcamp is the importance of formulating your question when you need someone to help you. Has it happened to you that during the process of explaining your question to someone, you end up solving the problem yourself?</p><p>So there’s a technique we learned called <a href="http://www.codinghorror.com/blog/2012/03/rubber-duck-problem-solving.html">“rubber ducking”</a>, and what you do is when you have a bug or issue, try to explain that to a rubber duck or imaginary person, and usually in doing so, the answer will hit you. It also helps you to think through your problem <em>before</em> you ask others to.</p><p>Our instructors actually bought us a handful of rubber ducks to use in class… ones that don’t squeak, of course, or else that would just be too tempting.</p><p>So, “rubber duck” me in the comments below if you have a Ruby on Rails question. I sure had a ton of questions when I was working on my <a href="http://www.codermatch.me/">CoderMatch</a> project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*3RoneR7kg2k6b_dP5X62AQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=183fb09a8eef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 59 of 68: My Experience at MakerSquare Coding Bootcamp]]></title>
            <link>https://medium.com/@jdaudier/day-59-of-68-my-experience-at-makersquare-coding-bootcamp-dabff335a84f?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/dabff335a84f</guid>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Sat, 04 Apr 2015 03:38:54 GMT</pubDate>
            <atom:updated>2015-04-04T03:47:37.874Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Aug 7, 2013 </em>— This week we learned about TDD. The idea is to go from red, to green, and refactor.</p><p><strong>Step 1</strong>: Write a test that fails (red)<br><strong>Step 2</strong>: Write only enough code for it to pass (green)<br><strong>Step 3</strong>: Improve code quality (refactor)</p><p>In order to have your tests fail, you must “<strong>exorcise the bug</strong>”, according to our instructor <a href="https://twitter.com/techpeace">Matt</a>. What that means is, you must call upon the bug and make it so angry that it appears — levitating, spinning its head with green puke and all.</p><p>So ya, that would be the “red” in the “red/green/refactor” cycle. You have know what kind of “demon” you’re dealing with first before you can make it go away. I have to say “exorcising the bug” is something I deal with on a daily basis as a new developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*8T63nVVs361PoClm4dqlew.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dabff335a84f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 54 of 68: My Experience at MakerSquare Coding Bootcamp]]></title>
            <link>https://medium.com/@jdaudier/day-54-of-68-my-experience-at-makersquare-coding-bootcamp-d3f4654b3796?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/d3f4654b3796</guid>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Sat, 04 Apr 2015 03:36:21 GMT</pubDate>
            <atom:updated>2015-04-04T03:36:21.762Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Aug 2, 2013 </em>— This week we learned about using ActionMailer to send email, using scopes, and Rails helpers. On Thur and Fri, we had a mini-hackathon during class. My partner <a href="https://twitter.com/gdiingo">Gene</a> and I made great progress on our app, <a href="http://codermatch.me/">CoderMatch</a>, by adding Google maps of the users and designing a nice HTML mailer. The MVP of the app is coming along quite nicely, one baby step at a time. Now, we just need a few more beta testers who are coders!</p><p><a href="https://twitter.com/schneems">Richard Schneeman</a> dropped by during the hackathon and chatted with us a bit. We ended up chatting about how the syntax for form helpers in Rails is hard to remember. I told him that he should change it since he’s a contributor to Rails. He mentioned how those things are hard to change due to “bikeshedding”. Apparently, developers fight over the little things and can’t agree on them, so then nothing is changed.<br>So I learned a new tech term from him and, funny enough, my mentor <a href="https://twitter.com/karmajunkie">Keith</a> used the same term as well a few days later. This must be an important term for coders since I heard it twice in one week.</p><p>So here’s your Word of the Day in visual form:</p><p><strong>Bikeshedding</strong></p><p><strong>Definition</strong>:<br>Technical disputes over minor, marginal issues conducted while more serious ones are being overlooked. The implied image is of people arguing over what color to paint the bicycle shed while the house is not finished.</p><p><strong>Used in a sentence</strong>:<br>I’m not pointing fingers as I get sucked into those discussions just like everyone else, but the bikeshedding-to-action ratio is fabulously high.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SLWIKdf7W3-UNNNuuXkuLw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d3f4654b3796" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Day 52 of 68: My Experience at MakerSquare Coding Bootcamp]]></title>
            <link>https://medium.com/@jdaudier/day-52-of-68-my-experience-at-makersquare-coding-bootcamp-4eb19c4d7f1a?source=rss-90a662a100da------2</link>
            <guid isPermaLink="false">https://medium.com/p/4eb19c4d7f1a</guid>
            <dc:creator><![CDATA[Joanne]]></dc:creator>
            <pubDate>Sat, 04 Apr 2015 03:34:36 GMT</pubDate>
            <atom:updated>2015-04-04T03:34:36.969Z</atom:updated>
            <content:encoded><![CDATA[<p>July 31, 2013 — I’m currently in the middle of a free trial with <a href="https://codeclimate.com/">Code Climate</a> which helps in analyzing the code for my group project, <a href="http://www.codermatch.me/">CoderMatch</a>. Last night, I got an alert from Code Climate about a possible SQL injection. And serendipitously, this morning I came across an article titled “<a href="http://www.troyhunt.com/2013/07/everything-you-wanted-to-know-about-sql.html">Everything you wanted to know about SQL injection (but were afraid to ask)</a>”.</p><p>I assume this coincidence is a sign telling me that I should draw about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*FAjyuS1zZYilGx07ck5mrQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4eb19c4d7f1a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>