<?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 Melanie Phillips on Medium]]></title>
        <description><![CDATA[Stories by Melanie Phillips on Medium]]></description>
        <link>https://medium.com/@melaniecp?source=rss-17c800c93da9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*jPc7opy2BAMwcW9e3YPjXA.jpeg</url>
            <title>Stories by Melanie Phillips on Medium</title>
            <link>https://medium.com/@melaniecp?source=rss-17c800c93da9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 12:05:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@melaniecp/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[How to (easily) customize checkboxes with CSS in 2019]]></title>
            <link>https://medium.com/@melaniecp/how-to-easily-customize-checkboxes-with-css-in-2019-64f9a0d1f09a?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/64f9a0d1f09a</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Thu, 16 May 2019 18:39:26 GMT</pubDate>
            <atom:updated>2019-05-16T18:42:32.086Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to (easily) customize checkboxes with just CSS in 2019</h3><p>Styling a checkbox is something I look up every time I have to do it. I always hope that FINALLY I’ll be able to style the (let’s be honest) ugly default HTML boxes with CSS. That still isn’t the case.</p><p>So I’ve come up with my own standard way of doing it so that I don’t have to Franken-code it every time. I’ve also decided to share it with you, hoping that it will save you a little time and frustration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uXReRq6bj50Y0xIhTm9PYg.jpeg" /><figcaption>Woman biting pencil while sitting on a chair in front of a computer during daytime (Photo by <a href="https://unsplash.com/photos/-2vD8lIhdnw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">JESHOOTS.COM</a> on <a href="https://unsplash.com/search/photos/frustration?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>)</figcaption></figure><p>With this method, it’s easy to customize colours, the shape of the box (or circle, if you want) and even use symbols as your checkmark.</p><p>Since you might be here because you’re already frustrated (and no one reads intros anyway), let’s get to it!</p><h3>Setup: HTML</h3><p>For this example, I’m using two checkboxes. One for chocolate and one for vanilla. Below you will find the HTML layout and what the page render looks like (checked and unchecked).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/96/1*fweBrntfaOrypymytaV9HQ.png" /><figcaption>Two checkboxes; one un-checked with a solid black box and a label of chocolate, the other checked with a black border, black checkmark and white background with a label of vanilla</figcaption></figure><p>The input and both spans are wrapped in the label so that when we click the text, it checks the box. The input is the default HTML checkbox, which we can’t ignore or customize, but we can hide with CSS. (More on that in a minute.)</p><p>The first span is going to be our “stand-in” checkbox (the one we’re going to customize).</p><p>The second span is our label text. We’re doing it this way so that we can easily style it.</p><p>Ok, now for styling…</p><h3>Setup: CSS</h3><p>To make this easy, I’ve labelled the steps in the code and corresponded them to an explanation below:</p><h4>Step 1 — Make the default invisible</h4><p>This is what I referring to above. We’re going to take the ugly default checkbox and set it to opacity 0 to make it functional, but invisible.<em> </em>We also don’t want it to take up any layout space, so set position to absolute.</p><h4>Step 2 — Make the new box, in the unchecked state</h4><p>This is where we style the new box while it’s in an unchecked state.</p><p>Potential customizations for the checkbox:</p><ul><li><strong>Background colour </strong>— this will create the colour of the box (in the example above I’ve used black). Transparent backgrounds with just a border setting are good too.</li><li><strong>Shape</strong> — box, rounded-corner box, or circle (depending on how you set border-radius). Also, be sure to set your border during this step so that your box doesn’t “bounce” when it switches to the checked state later.</li><li><strong>Size </strong>— determined by height and width (Note: You need to have it set to display: inline-block to be able to set the width properly)</li></ul><h4>Step 3 — Make the new check, in the unchecked state</h4><p>Now we decide what our checkmark is going to look like, but make it invisible again with opacity because it’s still in the unchecked state. We’re using emojis in the content value and changing the colour simply by setting the font colour.</p><p>Potential customizations for the checkmark:</p><ul><li><strong>Simple</strong> — For simple options, <a href="https://www.toptal.com/designers/htmlarrows/">this site</a> is a great reference for the basics. All you need to do is copy and paste the symbol you want from the site into the content parenthesis on your CSS stylesheet. I’ve used a basic checkmark for the example, but you can also go…</li><li><strong>Wild</strong> — Channel Web Bos and pick things like tacos. <a href="https://emojipedia.org/taco/">This </a>website has everything you need to go emoji wild. The internet is your oyster.</li></ul><h4>Step 4 — Make the new checkbox, in the checked state</h4><p>This is where we change what the box is going to look like (remember, the box and not the checkmark) when the item is checked.</p><p>In the example above, I’ve used white to match the default background of the page. But you can do transparent, peachpuff (it’s a thing), etc.</p><p>For a simple design idea that looks great, make the box background transparent and have the checkbox match the box background colour from the unchecked state.</p><p>But again, you can do tacos, sooooo…</p><h4>Step 5 — Make the new checkmark, in the checked state</h4><p>This is where we change the styling of the checkmark, but also where it’s going to be located within the checkbox. This is important because different emojis will have different sizes, and so will your checkboxes. So make this position relative and then adjust your left and top properties to allow you to position the checkmark where you want it within the box.</p><p>That’s it!</p><p>For a full code example, check it out <a href="https://github.com/MelanieL/custom_css_checkbox">here</a>.</p><p>Until next time, good luck and have fun! (And eat tacos!!!)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=64f9a0d1f09a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top 5 free design tools for non-designers in 2019]]></title>
            <link>https://uxdesign.cc/top-5-free-design-tools-for-non-designers-in-2019-f460ff9ce34?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f460ff9ce34</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[design-tools]]></category>
            <category><![CDATA[user-experience]]></category>
            <category><![CDATA[web-design]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Thu, 09 May 2019 18:36:46 GMT</pubDate>
            <atom:updated>2019-05-11T01:24:12.864Z</atom:updated>
            <content:encoded><![CDATA[<p>As a web developer who enjoys making personal projects, trying to make my creations look nice (without a designer) is often the most difficult task.</p><p>I’m new to design. I have to try really hard to make things look like they don’t belong in the Internet Archives, or worse, as one of those April Fools Day 90s throwbacks. (Well done, Stack Overflow!)</p><p>And I’m not afraid of hard work, but I’m certainly a fan of anything that lightens the load.</p><p>So, below is a list of five (free!) design tools that I use pretty often for personal web development projects.</p><h3>1. Pinterest</h3><p>That’s right, <a href="https://www.pinterest.com/">Pinterest</a> isn’t just for soccer (helicopter, lawnmower, snowplow, whatever…) moms anymore. It’s a great resource for finding simple layout ideas, quickly.</p><p>I can search for things like “mobile form layout” or “desktop gallery layout food”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9dZj-qFaxmiJHsFf" /></figure><p>Sites like Dribble are great, but Pinterest has the added benefit of allowing users to save content from external sites. So if I see a page or an idea that I like and want to “Pin” to an existing project board, I can do it easily with the Chrome Extension.</p><h3>2. Coolors</h3><p>I don’t have a “knack” for colour matching. That’s probably why my wardrobe consists mostly of blue jeans and black tops. I don’t do it because I want to pay homage to Steve Jobs (or, ugh, Elizabeth Holmes). I do it because it’s easy and makes me look like I know what I’m doing.</p><p>But because I’m pretty sure the denim and black method doesn’t translate well to web design, I just use <a href="https://coolors.co/">Coolors</a>.</p><p>Coolors shows me palettes until I find one that I like, or even better, one that matches a design I’ve already selected on Pinterest. It provides hex codes, exports SCSS files, and will even match colours I already have in mind. I wrote an <a href="https://medium.com/@melaniecp/generate-a-coolors-palette-based-on-specific-colours-a80258546f3a?source=friends_link&amp;sk=632ca1c8770daf5770e0ea7d0739480f">article</a> a while back that explains how to use the colour match feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cOu6R30LJ6CtgOKo" /></figure><p>I can’t give this web app enough praise.</p><h3>3. Google Fonts</h3><p>So I know most web developers are familiar with <a href="https://fonts.google.com/">Google Fonts</a>. But I didn’t know about the font pairing feature until someone told me about it.</p><p>Here’s how it works… I find a Google Font I’m using and go to its main page. I’ll pick Baloo Bhai for this example because it looks silly and the name is fun. I scroll down and there’s a handy section called “Popular Pairings”. It shows a list of potential fonts that pair well with the one I’ve selected. It also allows me to swap out which is the title font and which is the body font in the text sample by clicking the arrow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JeHQo1FTYxGs4gK2" /></figure><p>If I’m worried about matching the font to my Pinterest design, then I don’t get too crazy. I try to pick something that looks close enough (or something really plain if I’m not sure), and it usually works out.</p><h3>4. Pixlr</h3><p>I don’t find Photoshop particularly intuitive, and it’s REALLY expensive if you aren’t using it regularly for business. (Sorry, Adobe!) But sometimes, images still need a little TLC. That’s why I use <a href="https://pixlr.com/x/">Pixlr</a>.</p><p>It’s free. It’s quick to get started. And it’s easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*aFMXnj2fyXCOcctV" /></figure><p>I’m not well versed in Photoshop at all, but I can navigate my way around Pixlr just fine. It’s UI is user-friendly and painless. Whether I need to re-size, crop, or tweak some colouring, it has everything I need to do basic image editing.</p><h3>5. Vectr</h3><p>I learned about this one recently. I was mentoring at a workshop and a learner asked me how to easily generate a logo, and get an SVG version of it. After a quick Google search, I found <a href="https://vectr.com/">Vectr</a>. Within 5 minutes, I had mocked up a logo with some initials and colours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dIaGCMthBshHKfbx" /></figure><p>Out of all the tools above, this one requires the most creativity. But when in doubt, I just make a logo with some initials and match them to my colour palette (it accepts hex codes) and it’s usually decent. I also always use a square shape so it can be used as a favicon, a social media icon, etc.</p><p>And that’s it.</p><p>These tools have made a huge impact on my (non-designer) design toolbox. I really hope they do the same for you. Good luck, and have fun!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f460ff9ce34" width="1" height="1" alt=""><hr><p><a href="https://uxdesign.cc/top-5-free-design-tools-for-non-designers-in-2019-f460ff9ce34">Top 5 free design tools for non-designers in 2019</a> was originally published in <a href="https://uxdesign.cc/">UX Collective</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to be productive using 5 simple rules]]></title>
            <link>https://medium.com/@melaniecp/how-to-be-productive-using-5-simple-rules-7869a0eec478?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7869a0eec478</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[pomodoro-technique]]></category>
            <category><![CDATA[getting-things-done]]></category>
            <category><![CDATA[procrastination]]></category>
            <category><![CDATA[getting-started]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Thu, 25 Apr 2019 17:36:40 GMT</pubDate>
            <atom:updated>2019-04-25T17:36:40.214Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_OldpXLjx_O7verqWfTcBQ.jpeg" /><figcaption>Clean desk with laptop, desktop, phone and drawing tablet. Photo by <a href="https://unsplash.com/photos/EhTcC9sYXsw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Domenico Loia</a> on <a href="https://unsplash.com/search/photos/productivity?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>I’m a productive person. I attended <a href="https://hackeryou.com/">HackerYou</a>’s full-time Web Development program in early 2018, and was one of the few successful applicants who didn’t take the part-time coding intro course. I self-taught my HTML, CSS and Git skills. And I learned more than enough to pass the technical assessment. When the program started, several peers told me they had no idea how I did it without the course, especially while I was working full-time in a demanding career.</p><p>Well, here’s how.</p><p>My 5 rules for being productive, personally and professionally. This is how I get more done when life is “full”. I’m sure you’ve seen some before, but hopefully you can find something useful.</p><h3>1. Less caffeine, more sleep</h3><p>Many years ago, I was having trouble falling asleep and refusing to believe it was my beloved afternoon coffee. I thought I just had an “overactive mind”. When lack of sleep really started to snowball, I was desperate. So I tried a week with no coffee after 11am, and it changed my life. All of a sudden, my mind was able to wind down at night. And there was a bonus; I was able to focus better in the afternoon. It was like turning down the volume on squirrel brain. And once I started sleeping 8+ hours, it provided more energy and focus than the most potent brew.</p><h3>2. Do the hard stuff first</h3><p>When I review my to do list in the morning, I know which tasks I’d love to avoid at all costs. So I use that morning will power to make them happen first. I know as the day goes on I will have reasons to put those things off. I also know they will stay in the back of my mind, overshadowing everything, until they finally get done. They never take as long as I think they will, and I always feel great when I get them off my plate.</p><h3>3. Don’t worry about perfection, just get it done</h3><p>I know that not everything I do is going to be perfect. And while I’m not saying to half-ass your life, I am saying that something decent and done is better than something put off because it isn’t perfect. A lot of the time, we’re our own worst critic. Perfect is subjective; I notice imperfections others won’t, and vice versa. But I’m sure everyone would notice if I consistently didn’t get things done.</p><h3>4. Give a task 15 minutes</h3><p>I recently read about the “Pomodoro Method”, never realizing before that I’ve been doing it for years. The only difference is I tell myself to do something for 15 minutes instead of 25 minutes (sooooooo long!). The funny thing is, whether I follow the 15 minute (or 25 minute) rule, the result is the same; I always spend more time on the task than I thought I would. Usually the amount of time I think something will take is the deterrent, not the task itself. And once I get started, I usually forget that I didn’t want to be doing it in the first place.</p><h3>5. Work backwards from a goal</h3><p>When Heather Payne told our cohort (17!) at HackerYou that a task takes as long as the time we give it, I knew she spoke my language. I figure out what it is I want to accomplish for the big picture, then break it out into steps and make a timeline. This immediately tells me if what I’m working towards is realistic. I have a better idea of how long the small steps take than the goal as a whole, so I can adjust whether I need more or less time. A realistic goal is a lot easier to accomplish, and I’m not setting myself up for failure. I’m also not giving myself a ridiculous amount of time to complete something simple, which makes more time for better things.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7869a0eec478" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Setting up JavaScript event listeners, with 2 examples (‘click’ and ‘scroll’)]]></title>
            <link>https://medium.com/@melaniecp/setting-up-javascript-event-listeners-with-2-examples-click-and-scroll-ac9f6723609d?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac9f6723609d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Tue, 16 Apr 2019 18:43:13 GMT</pubDate>
            <atom:updated>2019-04-16T18:43:13.985Z</atom:updated>
            <content:encoded><![CDATA[<p>Custom functions are crucial in JavaScript. When we’re just starting out, it can be confusing to understand how to get them to run when we want them to. We know what we want our functions to do, but how do we get them to start?</p><p>The answer: event listeners.</p><p>Event listeners do exactly what they sound like they do; they listen for events (or rather, specific event types) to happen, and then trigger an action.</p><p>In this article, we’re going to look at how to setup event listeners. We’ll also look at two common event listener types, ‘click’ and ‘scroll’, with examples showing how to use them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bAzZy3FGyU9Y4bRYUfhl-A.jpeg" /><figcaption>Table with a keyboard, mouse and cold brew. (Photo by <a href="https://unsplash.com/photos/RC26uHDOZ4c?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Caroline Attwood</a> on <a href="https://unsplash.com/search/photos/person-using-computer-mouse?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>)</figcaption></figure><h3>Event listeners, broken down</h3><p>Here is a small but powerful line of code to get an event listener to run:</p><pre>target.addEventListener(‘type’, functionName);</pre><p>Let’s go through it…</p><p><strong>target </strong>: This is where we put the variable name for the HTML element we want to target with our event listener. A good example of an element we would want to apply an event listener to is a button.</p><p>If we have a button in our web project, and we want it to do something when it’s clicked, we would target the button’s HTML class or ID by storing it as a variable. Then, we would put that variable’s name as the target. (For more on how to target HTML classes and IDs, check out this short but straightforward <a href="https://medium.com/@melaniecp/how-to-target-an-html-class-or-id-with-javascript-1f360a4a0310?source=friends_link&amp;sk=ecb6520fa8634b92c58b0c0a09b5c77d">article</a>.)</p><p>It’s also really common to see the word ‘document’ as the target. Doing so target’s the whole page, instead of just one element. We can see this in practice below in the ‘scroll’ example.</p><p><strong>.addEventListener</strong> : This is the method we’re applying to our target, telling it we have an event listener type we want it to look out for.</p><p><strong>‘type’ </strong>: This is where we list the event listener type. These are premade types, and there’s a full list of all the possibilities <a href="https://developer.mozilla.org/en-US/docs/Web/Events">here</a>. An example would be ‘click’ (it’s also one of the examples later on in this article).</p><p><strong>functionName </strong>: This is the name of the function we want to trigger when the event type happens.</p><p>Now, let’s translate this into working examples using two common event listener types, ‘click’ and ‘scroll’.</p><h3>Click</h3><p>The ‘click’ event listener type is triggered when <em>the mouse is clicked and released</em> on an element.</p><p>Let’s take a look at this in action:</p><p><strong>HTML</strong></p><pre>&lt;div class=”cube cubePrimaryColour”&gt;&lt;/div&gt;</pre><p><strong>CSS</strong></p><pre>.cube {<br> height: 100px;<br> width: 100px;<br>}</pre><pre>.cubePrimaryColour {<br> background: #19647e;<br>}</pre><pre>.cubeSecondaryColour {<br> background: #28afb0;<br>}</pre><p><strong>JavaScript</strong></p><pre>const theCube = document.querySelector(‘.cube’);<br>const htmlClasses = document.querySelector(‘.cube’).classList;</pre><pre>function toggleColour() {<br> if (htmlClasses.contains(“cubePrimaryColour”)) {<br>      htmlClasses.remove(‘cubePrimaryColour’);<br>      htmlClasses.add(‘cubeSecondaryColour’);<br> } else {<br>      htmlClasses.remove(‘cubeSecondaryColour’);<br>      htmlClasses.add(‘cubePrimaryColour’);<br> }<br>};</pre><pre>theCube.addEventListener(‘click’, toggleColour);</pre><p>In the example above, our target is an HTML div with a class of cube. At the top of our script file, we need to turn that element into a variable for this to work. (If you aren’t sure how/why to do this, then check out my article about targeting HTML elements with classes and IDs using JavaScript <a href="https://medium.com/@melaniecp/how-to-target-an-html-class-or-id-with-javascript-1f360a4a0310?source=friends_link&amp;sk=ecb6520fa8634b92c58b0c0a09b5c77d">here</a>.)</p><p>We’re adding an event listener type called ‘click’. When the cube is clicked in our project, the toggleColour function will run. This will cause our cube to change colour every time it’s clicked.</p><p><a href="https://github.com/MelanieL/js_mini_projects/tree/master/06_mediumarticle_eventlistenertypes/ex01_click">Here</a> is a link to the full code for the ‘click’ example above.</p><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/Element/click_event">Here</a> are the full docs for the ‘click’ event type.</p><h3>Scroll</h3><p>The ‘scroll’ event listener type is triggered when <em>the document view or an element has been scrolled</em>.</p><p>Let’s take a look at this in action:</p><p><strong>HTML</strong></p><pre>&lt;div class=”cube cubePrimaryColour”&gt;&lt;/div&gt;</pre><p><strong>CSS</strong></p><pre>html {<br> height: 130vh;<br>}</pre><pre>.cube {<br> margin-top:40vh;<br> height: 100px;<br> width: 100px;<br>}</pre><pre>.cubePrimaryColour {<br> background: #19647e;<br>}</pre><pre>.cubeSecondaryColour {<br> background: #28afb0;<br>}</pre><p><strong>JavaScript</strong></p><pre>const theCube = document.querySelector(‘.cube’);<br>const htmlClasses = document.querySelector(‘.cube’).classList;</pre><pre>function toggleColour() {<br> if (htmlClasses.contains(“cubePrimaryColour”)) {<br>      htmlClasses.remove(‘cubePrimaryColour’);<br>      htmlClasses.add(‘cubeSecondaryColour’);<br> } else {<br>      htmlClasses.remove(‘cubeSecondaryColour’);<br>      htmlClasses.add(‘cubePrimaryColour’);<br> }<br>};</pre><pre>document.addEventListener(‘scroll’, toggleColour);</pre><p><em>Note: The CSS properties for html height and cube margin-top are only there to make sure that the page scrolls and the cube stays in view for this example.</em></p><p>In the example above, our target is an HTML div with a class of cube. At the top of our script file, we need to turn that element into a variable for this to work. (If you aren’t sure how/why to do this, then check out my article about targeting HTML elements with classes and IDs using JavaScript <a href="https://medium.com/@melaniecp/how-to-target-an-html-class-or-id-with-javascript-1f360a4a0310?source=friends_link&amp;sk=ecb6520fa8634b92c58b0c0a09b5c77d">here</a>.)</p><p>We’re adding an event listener type called ‘scroll’ and we’re targeting the document. This means that when the page is scrolled, the toggleColour function will run. This causes our cube to change colour every time we scroll.</p><p>It’s important to note that it will keep changing colour because we keep scrolling to get to the bottom/top of the page. The scroll event happens multiple times on a single full page scroll, because the scroll event type doesn’t mean scrolling the length of the page. Instead, it means each scroll position on your device (which is why running the example with different devices will have different results).</p><p>To learn more about the ‘scroll’ event type and how to control it better, look at scroll event throttling in the ‘scroll’ event type docs <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/scroll_event">here</a>.</p><p><a href="https://github.com/MelanieL/js_mini_projects/tree/master/06_mediumarticle_eventlistenertypes/ex02_scroll">Here</a> is a link to the full code for the ‘scroll’ example above.</p><p>That’s it for event listeners! Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac9f6723609d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Filtering an array’s objects, based on a value in a key value array, using filter() and includes()…]]></title>
            <link>https://medium.com/@melaniecp/filtering-an-arrays-objects-based-on-a-value-in-a-key-value-array-using-filter-and-includes-27268968308f?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/27268968308f</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[objects]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[arrays]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Mon, 08 Apr 2019 01:01:23 GMT</pubDate>
            <atom:updated>2019-04-08T01:01:23.017Z</atom:updated>
            <content:encoded><![CDATA[<h3>Filtering an array’s objects, based on a value in a key value array, using filter() and includes(), with JavaScript</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CddNX_AelPtmz0mbJeAXfQ.jpeg" /><figcaption>Image of a laptop with some code, open, with a notebook and pen on top. (Photo by <a href="https://unsplash.com/photos/TEemXOpR3cQ?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tracy Adams</a> on <a href="https://unsplash.com/search/photos/javascript?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a>)</figcaption></figure><p>We’ve all been there. We can’t figure out why our code isn’t working, and it’s time to Google it. But the examples we find are often one step short of the answer we need.</p><p>There are many examples online about targeting specific objects in an array of objects, based on specific key value pairs. But that’s as deep as the common examples go. This leaves us one step short in situations where the key value pair has an array of values.</p><p>This article takes the next step and shows how to filter objects in an array, based on values in a key value array. There’s also a link to a full code sample at the end.</p><h3>Reviewing What We Know</h3><p>So we know how to find objects in an array of objects with a specific key value pair, but let’s review just in case.</p><p>Let’s say we’re working with a recreation centre on their booking website. A customer wants to book a kid’s party and they know there will be 15 kids attending.</p><pre>const recActivities = [</pre><pre>    { name:’Swimming’, ages: [6, 7, 8], maxCap: 10 },</pre><pre>    { name:’Skating’, ages: [8, 9, 10], maxCap: 20 },</pre><pre>    { name:’Open Gym’, ages: [10, 11, 12], maxCap: 30 }</pre><pre>];</pre><pre>const largeGroup = recActivities.filter(activity =&gt; (activity.maxCap &gt; 15)); </pre><p>We want to find all the activities that can accomodate 15 or more kids.</p><p>Using a basic <strong>filter()</strong> method, we go over each object in the array and evaluate whether or not each activity’s max capacity (key value pair <strong>maxCap</strong>) can handle 15 kids. If the value is greater than 15 kids, we keep the activity as a result in our new <strong>largeGroup</strong> array.</p><p>Easy, right? Cool. Moving on…</p><h3>The Deeper Problem</h3><p>Ok, now let’s say that we need to <strong>filter()</strong> the rec centre activities to find something age appropriate instead. We want to <strong>filter()</strong> the objects in the <strong>recActivities</strong> array to find only the ones that are for a specific age. But we can’t search through key value pairs that contain arrays the same way as we do above.</p><p>So how do we do it?</p><h3>The Solution</h3><p>In comes the <strong>includes()</strong> method. It will find out if a certain value exists in an array, and return true or false. So combined with <strong>filter()</strong>, we can work some search magic:</p><pre>const recActivities = [</pre><pre>    { name:’Swimming’, ages: [6, 7, 8], maxCap: 10 },</pre><pre>    { name:’Skating’, ages: [8, 9, 10], maxCap: 20 },</pre><pre>    { name:’Open Gym’, ages: [10, 11, 12], maxCap: 30 }</pre><pre>];</pre><pre>const ageAppropriate = recActivities.filter(activity =&gt; (activity.ages.includes(8)));</pre><p>Let’s break this down.</p><p><strong>const ageAppropriate =</strong> : This is where we create a variable called <strong>ageAppropriate</strong> where our new array of age appropriate activity objects will live.</p><p><strong>recActivities.filter</strong> : This is how we <strong>filter()</strong> our existing array of activities and create the new array of only the objects that pass a test (that’s next!).</p><p><strong>(activity =&gt; (activity.ages.includes(8))); </strong>: This is the function/test we are running on each activity (each object in the <strong>recActivities</strong> array). For each object key “ages”, we run the <strong>includes()</strong> method over the array of values. If it contains the value we’re looking for, in this case the integer 8 (for 8 years old), then it will keep that object for the new array because it returned <strong>true </strong>(meaning it passed the test).</p><p>If we <strong>console.log(ageAppropriate)</strong>, the array will only contain the activities that are appropriate for kids who are the age of 8.</p><p>That’s it!</p><p>To see a full code sample, go <a href="https://github.com/MelanieL/js_mini_projects/tree/master/05_mediumarticle_finding_objects_with_specific_array_values">here</a>.</p><p>To read more about the<strong><em> </em>filter()</strong> method, check out the MDN docs <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter">here</a>.</p><p>To read more about the <strong>includes() </strong>method, check out the MDN docs <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes">here</a>.</p><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=27268968308f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to target an HTML class or ID with JavaScript]]></title>
            <link>https://medium.com/@melaniecp/how-to-target-an-html-class-or-id-with-javascript-1f360a4a0310?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1f360a4a0310</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[variables]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Sun, 31 Mar 2019 19:08:40 GMT</pubDate>
            <atom:updated>2019-04-18T13:53:56.600Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1gByVzAtW0myl9e9CsGqhw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/1IW4HQuauSU?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Pankaj Patel</a> on <a href="https://unsplash.com/search/photos/html-javascript?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>HTML classes and IDs are essential for getting JavaScript to run on our pages. This quick article will show how to easily target them and use them with JavaScript.</p><p>At the end of the article you will find an example of how to apply this to a real situation involving an event listener.</p><h3>Selecting HTML classes with JavaScript</h3><p>To select a specific HTML class using JavaScript, we need to target it and then store it as a variable.</p><p>This is what our HTML element looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/0*ngM8GogYxpEFdXOx" /><figcaption>Code from a text editor: &lt;p class=”vanillaCupcake”&gt;This vanilla cupcake is sweet, sprinkly and fluffy.&lt;/p&gt;</figcaption></figure><p>Here is the one line of JavaScript we need to target this element and store it as a variable:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/0*gG7T0c6rXwnWWv-A" /><figcaption>Code from a text editor: const<em> </em>vanillaDescription<em> </em>=<em> document.querySelector</em>(‘.vanillaCupcake’);</figcaption></figure><h4>Let’s break this down:</h4><p><strong>const vanillaDescription =</strong> : This is the variable being declared so that we can re-use it elsewhere in our code.</p><p><strong>document :</strong> This is telling the code to look at the document (i.e. the whole page).</p><p><strong>.querySelector</strong> : This is the method we’re running to tell our code to look over the document, and to find the first element that matches the specific selector we’re looking for. In this case, we’re looking for a specific class.</p><p><em>Note: If we want to find all elements with that class, we can use </em><strong><em>.querySelectorAll </em></strong><em>instead.</em></p><p><strong>(‘.vanillaCupcake’)</strong> : This is how we tell our method (<strong>.querySelector</strong>) what to look for. In this case, we want a specific class. We must preface a class with a period (to tell it we’re looking for a class). It must go inside quotation marks and parentheses.</p><h3>Selecting HTML IDs with JavaScript</h3><p>To select an HTML ID using JavaScript we need to point to it and then store it as a variable.</p><p>This is what our HTML element looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/0*LMeSIFUOe_Es0ypO" /><figcaption>Code from a text editor: &lt;p <em>id</em>=”chocolateCupcake”&gt;This chocolate cupcake is sweet, sprinkly and creamy.&lt;/p&gt;</figcaption></figure><p>Here is the one line of JavaScript we need to target this element and store it as a variable:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/537/0*UTcrtC-MouhE_9WL" /><figcaption>Code from a text editor: const<em> </em>chocolateDescription<em> </em>=<em> document.getElementById</em>(‘chocolateCupcake’);</figcaption></figure><h4>Let’s break this down:</h4><p><strong>const chocolateDescription =</strong> : This is the variable being declared so that we can re-use it elsewhere in our code.</p><p><strong>document</strong> : This is telling the code to look at the document (i.e. the whole page).</p><p><strong>.getElementByID</strong> : This is the method we’re running to tell our code to look over the document, and to find the first element with the specific ID we’re looking for.</p><p><em>Note: Remember that in HTML, IDs are unique. We should never reuse an ID. If we need to grab multiple elements, they should be assigned a class (which can be applied to multiple elements at once) instead.</em></p><p><strong>(‘chocolateCupcake’)</strong> : This is how we tell our method (<strong>.querySelector</strong>) what to look for. In this case, we want an ID. There is no prefix because this method is only looking at IDs. It must also go inside quotation marks and parentheses.</p><h3>Use Example Using an Event Listener</h3><p>Now, when we want our JavaScript to target those elements, we only need to call the variable.</p><h4>Here’s an example:</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/0*BqIVvvXU6Z5-Ve9V" /><figcaption>Code in a text editor: vanillaDescription<em>.</em>addEventListener(‘mouseover’, test);</figcaption></figure><p>This line is adding an event listener (in this case, a mouseover) to our <strong>vanillaDescription</strong> variable.</p><p>This means we’re adding an event listener to our element with a class name of <strong>vanillaCupcake</strong> through the variable we created. When a user’s mouse goes over the element, it will run a custom function called “test” (function not shown).</p><p>For more information on event listeners and how to use them, check out this <a href="https://medium.com/@melaniecp/setting-up-javascript-event-listeners-with-2-examples-click-and-scroll-ac9f6723609d?source=friends_link&amp;sk=c665697315c0332b942a8164cc5dccb1">article</a>.</p><p>That’s it!</p><p>Hopefully this helps clarify how to target HTML classes and IDs with JavaScript. For a look at the full code files for this article, they can be found <a href="https://github.com/MelanieL/js_mini_projects/tree/master/04_mediumarticleexample_classes_and_id_selection">here</a>.</p><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1f360a4a0310" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Generate a Coolors palette based on specific colours]]></title>
            <link>https://medium.com/@melaniecp/generate-a-coolors-palette-based-on-specific-colours-a80258546f3a?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a80258546f3a</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[ux]]></category>
            <category><![CDATA[ux-design]]></category>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[colors]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Sat, 23 Mar 2019 01:43:30 GMT</pubDate>
            <atom:updated>2019-04-02T13:48:37.272Z</atom:updated>
            <content:encoded><![CDATA[<h3>Generate a full palette based on a few colours, using Coolors</h3><p>As a developer who enjoys making personal projects, I struggle the most with designing them.</p><p>I can look at finished designs and spot the good and the bad, but coming up with matching fonts, complimentary graphics and engaging colour schemes doesn’t come naturally to me. (And yeah, it’s “colour” and not “color” because I’m Canadian.)</p><p>Sometimes when I’m laying out a project concept in Sketch, I know a few colours that I want to use but have trouble knowing what other colours will match.</p><p>So I use <a href="https://coolors.co/">Coolors</a> !</p><p>It’s worth mentioning that <a href="https://coolors.co/">Coolors</a> is also great if you have no colour ideas to begin with. Simply go to the main page and hit “Generate” until you’re blue (or azure, or cobalt, or sapphire) in the face. If you find something you like, awesome. Feel free to skip the rest of this article.</p><p>For those of you who have a few colours in mind, stick around. I’ll show you how to easily find matching colours and build your palette.</p><p><strong>Step 1: Navigate to the </strong><a href="https://coolors.co/"><strong>Coolors</strong></a><strong> “Generate” page</strong></p><p>Here’s a <a href="https://coolors.co/app">link</a> that will bring you right to the “Generate” page.</p><p>Otherwise, navigate to the homepage and click “Generate” in the top right navbar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Xexf4-y9BUXIPO_S" /></figure><p><strong>Step 2 : Enter hex codes for 2 (or more) colours</strong></p><p>For this part to work, you must have 2 or more colours in mind, and their hex codes.</p><p>At the bottom of each colour on the “Generate” page, you’ll see the hex code labels. If you click on one, you can enter your own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ShWfiS8SAgyqwNpl" /></figure><p>I’ve entered #141414 and #414141 in the first two boxes for my example below.</p><p><strong>Step 3 : Lock your must-have colours</strong></p><p>Once you’ve entered the colours you want in your palette, you need to lock them.</p><p>If you hover just above where you entered the hex codes, a menu will appear. The 4th option down is “lock”.</p><p>Click the lock on the colours you want to keep. <strong>You must have a minimum of 2 colours locked for the next step to work.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5NlWW_yYHFwqkPEs" /></figure><p><strong>Step 4 : Hit space bar</strong></p><p>Once your colours are locked, you can start mashing the space bar to generate colour schemes that will match the colours you’ve selected.</p><p>Feel free to lock additional colours you like as they pop up until you find your final palette.</p><p><strong>Step 5 : Export</strong></p><p>When you’ve found a colour palette you like, the export options are worth looking at.</p><p>You’ll see the export option in the top right toolbar. In addition to a simple (but slick!) PDF, Coolors can also export an SCSS file which you can easily use as your SCSS colour variables file.</p><p>Just choose how you want to export, then save the generated file. That’s it!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NGutbR0ztpo_dnpI" /></figure><p><a href="https://coolors.co/">Coolors</a> also has some other cool (hehe) options, but in the interest of keeping this brief, this is where I’ll finish.</p><p>GLHF!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a80258546f3a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Removing Git from a web project (iTerm/Mac users)]]></title>
            <link>https://medium.com/@melaniecp/removing-git-from-a-web-project-iterm-mac-users-1db3ee32e47d?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1db3ee32e47d</guid>
            <category><![CDATA[iterm]]></category>
            <category><![CDATA[git]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[version-control]]></category>
            <category><![CDATA[github]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Mon, 18 Mar 2019 00:00:33 GMT</pubDate>
            <atom:updated>2019-03-18T00:00:33.282Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OArsqiCwxTb78iN27XtVdg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/4gKHjKG7ty4?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ferenc Horvath</a> on <a href="https://unsplash.com/search/photos/computer-messy-desk?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><em>(This article is for Mac, iTerm users. It is relevant as of March 2019.)</em></p><p>If you’re new to Git and feeling frustrated, you aren’t alone. It can be a tough concept at first, but an amazing tool once you get used to it.</p><p>So if you feel like you’ve made a mess of your project’s Git (or if you’re just confused) and want to go back to the beginning, you’ve come to right place.</p><p>Follow these simple steps to wipe your project clean of Git so that you can start fresh:</p><h3>Step 1 — Get into your project folder in the terminal</h3><p>Open iTerm and navigate to your project folder.</p><p>To get there, you can type <strong>ls</strong> to see a list of all the files &amp; folders in your current directory.</p><p>Then type <strong>cd</strong> and the name of the directory you want to move to (and hit enter!) to move there, like this: <strong>cd nameoffolderhere</strong></p><p>And if you need it, to see where you are currently, type <strong>pwd</strong>.</p><h3>Step 2 — Get the project’s Git details</h3><p>Once you’re in your project folder, type <strong>git remote -v</strong> to get the Git details for your project . You will then see something like this in your terminal:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/936/0*2ljaERxAF78dUPCL" /></figure><p>Important note: Where it says “origin” in the example, yours could say anything. It’s just a name.</p><h3>Step 3 — Remove the remote URL from your local project</h3><p>Once you’re ready to remove the connection between your project and GitHub, type:</p><p><strong>git remote rm origin</strong></p><p>Keep in mind that the word “origin” here is just a name (see above), so if yours isn’t called origin, be sure to swap out origin with the name of your remote.</p><p>If you had more than one remote listed in Step 2, repeat this step for all of them.</p><h3>Step 4 — Confirm that you have removed the connection</h3><p>Confirm that the remote has been removed by typing <strong>git remote -v</strong> again. This time, if it worked, nothing will be listed and your iTerm should just have a fresh input line like this after you’ve entered <strong>git remote -v</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/0*a6YrHxW96vRnoi8B" /></figure><h3>Step 5 — Delete your hidden .git files in your project folder in Finder</h3><p>You no longer have a connection attached to your project, but you still have a .git file in your project folder that could screw up any new connections you try to establish. The easiest way to deal with this (without accidentally deleting other things) is by opening Finder, navigating to your project folder, and typing:</p><p><strong>CMD</strong> + <strong>SHIFT</strong> +<strong> .</strong></p><p>This will expose hidden files. Simply right click the .git folder, and delete it (Move to Trash).</p><h3>Step 6 — (Optional — proceed with caution!) Delete your GitHub repository</h3><p>Decide whether you want to delete your GitHub repository as well or (what I recommend) start a new repository on GitHub and link it to your project folder. You can always delete your old repository later once your project is finished. This will avoid accidentally deleting your only copies of important files, which is the whole point of Git in the first place!</p><p>Good luck!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1db3ee32e47d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Meet the Onion Omega 2: The Best IoT Device for Front-End Developers]]></title>
            <link>https://medium.com/@melaniecp/meet-the-onion-omega-2-the-best-iot-device-for-front-end-developers-e39b619d8056?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/e39b619d8056</guid>
            <category><![CDATA[raspberry-pi]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Tue, 13 Mar 2018 01:59:46 GMT</pubDate>
            <atom:updated>2018-03-13T01:59:46.077Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve spent the last several months at HackerYou immersing myself in the world code. I’ve expanded my HTML and CSS skills significantly. But beyond that, I’ve learned BEM, SASS, GULP, JavaScript, jQuery, GitHub, React, APIs… (the list goes on). And don’t get me wrong, code is awesome. But there is also a satisfaction that comes from physically building something you can put your hands on.</p><p>So, front-end developers, let me introduce you to the super accessible IoT device that serves as a bridge between the world of code and the world of hardware… the <a href="https://onion.io/store/">Onion Omega 2</a>. It’s a teeny tiny hardware device that can power all of your super fun hardware projects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/996/1*a5-XJerDt9NX1cHd1YtiVQ.png" /><figcaption>Hand holding the Onion Omega 2</figcaption></figure><p>Let’s start with the basics. What is an IoT device? Well, the definition is widely debated but the simple way to understand it is as follows: an IoT device is any device that has the ability to connect to a network and transmit data. Examples would be the Nest, Amazon Alexa, or more relevant to this article, the Raspberry Pi.</p><p>So why should a Front-End Developer care about the Onion Omega? First off, unlike its competitors, it doesn’t require knowledge of traditional back-end programming languages (such as C++ or PHP) for setup. Out of the box, it has a Linux based operating system and doesn’t require any physical setup (unless you want to). It also has wireless and Bluetooth built in for easy access. It has a simple but robust UI that comes with a ready to go terminal and text editor. The instructions are all very clear and easy to follow.</p><p>But most importantly, the Onion Omega 2 allows front-end developers to use JavaScript as a back-end/server side language using Node.js in an isolated and independant environment, so the learning curve isn’t as difficult as other IoT devices on the market.</p><p>So back to the tactile experience I was talking about. What can you build with this little thing if we’re still talking about code? Honestly, the list is endless and entirely based on your creativity. They even have an <a href="https://docs.onion.io/omega2-project-book-vol1/">online project book</a>. But to keep it simple, here is a short list of examples and some cool links:</p><ul><li>Backyard Weather Stations</li><li>Wireless Access Points</li><li>Chat Bots</li><li>Wine/Beer Cellar Temperature &amp; Humidity Detector (for you home brew die hards!)</li><li>Handheld Gaming Consoles</li><li>Robots (seriously, check these out: <a href="http://nodebots.io/">http://nodebots.io/</a> )</li></ul><p>You can also just search Node.js IoT projects and you’ll find all kinds of tutorials and projects others have built.</p><p>Out of the box, the <a href="https://docs.onion.io/omega2-docs/installing-and-using-nodejs.html">documentation</a> for installing Node.js is also clear. I was a complete Node.js noob when I starting playing with it, and I got the starter project working after just a few hours.</p><p>The device itself is tiny, and for just a bit more money you can also get the dock (which I recommend for beginners, otherwise you have to find a way to power it). You can also buy really neat accessory packs online for projects that involve lights, wires, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*TLHmajO_e0TInZKwL_QHDw.png" /><figcaption>Onion Omega 2 with Power Dock</figcaption></figure><p>If you’re learning code because you want to change careers, getting one of these little guys and playing with Node.js isn’t just fun, it’s hugely beneficial. Some notable companies in the wild use Node.js because their front-end dev teams can be more flexible with their JavaScript, sometimes limiting or even removing the need for a second server-side/back-end language. You may have heard of some of these companies: LinkedIn, PayPal, Uber, Trello, Netflix and Medium (the site you are reading right now!!!).</p><p>I highly recommend this little device for your hobby projects and for learning some basic hardware operations. It’s fun, educational and hands-on. Besides, who doesn’t like robots?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e39b619d8056" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Photoshop vs Sketch: A Review for Beginner Web Developers (with Colour & Measurement How-Tos)]]></title>
            <link>https://codeburst.io/photoshop-vs-sketch-a-review-for-beginner-web-developers-with-colour-measurement-how-tos-15c5db8b6171?source=rss-17c800c93da9------2</link>
            <guid isPermaLink="false">https://medium.com/p/15c5db8b6171</guid>
            <category><![CDATA[webdesign-tools]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[sketchapp]]></category>
            <category><![CDATA[webdev]]></category>
            <category><![CDATA[design]]></category>
            <dc:creator><![CDATA[Melanie Phillips]]></dc:creator>
            <pubDate>Sun, 21 Jan 2018 22:54:23 GMT</pubDate>
            <atom:updated>2018-01-22T16:51:06.516Z</atom:updated>
            <content:encoded><![CDATA[<p>This week at HackerYou (my first week, I might add) I was introduced to Adobe Asset Library as a method to extract images and details from a PSD if Photoshop isn’t readily available. While it is helpful in many ways, I don’t find it intuitive enough when it comes to:</p><ol><li><strong>Pulling measurement information</strong></li><li><strong>Pulling colour information</strong></li></ol><p>Adobe Asset Library also can’t be used offline, so for someone like me who spends a lot of hours commuting, that is some valuable time that is lost.</p><p>I decided to give Sketch a shot instead since I have an older version on my laptop and I’ve heard good things about it over the years from developers. For someone who also finds Photoshop overwhelming, Sketch is a welcome alternative.</p><p>I have to preface this by mentioning that Sketch isn’t free, but it won’t break the bank the way Photoshop might. Adobe has great products, but they are expensive and come with a lot of stuff you may not use or need as a Beginner Web Developer.</p><p>The student package for Photoshop (<a href="https://adobe.ly/2DxSAkg">https://adobe.ly/2DxSAkg</a>) is subscription based as costs $10 USD/month. That pricing is only good for one year, then it goes up. If you don’t pay the monthly fee, then the product stops working.</p><p>Sketch costs $99.00 USD/year for regular users (<a href="http://bit.ly/2F3hl49">http://bit.ly/2F3hl49</a>), but it has a wicked 50% discount if you are a student. <strong>The huge benefit is that after the year is up you still have the program on your computer</strong>, you just wont receive the updates anymore.<strong> </strong>It’s also a really good way to learn layers, etc. in a more simple environment.</p><p>The reasons I love Sketch go back to what I said above; it’s easy to navigate and helpful when pulling design info to build a site. Here are the two main tricks I used that saved me time (and heartache!) this week that I would like to share with you.</p><p><strong>How to pull measurement info from Sketch:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_7SD1p2t9psh735a." /></figure><ol><li>Open your image file in Sketch.</li><li>Hit the “R” button, which brings up the tool to draw a rectangle.</li><li>Draw the rectangle between the elements whose distance from each other you are trying to determine. You can also move it around and adjust it easily once you have it. In the example above, I’m trying to get the padding measurement between the top of the &lt;H4&gt; and the edge of its container.</li><li>Take a look at the toolbar on the right side. One of the very first things it tells you is the size of the rectangle you’ve made. In this case, the distance between my &lt;H4&gt; and the edge of the container is 95px, because the height of the rectangle is showing as 95. <em>Note: If you’re worried about accuracy, then zoom in closer (Mac hot keys are CMD and the +/- depending on whether you want to zoom in or out).</em></li><li>Voila! You have your measurement!</li></ol><p><strong>How to pull colour info from Sketch:</strong></p><ol><li>As a fast way to get the colour tool going, create a rectangle again (see above in the “How to pull measurement info from Sketch”) by opening your image and hitting the “R” key. The rectangle means nothing for getting the colour except that it opens the tool quickly.</li><li>Further down on the right toolbar, you will see a little box that says “color”. Select it. It will open colour details. When it’s open, it will look like this:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y42FGMnZVD6sPDPS." /></figure><p>3. Select the eyedropper tool, which is just below the large colour gradient box (in the image above its box with all the red and black in it). The super cool thing is how accurate it is. It magnifies and allows you to easily focus on individual pixels (see image below).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eg2w-_wvQRYW-C0M." /></figure><p>4. To get your colour info, look right below the eyedropper icon in the toolbar. It gives you the HEX value and also the RGBA value. In the example above, the HEX code is <strong>#668790</strong> and the RGBA is <strong>rgba (102, 135, 144, 1)</strong> .</p><p>5 . Woohoo, you have your colour info!</p><p>I hope this article helps you with your Web Development projects. If I’ve made any errors, or you have any other interesting tips, please feel free to share them in the comment section below.</p><p>Happy developing everyone!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15c5db8b6171" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/photoshop-vs-sketch-a-review-for-beginner-web-developers-with-colour-measurement-how-tos-15c5db8b6171">Photoshop vs Sketch: A Review for Beginner Web Developers (with Colour &amp; Measurement How-Tos)</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>
    </channel>
</rss>