<?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 Leanne Rybintsev on Medium]]></title>
        <description><![CDATA[Stories by Leanne Rybintsev on Medium]]></description>
        <link>https://medium.com/@leanne.k.rybintsev?source=rss-139978cdb6e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8DnCXqPW9TjpZfnIq1iVqQ.jpeg</url>
            <title>Stories by Leanne Rybintsev on Medium</title>
            <link>https://medium.com/@leanne.k.rybintsev?source=rss-139978cdb6e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 14:58:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@leanne.k.rybintsev/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[Making an Advice Button with JS]]></title>
            <link>https://medium.datadriveninvestor.com/making-an-advice-button-with-js-5a1ed3b500fa?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a1ed3b500fa</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[coding]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Sat, 14 Mar 2020 07:46:00 GMT</pubDate>
            <atom:updated>2020-03-14T07:46:00.939Z</atom:updated>
            <content:encoded><![CDATA[<h3>What We Will build:</h3><p>In this project, we will be making this super-cool, ultra-useful advice page (click image to view in <a href="https://codepen.io/LKRR/pen/WNvMXyy">Codepen</a>):</p><figure><a href="https://codepen.io/LKRR/pen/WNvMXyy"><img alt="" src="https://cdn-images-1.medium.com/max/698/1*Sb2m_CYdYadc7o_vb1oe5g.png" /></a></figure><p><strong><em>Disclaimer</em>:</strong> <em>This is a beginner JS article and is not designed to give out important life advice. It’s just to show a bit of what JS can do. So don’t go making life decisions based on this.</em></p><p>Now that’s out the way, let’s get into it…</p><h3>Step One: The Set-up.</h3><p>This project requires an HTML file with a CSS style sheet and a separate JS file. If you don’t feel like hand-coding this, you can either use <a href="http://htmlshell.com/">HTML Shell</a> or download a template from my <a href="https://github.com/lkrryba/js-app-template.git">Github repo here</a>.</p><h3>Step Two: The HMTL</h3><p>Our HTML for this app itself is very simple. We need two things:</p><ul><li>a paragraph with some filler text that will eventually show the advice.</li><li>a button to fire the giveAdvice() function — we’ll build this function later.</li></ul><p>These should be wrapped in a &lt;div&gt; to help with styling later. Our HTML looks like this:</p><pre>&lt;body&gt;<br>  &lt;div class=&quot;app&quot;&gt;<br>   &lt;p id=&quot;advice&quot;&gt;Advice will appear here.&lt;/p&gt;<br>   &lt;button onclick=&quot;displayAdvice()&quot;&gt;Advise Me!&lt;/button&gt;<br>  &lt;/div&gt;<br>  &lt;script src=&quot;advice.js&quot;&gt;&lt;/script&gt;<br> &lt;/body&gt;</pre><p>We’ll worry about the dropdown to select our style modes later.</p><h3>Step 3: The Variables</h3><p>Data in this project is stored in two variables. First up we need an object containing our advice. You can go for as many pieces of advice as you like, but I recommend at least 10 (no-one likes repetitive advice, after all.)</p><p><strong>NB:</strong> As JS objects are zero-indexed, it makes sense to number the first piece of advice as zero, not one. This will also help when building our function later.</p><pre>const advice = {<br> 0: &quot;Follow your heart&quot;,<br> 1: &quot;Advice is what you ask for when you already know the answer but wish you didn&#39;t.&quot;,<br> 2: &quot;You know the answer to that.&quot;,<br> 3: &quot;Don&#39;t repeat past mistakes.&quot;,<br> 4: &quot;The only true mistake is a lesson not learned.&quot;,<br> 5: &quot;If you&#39;re hiding, don&#39;t light a fire.&quot;,<br> 6: &quot;Keep an open mind.&quot;,<br> 7: &quot;Seize the day.&quot;,<br> 8: &quot;Don&#39;t pray for an easy life. Pray for the strength to endure a difficult one.&quot;,<br> 9: &quot;A stitch in time saves nine.&quot;<br>};</pre><p>Next, we need a variable called num in which we generate a random number using math.floor(). To ensure that all the pieces of advice are used, multiply the result of math.floor()by the number of pieces of advice. math.floor() can produce 0, hence why the first piece of advice needs to be numbered 0 and not 1.</p><p>let num = Math.floor(Math.random() * 10);</p><h3>Step 4: Swapping Out the HTML</h3><p>Next up, we want our paragraph to display the piece of advice which corresponds to the random number we have generated. We do this with one simple line of code:</p><p>document.getElementById(“advice”).innerHTML = advice[num];</p><h3>Step 5: The Function</h3><p>This is all well and good, but so far our advice only changes on pageload. To get new advice at the click of a button, we need to create a function (displayAdvice()) and then run it on the button’s onclick.</p><p>We do this by moving our random number variable (num) and our JS which swaps out our HTML into a function declaration:</p><pre><strong>function displayAdvice() {</strong><br> let num = Math.floor(Math.random() * 10);</pre><pre> document.getElementById(&quot;advice&quot;).innerHTML = advice[num];<br><strong>}</strong></pre><p>The button’s HMTL should look like this:</p><pre>&lt;button onclick=&quot;displayAdvice()&quot;&gt;Advise Me!&lt;/button&gt;</pre><h3>Styling — General:</h3><p>Now for the fun part, or if you hate CSS, the awful part. Advice comes in many forms; a plain note, written in stars, or perhaps appearing in the clouds. To show these different advice styles, we’ll use separate CSS classes, or ‘modes’.</p><p>Before adding our modes, we’ll add some general CSS rules which will apply to the app in all cases.</p><pre>.app {<br> height: 200px;<br> width: 900px;<br> margin: 0 auto;<br> text-align: center;<br>}</pre><pre>p {<br> font-size: 50px;<br>}</pre><pre>button {<br> font-size: 20px;<br> border-radius: 10px;<br> cursor: pointer;<br>}</pre><pre>label {<br> font-size: 30px;<br>}</pre><pre>.mode-select {<br> display: block;<br> padding-top: 30px;<br>}</pre><pre>select {<br> font-size: 20px;<br>}</pre><h3>Styling — Modes</h3><p>Now to have some fun with modes. I’ve gone for three modes (plain, clouds and stars), but you could play around and add as many as you like.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FZYWFcLFGje1d7BrKHu%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FZYWFcLFGje1d7BrKHu%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FZYWFcLFGje1d7BrKHu%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="198" frameborder="0" scrolling="no"><a href="https://medium.com/media/0eca912f335d38d97e8423279111a310/href">https://medium.com/media/0eca912f335d38d97e8423279111a310/href</a></iframe><p>We’ll switch modes by having the user select the from a dropdown in our app, using onchange. We add this to our HTML:</p><pre>&lt;div class=&quot;mode-select&quot;&gt;<br>  &lt;label for=&quot;modes&quot;&gt;Choose a mode: &lt;/label&gt;<br>  &lt;select id=&quot;modes&quot; <strong>onchange=&quot;showMode()&quot;</strong>&gt;<br>     &lt;option value=&quot;plain&quot;&gt;Plain&lt;/option&gt;<br>     &lt;option value=&quot;clouds&quot;&gt;Clouds&lt;/option&gt;<br>     &lt;option value=&quot;stars&quot;&gt;Stars&lt;/option&gt;<br>  &lt;/select&gt;<br> &lt;/div&gt;</pre><p>The CSS for our modes is as follows (note that fonts were imported from Google fonts as the top of the CSS file):</p><pre>.clouds {<br> background-color: lightcyan;<br> color: white;<br> text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black;<br> font-family: &quot;Fredoka One&quot;, Helvetica, sans-serif;<br>}</pre><pre>.stars {<br> background-color: black;<br> color: lightgrey;<br> font-family: &quot;Monoton&quot;, Helvetica, sans-serif;<br>}</pre><p>You may have noticed that there is no separate class for the plain mode. This is because plain is the default which is displayed on pageload. To display it, we simply add it to the styles on the body tag:</p><pre>body {<br> background-color: white;<br> color: black;<br> font-family: &quot;Special Elite&quot;;<br>}</pre><p>Now, in our JS, we build a function showMode()which displays the relevant mode when it is selected by the user. <strong>NB:</strong> Each mode also has to remove any previous modes to ensure the modes are displayed correctly. The else clause removes all previously used modes and sets the styles back to the plain mode shown on pageload.</p><pre>function showMode() {<br> let mode = document.getElementById(&quot;modes&quot;).value;</pre><pre>if (mode == &quot;clouds&quot;) {<br>  let element = document.body;<br>  element.classList.remove(&quot;plain&quot;);<br>  element.classList.remove(&quot;stars&quot;);<br>  element.classList.add(&quot;clouds&quot;);<br> } else if (mode == &quot;stars&quot;) {<br>  let element = document.body;<br>  element.classList.remove(&quot;plain&quot;);<br>  element.classList.remove(&quot;clouds&quot;);<br>  element.classList.add(&quot;stars&quot;);<br> } else {<br>  let element = document.body;<br>  element.classList.remove(&quot;clouds&quot;);<br>  element.classList.remove(&quot;stars&quot;);<br> }<br>}</pre><p>Now we’ve done this, our advice button is finished! Ask it anything you like!</p><h3>Stretch Challenges:</h3><p>Here are some ideas for trickier challenges if you feel like testing your coding skills. The code world is your oyster!</p><ul><li>Find a way to ensure the same piece of advice isn’t repeated twice in a row.</li><li>Add a few more mode styles</li><li>Generate a ‘random’ mode which shows one of the existing modes at random.</li></ul><p>Happy coding! :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a1ed3b500fa" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/making-an-advice-button-with-js-5a1ed3b500fa">Making an Advice Button with JS</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seven UI Design Fundamentals to make your website look like it was built in 2020 and not 1997.]]></title>
            <link>https://medium.datadriveninvestor.com/seven-ui-design-fundamentals-to-make-your-website-look-like-it-was-built-in-2020-and-not-1997-971b26d52e1?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/971b26d52e1</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[ui-design]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Wed, 26 Feb 2020 22:42:11 GMT</pubDate>
            <atom:updated>2020-02-29T10:35:56.906Z</atom:updated>
            <content:encoded><![CDATA[<p>Ever looked at a website and wondered whether its designer was drunk or just hated human eyes? Here’s how to avoid your website having that effect.</p><p><a href="https://www.datadriveninvestor.com/2019/02/21/best-coding-languages-to-learn-in-2019/">Best Coding Languages to Learn in 2019 | Data Driven Investor</a></p><h3>White Space</h3><p>We all need space, and UI elements are no different. If elements are bunched up on a page, the UI becomes confused, puzzling and downright stressful to read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*pNt_jpjjph8PnSHQ-cHYWQ.png" /><figcaption>The STRESS.</figcaption></figure><p>On the other hand, give your elements sufficient white space, and they are much easier on the eye (and blood pressure levels).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*U3bpcAfiIH3Qco2nsi0OVA.png" /><figcaption><a href="https://codepen.io/LKRR/pen/xxGqyeY">Click here</a> to play with the code.</figcaption></figure><h3>Alignment</h3><p>For a UI that’s pleasing to the eye, all the elements need to be lined up along the same vertical axis.</p><p>So like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*-tR4yzEqJ4sLCpGZAuNu-g.png" /></figure><p>And, please God, not like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/877/1*loqxIFWqgIU310iwViVe5w.png" /><figcaption><a href="https://codepen.io/LKRR/pen/RwPpYQg">Click here</a> to play with code</figcaption></figure><p>Which is the UI equivalent of this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*0A5ewJNpIs0cUu810-E_Vg.png" /><figcaption><a href="https://www.boredpanda.com/irritating-annoying-ocd-imperfection/?utm_source=google&amp;utm_medium=organic&amp;utm_campaign=organic">Click here</a> to become even angrier.</figcaption></figure><h3>Contrast</h3><p>Contrast is the difference between colors which are next to each other on a page. Pages with poor contrast are hard to read and the elements are all at sea, like in the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*vSCH5hlZbctvjb8L0l1WbA.png" /><figcaption>Contrast of just 1.88 (large text) and 1.73 (small text). (<a href="https://codepen.io/LKRR/pen/qBdrQwz">Click here</a> to see the code.)</figcaption></figure><p>Poor contrast also causes accessibility issues, so make sure you stick to the WCAG (Web Content Accessibility Guidelines), which recommend a minimum (AA) contrast ratio of at least 4.5:1, or 3:1 for large text, or an enhanced (AAA) contrast ratio of 7:1 or 4.5:1 for large text. You can check this with plugins or <a href="https://contrast-ratio.com/#%23073262-on-%23d3c0d2">websites</a>. This will give you a clear and easy-to-read page, like this one here:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/1*EIGq2uft7FiRWk4F1jPoXQ.png" /><figcaption>Contrast of 9.33 (large text) and 5.21 (small text)</figcaption></figure><h3>Scale</h3><p>As Rammstein famously sang, “Size does matter, after all.” (I am sure UI design is exactly what they were referring to.) Take these two examples. In the first, the button is tiny and the user will struggle to know what to do next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*gkf1F3wRLEkmb0DCMicYpg.png" /><figcaption>Where do I click?!</figcaption></figure><p>In the second example, the user’s next expected action is clear and the button is easy to use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*TVZXfyBY-V-_O0vzi_DJOA.png" /><figcaption><a href="https://codepen.io/LKRR/pen/vYOxzgy">Click here</a> to experiment with scale.</figcaption></figure><h3>Typography</h3><p>This comes down to using the right font for the right occasion. So no Comic Sans on a memorial site (unless it’s a clown’s memorial). For example, this works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*A__YU-mEK26CdZJ-Ow_pgw.png" /></figure><p>This, in all but a few Halloween edge cases, does not:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/919/1*aQNJo8Wsh55oFCxB8sVkaQ.png" /><figcaption><a href="https://codepen.io/LKRR/pen/ExjWKKW">Click here</a> to play with the code.</figcaption></figure><p>It’s not just the font family you need to think about, though. There is also font size, alignment, letter spacing, line height, style, color and contrast.</p><h3>Color</h3><p>Color has meanings. If you don’t believe me, check out the example below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*hslualvzivMSXPCaGM3H_A.png" /><figcaption><a href="https://codepen.io/LKRR/pen/poJegqX?editors=1100">Click here</a> to play with the code/stop your eyes from hurting.</figcaption></figure><p>Mixed messages, huh? So, moral of the story: match your color meaning to your semantic meaning. Like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*H_AiLjnt9AOKxC3vt81Gjg.png" /></figure><p>Watch out, though: color meanings vary across cultures. For example, whereas white generally signifies peace and purity in western cultures, it often signifies death in the East (which could lead to a massive faux pas if you’re not careful). So do your research before picking out a color palette.</p><h3>Visual Hierarchy</h3><p>This is the practice of making the important stuff more noticeable using some or all of the techniques above. You’re looking for a clear, easy-to-read, semantic UI which directs the eye to the crucial parts of the page and a clear CTA (in this case, to “Alohomora”).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/672/1*3WzDu5uW7toO-WxydEu4hw.png" /><figcaption>View the code <a href="https://codepen.io/LKRR/pen/NWqpexX">here</a>.</figcaption></figure><p>Disregard these UI tips, however, and you might end with a baffling, muddled design and an &lt;h3&gt; bigger than an &lt;h1&gt;, which is never, ever good.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*yZ5UmwdxvUoVldsbUFi07A.png" /><figcaption>Nobody cares when Hogwarts was founded, Karen!</figcaption></figure><p>I hope you found these tips helpful. If you’d like to learn more about UI design and practice your new-found skills, <a href="https://scrimba.com/g/gdesign">head over to Scrimba</a> for lots of fun and interactive tutorials and screencasts which allow you to fiddle with the code while you learn!</p><p>Happy designing! :)</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=971b26d52e1" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/seven-ui-design-fundamentals-to-make-your-website-look-like-it-was-built-in-2020-and-not-1997-971b26d52e1">Seven UI Design Fundamentals to make your website look like it was built in 2020 and not 1997.</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</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 learn to code in 2020.]]></title>
            <link>https://medium.datadriveninvestor.com/how-to-learn-to-code-in-2020-ab66af9be1a3?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab66af9be1a3</guid>
            <category><![CDATA[code]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Mon, 27 Jan 2020 09:58:50 GMT</pubDate>
            <atom:updated>2020-01-28T02:41:02.278Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6WnvVFwB0n8k-FMw" /><figcaption>Photo by <a href="https://unsplash.com/@ikukevk?utm_source=medium&amp;utm_medium=referral">Kevin Ku</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>So it’s 2020, the excitement of the New Year has died down and you’re ready to crack on with your goals. One of them is learning to code — but where to start? Here’s a list of learning resources I’ve found helpful since I started learning to code:</p><p><a href="https://www.freecodecamp.org/"><strong>FreeCodeCamp</strong></a>: As the name suggests, this is a completely free learning platform with a huge range of courses from Responsive Web Design to Interview Prep. The lessons are bite-sized and allow you to work at your own pace, but there are also larger projects to really embed your learning.</p><p><a href="https://scrimba.com/"><strong>Scrimba</strong></a>: Among all the learning platforms out there, Scrimba is something different. It delivers tutorial-style screencasts on a huge range of topics, but unlike other platforms, <em>you can actually go in and play with the code as it is explained</em>. You can even fork code off and play around with it in your own project. It’s really quite something.</p><p><a href="https://wesbos.com/courses/"><strong>Wes Bos</strong></a>: It’s fair to say that Wes Bos is something of a titan in the dev community. His range of some-free, some-paid courses are fun and engaging and provide easily-understood explanations and practical exercises, plus several Wes jokes along the way!</p><p><strong>YouTube</strong>: If you have a specific coding question you need an answer to ASAP, and Google has provided a stream of unintelligible moon-man language, YouTube is the place to go. No matter the query, it’s highly likely that someone out there has filmed themselves resolving it and put it on YouTube. Now you can get your answer and give them approx. 0.00002¢ by watching it. The Internet is a wonderful thing.</p><p><a href="https://codepen.io/"><strong>CodePen</strong></a><strong>/</strong><a href="https://codesandbox.io/"><strong>CodeSandbox</strong></a>: So you’re super-excited about your newfound web development knowledge and want to put it all into practice? CodePen and CodeSandbox are great places to do this. They allow you to start coding with minimal fuss and store your work in one place (where recruiters can see it! Genius). CodeSandbox even allows you to use frameworks such as React and Vue, which is a great way to dip your toes in without getting caught up in the setup stage.</p><p><strong>And lastly, some tips for learning to code</strong>:</p><ul><li><strong>It doesn’t really matter where you start</strong>, but JavaScript is probably a safe bet. You can then build on your knowledge by delving into frameworks such as React and Typescript.</li><li><strong>Use SMART goals</strong>: Don’t tell yourself “I’m going to to learn to code”, that is too vague. Instead, set yourself <strong>SMART</strong> goals. That’s <strong>S</strong>pecific, <strong>M</strong>easurable, <strong>A</strong>chievable, <strong>R</strong>elevant and <strong>T</strong>ime-bound. For example, saying “I’m going to complete three Wes Bos Tutorials this week” gives a specific, measurable goal (you’ll know when it’s done), which is achievable and relevant (if it’s not, change it) and has a set deadline. This helps you to track your progress and gives you a sense of achievement when you complete the goal, which is a great motivator.</li><li><strong>Build your own projects</strong>: As great as tutorials are, recruiters have asked me time and time again for my own projects. Try to get real-world projects if you can (know anyone who needs a website?), but if not, a selection of CodePens/CodeSandboxes which show how you’ve applied your learning to your own ideas is also great (and gives you something to talk about in interviews).</li><li><strong>Have fun</strong>: I know, being told to have fun is a sure-fire way to not have fun. But honestly, it’s hard to learn if you’re miserable. So if you’re not enjoying yourself, change something. Maybe try a different learning platform, learn with a friend or see if a different technology is more suited to you. It might even be as simple as changing the time of day when you study. Life’s to short to do things you don’t enjoy, so make your learning fun!</li></ul><p>I hope these tips and tricks are helpful, please feel free to share any other learning resources or handy hints in the comments! I’d love to hear your ideas. Happy coding!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab66af9be1a3" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/how-to-learn-to-code-in-2020-ab66af9be1a3">How to learn to code in 2020.</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</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 build something with JS when you’ve never seen JS before in your life and don’t really know…]]></title>
            <link>https://medium.datadriveninvestor.com/how-to-build-something-with-js-when-youve-never-seen-js-before-in-your-life-and-don-t-really-know-187ab660d7ec?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/187ab660d7ec</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[html]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Fri, 27 Dec 2019 13:06:43 GMT</pubDate>
            <atom:updated>2019-12-28T04:25:57.216Z</atom:updated>
            <content:encoded><![CDATA[<h3>How to build something with JS when you’ve never seen JS before in your life and don’t really know what it is.</h3><p><strong>Difficulty Level:</strong> depending on experience, 1/5 or 2/5.</p><p><strong>Fun Potential: </strong>Infinite<strong> </strong>🎉</p><p><strong>Background: </strong>Javascript (JS) is a scripting language used on the Web. We can use it to make HTML pages interactive (button clicks, colour changes, other fun things like that). Without JS, we’d be living in a world of boring, static HTML pages, like in the early ’90s.</p><p><a href="https://www.datadriveninvestor.com/2019/02/21/best-coding-languages-to-learn-in-2019/">Best Coding Languages to Learn in 2019 | Data Driven Investor</a></p><p><strong>Prerequisites: </strong>No prior knowledge of JS is required for this project. A bit of HTML and CSS would be useful. You will need VS code or another code-writing software and basic knowledge of how to use it (alternatively, you can use <a href="https://codepen.io/">Codepen</a>, which does all the setup for you.)</p><p><strong>What we will build: </strong>In this project, we will be making this super-cool, colourful currency converter (click image to view in <a href="https://codepen.io/LKRR/pen/ExavVKq">Codepen</a>):</p><figure><a href="https://codepen.io/LKRR/pen/ExavVKq"><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*5r2bMYmV8bAzng5IU1YH8w.png" /></a></figure><p><em>Disclaimer</em>: <em>This is a beginner JS article and won’t create a super-accurate, set-by-the-world-bank, reliable currency converter. It’s just to show a bit of what JS can do. So don’t go using it to calculate your holiday budget.</em></p><p>Now that’s out the way, let’s get into it…</p><p><strong>Step One: The set-up.</strong></p><p>For this project you need three files: index.html, stylesheet.css and converter.js.</p><p>In index.html, add a boilerplate(I like to use <a href="http://htmlshell.com/">HTML Shell</a> for this).</p><p>Next, link the CSS and JS files to the HTML via &lt;link&gt; and &lt;script&gt; tags.</p><pre>&lt;!DOCTYPE html&gt;<br>&lt;html&gt;<br>  &lt;head&gt;<br>    &lt;meta charset=&quot;UTF-8&quot; /&gt;<br>    &lt;title&gt;title&lt;/title&gt;<br><strong>    &lt;link rel=&quot;stylesheet&quot; href=&quot;stylesheet.css&quot; type=&quot;text/css&quot; /&gt;</strong><br>  &lt;/head&gt;<br>  &lt;body&gt;<br><strong>    &lt;script src=&quot;converter.js&quot;&gt;&lt;/script&gt;</strong><br>  &lt;/body&gt;<br>&lt;/html&gt;</pre><p>You can check that the files are all connected by doing two things:</p><p>1. Adding a background-color via stylesheet.css</p><p>2. Adding some html via converter.js using the following code:document.body.innerHTML = “testing 123”; Don&#39;t forget to comment it out afterwards.</p><p>If the background color and added HTML show up, you are good to go.</p><p><em>Troubleshooting</em>: if they don’t, try the following:</p><ul><li>Ensure the &lt;link&gt; contains the correct CSS file name</li><li>Ensure the &lt;script&gt; tag contains the correct JS file name</li><li>Hard refresh the page (cmd/ctrl + shift + r).</li></ul><p><strong>Step Two: The HMTL</strong></p><p>Once your files are all working together, it’s time for the HTML. We need the following:</p><ul><li>4 inputs: original-currency-amount, original-currency-unit, new-currency-unit and exchange-rate. These all need id attributes so they can be targeted by the JS.</li><li>a button to fire the exchangeMoney() function (which will tell the JS what to do) — we’ll build this function later.</li><li>a header to explain what our application is.</li><li>a paragraph with some filler text that will eventually show the output of the calculation.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*06SRRAxqR2Tl6GLCQa_t6g.png" /></figure><p>The HTML code looks like this:</p><pre>&lt;body&gt;<br>    &lt;h1&gt;Amazing Currency Converter&lt;/h1&gt;</pre><pre>&lt;p&gt;Convert<br>    &lt;input type=&quot;number&quot; id=&quot;original-currency-amount&quot; placeholder=&quot;1&quot;&gt;&lt;/input&gt;<br>    &lt;input type=&quot;text&quot; id=&quot;original-currency-unit&quot; placeholder=&quot;dollars&quot;&gt;&lt;/input&gt; <br>   to<br>    &lt;input type=&quot;text&quot; id=&quot;new-currency-unit&quot; placeholder=&quot;euro&quot;&gt;&lt;/input&gt;<br>  &lt;/p&gt;<br>    &lt;p&gt;Exchange Rate:<br>    &lt;input type=&quot;number&quot; id=&quot;exchange-rate&quot;&gt;&lt;/input&gt;<br>  &lt;/p&gt;<br>    &lt;button&gt;Exchange my moolah now!&lt;/button&gt;</pre><pre>&lt;p id=&quot;output-text&quot;&gt;Converted money will appear here.&lt;/p&gt;</pre><pre>&lt;script src=&quot;converter.js&quot;&gt;&lt;/script&gt;<br>  &lt;/body&gt;</pre><p><strong>Step 3: The variables</strong></p><p>Our JS needs four variables (places to store data). We’ll give these fairly self-explanatory names; originalCurrencyAmount, originalCurrencyUnit, newCurrencyUnit and newCurrencyAmount.</p><p>To declare a variable, we use the keyword let, followed by the name of the variable and the equals sign:</p><p>let variableName = [code here]</p><p>The data to be stored in originalCurrencyAmount, originalCurrencyUnit, newCurrencyUnit will come from the inputs with corresponding ids. In order to retrieve the data from the ids, we grab the value via getElementById, e.g:</p><p>let exchangeRate = document.getElementById(“exchange-rate”).value;</p><p>The data for newCurrencyAmount will be generated by multiplying the original currency amount by the exchange rate:</p><p>let newCurrencyAmount = originalCurrencyAmount * exchangeRate;</p><p>This will work, but we don’t want our converter returning something ludicrous like “Your 44 dollars will currently buy you 48.0000000000006 Euro.” To prevent this, we use Math.floor(), a method provided by Javascript to round numbers down to their nearest integers. Obviously, if we were exchanging real wonga we would have to create something a lot more accurate, but this will do for the purposes of our exercise.</p><p><strong>Step 4: The function()</strong></p><p>Now we’re really getting down to business. To give our application functionality (i.e. to get it to actually do something), we need to create a function. To do this, we use the function keyword, give the function a name which describes what it does and then parentheses(). Our function will be called exchangeMoney(). The body of the function is then placed in curly brackets {}.</p><p>To build up our function, we need to do two things:</p><ol><li><strong>Move the variables into our function:</strong></li></ol><pre>function exchangeMoney() {<br> let originalCurrencyAmount = document.getElementById(<br>  &quot;original-currency-amount&quot;<br> ).value;</pre><pre>let originalCurrencyUnit = document.getElementById(&quot;original-currency-unit&quot;)<br>  .value;</pre><pre>let exchangeRate = document.getElementById(&quot;exchange-rate&quot;).value;</pre><pre>let newCurrencyUnit = document.getElementById(&quot;new-currency-unit&quot;).value;</pre><pre>let newCurrencyAmount = Math.floor(originalCurrencyAmount * exchangeRate);<br>}</pre><p><strong>2. Tell the function to swap out the pre-set text in our </strong><strong>output-text paragraph for the result of our calculation.</strong></p><p>This is the meat of our function. To do this, we use <a href="https://en.wikipedia.org/wiki/String_interpolation#JavaScript">string interpolation</a> (a way of adding variables to Javascript functions — see bold below). I have chosen to express this in a sentence ‘Your <em>X</em> <em>dollars</em> will currently buy you Y<em> Euros</em>’:</p><pre>document.getElementById(<br>  &quot;output-text&quot;<br> ).innerHTML = `Your &lt;span&gt;<strong>${originalCurrencyAmount}</strong>&lt;/span&gt; &lt;span&gt;<strong>${originalCurrencyUnit}</strong>&lt;/span&gt; will currently buy you &lt;span&gt;<strong>${newCurrencyAmount}</strong>&lt;/span&gt;&lt;span&gt;<strong>${newCurrencyUnit}</strong>&lt;/span&gt;`;</pre><p>A simpler version could say something like “Your money will buy you <em>X dollars</em>.”</p><pre>document.getElementById(<br>  &quot;output-text&quot;<br> ).innerHTML = `Your money will buy you &lt;span&gt;<strong>${newCurrencyAmount}</strong>&lt;/span&gt;&lt;span&gt;<strong>${newCurrencyUnit}</strong>&lt;/span&gt;`;</pre><p><em>Note</em>: the interpolated variables are wrapped in &lt;span&gt;s for the sake of styling, this makes no difference to the functionality.</p><p>Our entire JS code now looks like this:</p><pre>function exchangeMoney() {<br> let originalCurrencyAmount = document.getElementById(<br>  &quot;original-currency-amount&quot;<br> ).value;</pre><pre>let originalCurrencyUnit = document.getElementById(&quot;original-currency-unit&quot;)<br>  .value;</pre><pre>let exchangeRate = document.getElementById(&quot;exchange-rate&quot;).value;</pre><pre>let newCurrencyUnit = document.getElementById(&quot;new-currency-unit&quot;).value;</pre><pre>let newCurrencyAmount = Math.floor(originalCurrencyAmount * exchangeRate);</pre><pre>document.getElementById(<br>  &quot;output-text&quot;<br> ).innerHTML = `Your &lt;span&gt;${originalCurrencyAmount}&lt;/span&gt; &lt;span&gt;${originalCurrencyUnit}&lt;/span&gt; will currently buy you &lt;span&gt;${newCurrencyAmount}&lt;/span&gt; &lt;span&gt;${newCurrencyUnit}&lt;/span&gt;`;<br>}</pre><p><strong>Step 5: Wiring it all up.</strong></p><p>You may be thinking, “Cool story — but how do I see this working?” Well, this is the moment of the truth💫…</p><p>To get this show on the road, all we need to do is link our function to the button in the HTML file, allowing it to fire when the button is clicked:</p><pre>&lt;button <strong>onclick=&quot;exchangeMoney()&quot;</strong>&gt;Exchange my moolah now!&lt;/button&gt;</pre><p>Now, we can exchange money until the cows come home:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1007/1*5r2bMYmV8bAzng5IU1YH8w.png" /></figure><p><strong>Step 6: The CSS</strong></p><p>When it comes to styling, the world really is your oyster. Here are a couple of ideas which I used:</p><ul><li><strong>Styling the spans.</strong> To make the output sentence easier to read, we can add a different text color to the spans:</li></ul><pre>span {<br> color: hotpink;<br>}</pre><ul><li><strong>Styling the inputs</strong>. If there’s one thing that makes an application look dated, it’s an unstyled input. Combat this by changing the border-radius and font-size.</li></ul><pre>input {<br> width: 240px;<br> height: 30px;<br> display: inline-block;<br> font-size: 30px;<br> border-radius: 10px;<br>}</pre><ul><li><strong>Button :hover state. </strong>To make it clear when a user is hovering over the button, you can change the background colour and the cursor:</li></ul><pre>button:hover {<br> cursor: pointer;<br> background-color: #3333ff;<br>}</pre><p><strong>Step 7: Fun Extra Bits:</strong></p><p>Here are some non-essential but very fun additions you can use to enhance your application:</p><ul><li><strong>Adding emojis to the application:</strong> The simplest way to do this is with a &lt;span&gt; and an aria-label. You can copy and paste all the emojis you’ll ever need from <a href="https://getemoji.com/">getemoji.com</a>.</li></ul><pre>&lt;span role=&quot;img&quot; aria-label=&quot;money&quot;&gt;💰 &lt;/span&gt;</pre><ul><li><strong>Adding an emoji to the tab:</strong> If you’d like an emoji to appear in the browser tab (and who wouldn’t?), simply and copy and paste it into the &lt;title&gt; in the HTML:</li></ul><pre>&lt;title&gt;💰&lt;/title&gt;</pre><p>You can view and play with my completed Amazing Currency Converter in <a href="https://codepen.io/LKRR/pen/ExavVKq">this Codepen</a>:</p><p><strong>Above and Beyond: </strong>So you’ve completed the project and feel like taking it to the next level? Here are some suggestions for improvements you could Google and implement:</p><ol><li>Finding a more accurate way to round down (e.g. to the nearest cent).</li><li>Linking it up to a real exchange rate API 😬.</li></ol><p>Happy currency converting! 💸💸💸</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=187ab660d7ec" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/how-to-build-something-with-js-when-youve-never-seen-js-before-in-your-life-and-don-t-really-know-187ab660d7ec">How to build something with JS when you’ve never seen JS before in your life and don’t really know…</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spirited Away — What was that about?]]></title>
            <link>https://medium.com/@leanne.k.rybintsev/spirited-away-what-was-that-about-138475345a61?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/138475345a61</guid>
            <category><![CDATA[movies]]></category>
            <category><![CDATA[film]]></category>
            <category><![CDATA[film-analysis]]></category>
            <category><![CDATA[miyazaki]]></category>
            <category><![CDATA[spirited-away]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Mon, 11 Nov 2019 19:41:45 GMT</pubDate>
            <atom:updated>2019-11-11T19:49:32.819Z</atom:updated>
            <content:encoded><![CDATA[<h3>Thoughts on Spirited Away</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*Ik6NvRxboMSloRDHxvyGKw.png" /></figure><p>Last weekend, my husband and I went to see Spirited Away at the cinema. What an experience that was! It was certainly different to any film either of us had seen before, and to be honest, we spent a good portion of it wondering what on Earth was going on. After a period of contemplation, I have put together a brief rundown of some of the meanings I inferred from the film. <strong>Note:</strong> I deliberately haven’t read up on the real meanings, so these may be embarrassingly wrong.</p><p><strong>The Stink Spirit</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/478/1*X3N-WKhuXnFhlV0xKuLYog.png" /></figure><p>Wow, what a guy — a reeking monstrous creature turns up at the bathhouse and it transpires after several hundred litres of water that he has a thorn stuck in his side which, when removed, spurts out a load of half-decayed bicycles, pipes and other metal items. I read this as a metaphor for how excessive consumerism can pollute a person, and how getting rid of material possessions can have a cleansing effect.</p><p><strong>Twin Witches</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*4IJ4449F65KcAVdU8D7Eww.png" /><figcaption>Yubaba</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*Y9YvRmjYtmefpz2S0H2PZg.png" /><figcaption>Zeniba</figcaption></figure><p>To be honest, I find both these characters highly unsettling (even Zeniba, the “good twin”) — maybe because they are so unpredictable. In any case, I think the twin witches with their contrasting (but strangely similar) personalities show that there is good and bad in everyone, and what matters is which side we act on.</p><p><strong>Chihiro’s parents turning into pigs</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*odxS5NlDGC4OfSEwYH9JPg.png" /></figure><p>This seems like a fairly obvious one — give into greed and it’ll consume you. One interesting point was that, once they turn into pigs, the parents look exactly like all the other pigs (except to Chihiro) — perhaps a reference to the cooker-cutter fashion trends which are infiltrating the world?</p><p><strong>NoFace</strong></p><p>Well, this is an interesting one. An almost mute spirit figure who goes from this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/477/1*m7TpqVZaRAvbBR_CRpd73w.png" /></figure><p>to this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/463/1*TyW-S24RYppFiNPBOaYp8Q.png" /></figure><p>in the space of an afternoon. Oh, and he (she?) also swallows people and subsequently takes on elements of their personality. For me, this is an astute way of illustrating how the company one keeps can affect a person. Hang out with kind and responsible people, and that’s what you’ll be. Spend time with selfish and greedy people, and you’ll be like that too. Sobering thoughts.</p><p><strong>The</strong> <strong>Radish Spirit</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*dMlHfYzF_dhg5_K2iaPRDA.png" /></figure><p>Wow — a giant, creepy vegetable dude. To be honest, this one stumped me. Maybe it’s a lesson on how to be nice to individuals whom you don’t really like? Or to tolerate vegetables even if you can’t enjoy them? It’s an interesting one.</p><p>There are so many other elements of the film I could talk about, and I’m sure we missed many of the cultural references simply through not being immersed in Japanese society. One thing’s for sure, though — the film really kept us on our toes and gave us a lot of thought-provoking ideas to discuss afterwards. In a couple of weeks we are off to see Princess Mononoke, another Miyazaki film — we’re really excited to see what’s in store for us next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=138475345a61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Really Matters in Life?]]></title>
            <link>https://medium.com/@leanne.k.rybintsev/what-really-matters-in-life-e7742f1d7f2b?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/e7742f1d7f2b</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[lifestyle]]></category>
            <category><![CDATA[houseplants]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Wed, 30 Oct 2019 08:56:25 GMT</pubDate>
            <atom:updated>2019-10-30T08:56:25.607Z</atom:updated>
            <content:encoded><![CDATA[<p>Like most years, this one has had its ups and downs for me. It has taught me a lot, though. Maybe not the meaning of life (I’m still pondering that one), but What Really Matters. Here are the things I reckon actually make a difference to health and happiness.</p><p><strong>Proximity to friends and family</strong></p><p>A couple of years ago, we decided to move from sunny Sussex to a town in another part of the country to pursue work opportunities. This town shall remain nameless because, well, this entire article basically slags it off.</p><p>As Nameless-town was ‘only’ three hours away, we thought we’d be able to visit friends and family whenever we wanted, and weekend trips to and from Sussex would be a regular thing.</p><p>It turned out that Nameless-town was in fact three hours and a £70 (per person!) train fare away, which adds up if you make a habit of it. We quickly also realised that Nameless-town was shall we say, less than riveting — so entertaining people at ours wasn’t really an option.</p><p>After two years of pretending that Nameless-town was interesting, we eventually bit the bullet and moved back down south. Now I can meet my Mum for lunch for the princely sum of £3.35 (with Railcard) — a substantial saving!</p><p><strong>Sunlight</strong></p><p>Ever since I was small, I’d always dreamt of living in a really old house — the type with beamed ceilings and tiny doorways. A couple of years ago, that dream was finally realised and we moved into a Grade II listed former pub of 16th or 17th Century origin — or so says a quick Google search.</p><p>It turned out, old buildings are not that great. The sash windows were a pain to open and close, I was fighting an eternal battle with dust and it was so dark and dingy that all my houseplants died, apart from two spider plants. These illustrious green heroes have since been renamed Edmund and Tenzing, in honour of their steadfast resilience and apparently small appetite for oxygen — the converted pub was rather stuffy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*WaFFtgAEToLKnSRpbUuAnA.jpeg" /><figcaption>Edmund</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*5e6JA0mdIQP5YVpPUX_b9Q.jpeg" /><figcaption>Tenzing</figcaption></figure><p>We have since moved into a light, airy (new) apartment where my replenished houseplant collection can thrive and we don’t feel like we’re experiencing polar night.</p><p><strong>Plants</strong></p><p>Speaking of plants, I’ve found that they really are instrumental in maintaining a good mood. Not only do they clean the air and all that, but they also make your living space look like it’s been plucked from an interior design magazine.</p><p>Also, having (living) houseplants totally proves that you’re a fully functioning, well-rounded adult, right?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*rjaeAG1eIB59adW0hVMogw.jpeg" /><figcaption>My snake plants — Lucius and Draco</figcaption></figure><p><strong>Fresh Air</strong></p><p>My Mum is a firm believer in a good dose of fresh morning air to lift the spirits — and I think she’s onto something. If I’m feeling down, I step outside for a stroll by the seaside and my happiness bar is instantly boosted by at least 20 points.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*vvSVagdIyfiShCovify8ug.png" /><figcaption>That’s what I’m talking about</figcaption></figure><p><strong>Good Food</strong></p><p>As the medical profession (and Tesco) never tire of harping on to us, fresh fruit and veg really count for a lot. We learnt the hard way that they are surprisingly hard to come by in some places in the U.K., especially if you don’t want them wrapped in 15 layers of plastic — yes Waitrose, I am looking at you. Luckily, we can now buy our 5-a-day just a stone’s throw from our house, completely plastic free.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*EW4lw73CFVE01YNTJBxQKg.jpeg" /><figcaption>Yay, fruit!</figcaption></figure><p><strong>Goals and Opportunities</strong></p><p>Fresh air and decent apples are all well and good, but they won’t do much for your general wellbeing if there are no employment opportunities in your area (to be fair, Nameless-town did have that going for it). Thankfully, our new town seems quite good on that front, too.</p><p>Similarly, we all need something to aspire to. I’m currently at something of a crossroads in my life, and in a (perhaps ill-advised) bid to regain some semblance of order, I have recently signed up for the Tallinn Marathon next September, which according to the website, looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*BKHqdvTtVvGFanxOt8pcWA.png" /><figcaption>Who wouldn’t want a slice of that?</figcaption></figure><p>So there you have it —the things that really matter in life are friends and fam, daylight, plants, air, grub and having something to do. Guess I’ll hold off on that Mars mission then!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/168/1*vyvZ6QIqEjz6ccTs-y3z1g.png" /><figcaption>Yeah no.</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e7742f1d7f2b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coding — what’s the deal with that?]]></title>
            <link>https://medium.datadriveninvestor.com/coding-whats-the-deal-with-that-6e6f295c5104?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e6f295c5104</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Wed, 25 Sep 2019 16:08:29 GMT</pubDate>
            <atom:updated>2019-09-26T11:15:01.444Z</atom:updated>
            <content:encoded><![CDATA[<h3>Coding — what’s the deal with that?</h3><p>Many people come to code later in life or as a second (or third, or fourth) career. But what’s it like to code professionally, and how does it compare to other careers? Now that I have glimpsed the world of professional coding, I break down the pros, cons, and WTFs of going pro.</p><h3><strong>Pros</strong></h3><p><strong>Learning</strong> — It’s great to leave work knowing something you didn’t know when you rocked up that morning. It’s even better at the end of the month when you see all the knowledge you’ve accumulated put into action in a bigger project.</p><p><a href="https://www.datadriveninvestor.com/2019/02/21/best-coding-languages-to-learn-in-2019/">Best Coding Languages to Learn in 2019 | Data Driven Investor</a></p><p><strong>Feeling like you’ve swallowed the red pill</strong> — You’ll never look at <a href="https://www.angrybirds.com/">https://www.angrybirds.com</a> (or any other website) the same way again once you find out what goes into making them. This can be a double-edged sword though when you find yourself thinking, “Why couldn’t they just add <em>XYZ line of code</em> to make this website slightly less annoying?”</p><p><strong>Looking like a genius on the train </strong>— People see this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/1*p1rhHsIVkSmUoo1bbTdj7g.png" /></figure><p>And they think you’re doing this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*bZ7ZMYmRvexIPk7r_3rGcw.png" /></figure><p>When really all you’re doing is this:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FJIX9t2j0ZTN9S%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FJIX9t2j0ZTN9S%2Fgiphy.gif&amp;image=https%3A%2F%2Fmedia4.giphy.com%2Fmedia%2Fv1.Y2lkPTc5MGI3NjExZ3VsdjN5bHViNWRuM2oyemhlaGg1b3hyaTRrZHY4aXVzMHhsNDd2dSZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw%2FJIX9t2j0ZTN9S%2Fgiphy_s.gif&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/a511fb273fbe6d94dbd501d00490d73c/href">https://medium.com/media/a511fb273fbe6d94dbd501d00490d73c/href</a></iframe><p>I know this because not long ago I was one of those people.</p><h3><strong>Cons</strong></h3><p><strong>Abject Panic</strong> — AKA the feeling when you don’t know how to do something, although this is offset by the elation of eventually finding out how to do it.</p><p><strong>CSS frustration</strong> — For those of you who have never used CSS, this refers to spending a long time trying to adjust an element by one pixel and/or realising it has messed up everything else on the page when you do eventually do it. The struggle is real. There’s even a meme about it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*edZwcBx61x6Y71nh5BitrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*ZrIBsIchugGeAHcuz_arhw.png" /></figure><p><strong>Internet Explorer</strong> — The Internet is growing and developing every day and devs are constantly creating new and amazing things for us to use on the Web. Sadly, these new and amazing things are hardly ever supported by IE. This often means you have to create a 50-line workaround for a 5-line piece of code just for the God-knows-how-low-the-precentage-is people who are still using IE. Why God, why?</p><h3><strong>How does it compare?</strong></h3><p><strong>Admin: </strong>One big difference between admin and web development is that people in code aren’t impressed if you can use Excel. You do get to learn about a lot of things which are even more exciting than Excel, though.</p><p><strong>ESL(English as a Second Language) Teaching:</strong> Although you don’t have the pleasure of meeting such a wide range of people from different backgrounds and hearing the amusing things they accidentally (or deliberately) say,<strong> </strong>the plus side of coding over teaching is that you don’t have to stand in front of people and look cheerful all the time (unless you’re a developer-advocate, I suppose). You still run on roughly the same amount of coffee, though. It’s just that people are no longer impressed if you can explain the present perfect.</p><p><strong>Hospitality: </strong>When I say ‘hospitality’, what I am referring to is the time I spent working in the local fish and chip shop and the other time I spent pulling pints in the Student Union bar. Although the hours are arguably less antisocial with web development, you do sometimes find yourself coding (or at least thinking about it) at four in the morning. But at least you’re not arguing with drunks meanwhile, or if you are, it’s probably time to change that LinkedIn job search preference back to “Actively Looking”. That said, people are probably still impressed if you can pour a decent pint of Guinness (who isn’t?).</p><p>In summary, coding is great if you love to constantly learn and develop (and drink coffee) and are able to stay calm when you don’t know what’s going on. This kind of vibe:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/418/1*0ee-CZvcs_GGGg-njChyHg.png" /></figure><p>Figurative house-burning aside though, coding does provide lots of opportunity for growth and varied workdays. So if you’re tempted to dip in your toes, give it a shot — it could be the start of an amazing new journey.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e6f295c5104" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/coding-whats-the-deal-with-that-6e6f295c5104">Coding — what’s the deal with that?</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[FreeCodeCamp to job offer in 310 days — What worked and what sucked.]]></title>
            <link>https://medium.datadriveninvestor.com/freecodecamp-to-job-offer-in-310-days-what-worked-and-what-sucked-6878f287ed3d?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/6878f287ed3d</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[html]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Thu, 29 Aug 2019 04:27:06 GMT</pubDate>
            <atom:updated>2019-08-29T11:42:44.224Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*V95Emn2nLxjhU3vT" /><figcaption>Photo by <a href="https://unsplash.com/@ikukevk?utm_source=medium&amp;utm_medium=referral">Kevin Ku</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3><em>FreeCodeCamp to a job offer in 310 days</em> <em>— What worked and what sucked.</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/243/1*u02OR2MPVZoFbTRf5JDveQ.png" /></figure><p>On 14 August 2018, I logged into FreeCodeCamp for the first time and started my coding journey. Starting with HTML and CSS, I quickly became hooked and started studying in as many spare moments as my brain could handle. I later moved onto Codecademy’s Javascript course, followed by Bob Zirrol’s excellent React course on Scrimba. On the way, I also completed shorter courses on Flexbox, CSS Grid, Sass and color design.</p><p>Having finished the Scrimba course, I was confused about where my coding roadmap should take me next. In the end, I decided to deepen my knowledge of Javascript and React by following intermediate-level courses. In hindsight, the material was aimed at a higher level than I was familiar with and this stalled my progress.</p><p><a href="https://www.datadriveninvestor.com/2019/02/21/best-coding-languages-to-learn-in-2019/">Best Coding Languages to Learn in 2019 | Data Driven Investor</a></p><p>Luckily, before I hung up my gloves (or rather, deleted my CodeSandbox) forever, I attended <a href="https://medium.com/datadriveninvestor/my-first-developer-conference-what-i-learnt-4d1593c4284e">Developer, Developer, Developer SouthWest</a> in April. Getting a real feel for the industry, seeing fabulous women such as <a href="https://twitter.com/galiyawarrier">Galiya Warrier</a> (Microsoft), <a href="https://twitter.com/Rabeb_Othmani">Rabeb Othmani</a> (Developer Advocate), <a href="https://twitter.com/carly_britton">Carly Britton</a> (Vualto), <a href="https://twitter.com/HotCupOfTeaPls">Ceri Newton-Sargunar</a> (Mondo Media) and Rhian Rose (Landmark) at work and some very encouraging chats with recruiters gave me a renewed zeal for code, and put me back on the right track. A few weeks later, I felt ready to tackle the job hunt which, although full-on, was relatively pain-free and, at times, even entertaining.</p><p>Now, on the cusp of starting a new career, I’ve had time to reflect on my coding journey, what was a success, what sucked and what I’d advise other people who want to learn to code.</p><p>Do this:</p><p>- Learn as many technologies as possible. When it comes down to it, a big deciding factor in whether you get a call from a recruiter is whether you tick enough boxes on Linkedin. The more courses you do, the more boxes you tick, so try to get your fingers in as many pies as possible.</p><p>- Keep a portfolio and link to it on your CV and LinkedIn. This can be on Codepen or CodeSandbox (or both) — just provide an easy way for people to view your work.</p><p>- Build your own projects. Tutorials are great, but it’s even better to use what you’ve learned for something of your own creation. Try to apply your new skills to a project you’ve made yourself.</p><p>Don’t do this:</p><p>- Dive too deep. By this, I mean trying to tackle the advanced stuff before you’ve got the basics nailed down. Sounds obvious, but it really is better to solidify your basic knowledge of Javascript before you start getting involved in things like prop drilling and React Router.</p><p>- Code on holiday. In February, we took a trip to Marrakesh. Not wanting to fall behind on coding, I took my laptop. Big mistake. Our room in the Riad had no lock, meaning I had to carry the laptop everywhere we went. It’s even been on the back of a camel. It turns out that a freezing, pitch-dark Riad courtyard (the only place I could code without waking up my husband) isn’t that conducive to learning. Your brain needs a break, so make the most of those holidays.</p><p>In conclusion, coding is a long game. On good days, you get instant gratification and feel like ‘King of the Machines’, as my husband recently proclaimed when something finally started to work. On other days, you feel like taking a sledgehammer to your laptop, the table it’s on, and the room that the table is in. On these days, you need to have the self-belief to carry on. If you’re struggling, take a walk, do some pottery, listen to some death metal, do anything you need to refresh your brain and then get back to it with a fresh set of eyes. But most of all, in the words of 2Unlimited: ‘Never ever, never ever surrender’.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6878f287ed3d" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/freecodecamp-to-job-offer-in-310-days-what-worked-and-what-sucked-6878f287ed3d">FreeCodeCamp to job offer in 310 days — What worked and what sucked.</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is React Router and why should I care?]]></title>
            <link>https://medium.com/@leanne.k.rybintsev/what-is-react-router-and-why-should-i-care-d6beaa0b5bf1?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6beaa0b5bf1</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Sat, 27 Jul 2019 12:34:54 GMT</pubDate>
            <atom:updated>2019-10-24T09:19:27.520Z</atom:updated>
            <content:encoded><![CDATA[<h3>What is React Router and Why Should I Care?</h3><p>React Router is something we should all be doing…apparently. But what is it? And how do we use it? Read on to find out.</p><p><strong>What is React Router anyway?</strong></p><p>Many websites these days consist of a single page (they just look like they have multiple pages). React Router is a tool which allows you to link the landing page of your website to components which render like separate pages but are in fact parts of the same page. For example, you can use React Router to connect <em>www.awesomewebsite.com</em> to <em>www.awesomewebsite.com/whyweareawesome </em>(don’t try to click on these links, this is not a real website.)</p><p><strong>Right, sounds useful. How do I use it?</strong></p><p>To use React Router, you first have to install it using NPM.</p><ol><li>Open the terminal.</li><li>Navigate to your file, or if your app is already running, hit npm stop.</li><li>Type $ npm install --save react-router-dom.</li><li>(Re)start app with npm start.</li></ol><p>Now, import React Router into your app. You will need to import BrowserRouter, Route and Switch from &#39;react-router-dom&#39;.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*swGue9xX6le8FVez0y5HhQ.png" /></figure><p>Now to get down to using this stuff. In my example, I am going to be linking the landing page with two “pages” (which are actually just components) called Contact and About.</p><p>First, set up your app component. Everything will need to go inside&lt;BrowserRouter&gt; tags, so put those in first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*OWxiadBsVXVKx4dHhCUISA.png" /></figure><p>Next, add the Switch tags. These ensure that only one component is rendered at a time. If we don’t use this, the Error component (which I’ll get to later), will always render at the bottom of the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*_AwIRhGS050TMRxWHzZXBQ.png" /></figure><p>It’s now time to add your &lt;Route&gt; tags . These provide a link between the components, and go between the &lt;Switch&gt; tags. Note: the components will need to imported at the top of the app. It’s best to organise them into a separate “components” folder to keep the app neat and tidy for yourself and any future developers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/468/1*SLWg6bdi4cMMTq7YnSv56Q.png" /></figure><p>To tell the &lt;Route&gt; tags where to go, simply add a path (path=”./[url]” ) and the name of the component which you want to load(component={ComponentName})</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/1*ZfFzo2cjS3atLflUHwjp5g.png" /></figure><p>If, like me, you have used “/” as the homepage URL, you need to addexact to the Route tag (see above), this is because all the URLs contain “/”, so if you don’t tell the app that it needs to look for just “/”, it’s going to cause mayhem.</p><p>I also set up an error component which loads if a user types an incorrect URL. This is just like a normal &lt;Route&gt; tag, but with no path. The Error component contains &lt;h1&gt;Page not found&lt;/h1&gt;. If you set up an error component, this also needs to be imported into the app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/1*IaIXHOT9RKxL6yyrBGrRmw.png" /></figure><p>This is all well and good, but so far the only way for the user to navigate between the components is by typing the URL, which obviously no one does. Thankfully, the react-router-dom package has us covered with the inventively named NavLink which provides declarative, accessible navigation around your application (or so says the documentation).</p><p>To use it, simply set up a new component (I’ve called mine Navigation) and import it into the app. In that component, add a NavLink for each component in the app and use to=”URL” to link them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/487/1*H885TmFuqt-0YOvhkDIUyQ.png" /></figure><p>Clickable links will now be added to the site, as you can see below in my almost completely un-styled example.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*tiI6NB7juuM1k5ZjhXHflw.png" /></figure><p>You can see and experiment with my React Router app here:</p><p><a href="https://codesandbox.io/embed/react-router-2-2ydm7?fontsize=14">https://codesandbox.io/embed/react-router-2-2ydm7?fontsize=14</a></p><p>So that’s basically it. If you want to navigate around a React app, forget the anchor tags and hit up React Router. It’s neater, it’s easier to organize, and adding and deleting pages is a lot simpler. Yay for React Router!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6beaa0b5bf1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[6 Life-saving Front-end Coding Hacks]]></title>
            <link>https://medium.datadriveninvestor.com/6-life-saving-front-end-coding-hacks-5a4cc49473bf?source=rss-139978cdb6e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/5a4cc49473bf</guid>
            <category><![CDATA[web-design]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[hmtl]]></category>
            <category><![CDATA[hacks]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Leanne Rybintsev]]></dc:creator>
            <pubDate>Thu, 27 Jun 2019 07:48:53 GMT</pubDate>
            <atom:updated>2019-06-28T04:50:16.046Z</atom:updated>
            <content:encoded><![CDATA[<figure><a href="http://www.track.datadriveninvestor.com/1B9E"><img alt="" src="https://cdn-images-1.medium.com/max/700/0*i2U30RS-KPuX5rl1" /></a></figure><p>Code — as someone on Twitter recently said, “a great occupation for those who enjoy alternating between feeling like the smartest and dumbest person in the world”.</p><p>In a bid to feel like the latter less frequently, I have compiled 6 coding hacks that save me time and hair-tearing. I spent many hours (well, at least minutes) Googling these — and compiled them here so you don’t have to.</p><p><a href="https://www.datadriveninvestor.com/2019/02/21/best-coding-languages-to-learn-in-2019/">Best Coding Languages to Learn in 2019 | Data Driven Investor</a></p><p><strong>1. </strong><a href="https://caniuse.com/#home"><strong>CanIuse</strong></a></p><p>With so many fancy new features appearing almost daily in the world of tech, it can be hard to keep up with which features work well in different browsers. <a href="https://caniuse.com/#home">CanIUse</a> removes the guess-work. Simply input the feature you would like to use, and the app outputs a shiny diagram with green squares for the browsers which will be happy with your selection and red squares for those which will spectacularly crash.</p><p>If applicable, CanIUse even tells you which prefix to use to enjoy support for a particular feature. Now, that’s a service!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OLmK2dm18oQb-RKa0ByqPw.png" /></figure><p><strong>2. </strong><a href="https://grid.layoutit.com/"><strong>LayoutIT Grid Generator</strong></a></p><p>CSS grid — arguably the best time-saving invention since the microwave oven, but much harder to set up (fewer annoying noises and no explosion risk, though).</p><p><a href="https://grid.layoutit.com/">CSS Grid Generator</a> does the hard work of figuring out those fr units (no more thinking about where the separating lines are, or what the Hell is going on). All you need is an idea of what your layout will look like and the ability to remember to hit the save button.</p><p>A word of warning, though, the generator does not refactor the code. This means that, if an element has a width of 3fr, the generator will output 1fr 1fr 1fr for that element. While this will work, it is not clean code so it’s best to go in and tidy it up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lB3-IS9a_sIJ-El6eMopkQ.png" /></figure><p><strong>3. </strong><a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/"><strong>Complete Guide to Flexbox</strong></a></p><p>Flexbox- undeniably the only way to wrap items on resize, but baffling if you don’t have <a href="https://css-tricks.com/snippets/css/a-guide-to-flexbox/">this cheat sheet</a> (so I imagine, at least, thankfully this was shown to me the first time I used Flexbox, so I’ve never had to struggle on without it).</p><p>The cheat sheet shows which properties should be on the parent element and which should be on the children. It also gives you the lowdown on what the properties all do. Even if you’re not sure what you want to do with Flexbox, it’s a great way of picking up new hacks and ideas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*NzUEenXakcfYJX7aymcwJQ.png" /></figure><p><strong>4. </strong><a href="https://www.cssmatic.com/box-shadow"><strong>Shadow Generator</strong></a></p><p>Who doesn’t love CSS shadow? A simple but effective way to make elements pop on the page while simultaneously making it look like you’ve done hours of work. Although adding a shadow isn’t complicated, it can be faffy, especially if you’re not sure what type of shadow you’d like to add.</p><p>This is where S<a href="https://www.cssmatic.com/box-shadow">hadow Generator</a> comes in. Simply specify the horizontal and vertical shadow size and adjust the blur effect, spread radius and colour if you wish. The app then outputs the CSS for you to copy and paste into your style sheet. It even gives you the -webkit and -moz prefixes, so your shadow is cross-browser compatible. The generator is a great way to play around with shadow and learn how to use it or try out different ideas for a project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*yVtxz2jH2g9FmpPGvhFvMg.png" /></figure><p>The site also has generators for gradients, border radius, and noise texture, so it’s a great source for improving your design skills.</p><p><strong>5. </strong><a href="https://coolors.co/"><strong>Coolors</strong></a></p><p>Not strictly code-related, but nonetheless this easy-to-use, interactive <a href="https://coolors.co/">colour scheme generator</a> is a big help and lots of fun when doing anything front-end. Simply hit the space bar and the app gives you a perfectly coordinated colour scheme with copy-and-past-able shades. You can lock down colours you like and adjust shades to fit the needs of your project. Best of all, there is a back button, so there’s no need to worry if you are a bit too trigger-happy with the space bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*efE1k3rhApkjJKCquASbWQ.png" /></figure><p><strong>6. </strong><a href="https://contrast-ratio.com/"><strong>Contrast Ratio</strong></a></p><p>A good website should have a contrast ratio of at least 7:1 for normal text and 4.5:1 for large text to ensure maximum accessibility (and minimum squinting). This can be a pain if you’re unsure how to measure contrast ratio, but luckily <a href="https://contrast-ratio.com/">contrast-ratio.com</a> is at hand to help.</p><p>Input the colours you are thinking of using for the background and text colour and the app returns a big green circle if the contrast ratio is OK, or a big red one if it’s a no-no. It recognises all colour units, including CSS colour names. Even better, the explanatory text changes to the colours you choose, so you really get a feel for how the text will look in your project. You can also invert the colours to see whether your project would benefit from a darker or lighter feel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*iRzezBOp-FxQj1OtGBUb0g.png" /><figcaption>Computer says no.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*G-Y7y1uikR4HFWKaukbBzQ.png" /><figcaption>Onto a winner!</figcaption></figure><p>This concludes my top six code-frustration-blockers, I hope they save you many hours of forehead clutching. If you have any other tops hacks or ideas for shortcuts you would like to see, please let me know in the comments section. Happy coding!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fb2a0d6%3Fas_embed%3Dtrue&amp;dntp=1&amp;display_name=Upscribe&amp;url=https%3A%2F%2Fupscri.be%2Fb2a0d6%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href">https://medium.com/media/0707f5c806284d01a4a13c7b13a91ce3/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5a4cc49473bf" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/6-life-saving-front-end-coding-hacks-5a4cc49473bf">6 Life-saving Front-end Coding Hacks</a> was originally published in <a href="https://medium.datadriveninvestor.com/">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>