<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Lucia Velasco</title>
    <description>The latest articles on DEV Community by Lucia Velasco (@luciavelasco).</description>
    <link>https://dev.to/luciavelasco</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F34273%2Fe59fbefb-0255-47d7-ac7c-1e789ec61834.jpeg</url>
      <title>DEV Community: Lucia Velasco</title>
      <link>https://dev.to/luciavelasco</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/luciavelasco"/>
    <language>en</language>
    <item>
      <title>Things My Trainer Told Me Not To Do</title>
      <dc:creator>Lucia Velasco</dc:creator>
      <pubDate>Wed, 08 Aug 2018 16:21:25 +0000</pubDate>
      <link>https://dev.to/luciavelasco/things-my-trainer-told-me-not-to-do-3d7m</link>
      <guid>https://dev.to/luciavelasco/things-my-trainer-told-me-not-to-do-3d7m</guid>
      <description>&lt;p&gt;When I went to &lt;a href="https://maydenacademy.co.uk"&gt;Mayden Academy&lt;/a&gt; I was inducted into the wondrous world of software development. Sometimes what you're taught to do doesn't stick with you as much as what you're taught &lt;strong&gt;not&lt;/strong&gt; to do. That's a good thing!&lt;/p&gt;

&lt;p&gt;Here are some sage nuggets of wisdom. Whatever you do, just remember not to...&lt;/p&gt;

&lt;h1&gt;
  
  
  Skip Ahead
&lt;/h1&gt;

&lt;p&gt;No! You really ought to know what a function is &lt;em&gt;before&lt;/em&gt; you try to unit testing... And no, you'll find out about OOP in a few weeks. I don't care that your older brother told you it's faster in jQuery, we're learning VanillaJS first. No! Put. The. Dollar. Sign. Down!&lt;/p&gt;

&lt;h1&gt;
  
  
  Bodge it
&lt;/h1&gt;

&lt;p&gt;Hm... it's a good thing you all did your browser testing! After all, we're using VMs for a reason! You &lt;strong&gt;did&lt;/strong&gt; do your browser testing, right? Okay, good. So now explain to me why only half the site is actually &lt;em&gt;on&lt;/em&gt; the screen in IE11... And is there a reason you're running a loop that does nothing? 40 times?&lt;/p&gt;

&lt;p&gt;You might feel the temptation to...&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Skip code review&lt;/li&gt;
&lt;li&gt;Skimp on code review&lt;/li&gt;
&lt;li&gt;Ignore accessibility&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Don't.&lt;/strong&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Make it work... no matter the cost
&lt;/h1&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;$ git push --force&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Where are everyone else's branches, Lucia? DESTROYED. BY YOU. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;!important&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Lucia. You just spent thirty minute trying to figure out why your red text wouldn't turn blue. You know why that was, Lucia? It's because you used bang important. What did I tell you to never, ever do (unless you're me) in css, Lucia? I TOLD YOU NEVER TO USE &lt;code&gt;!IMPORTANT&lt;/code&gt;, LUCIA.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;sudo [all the things]&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Okay look. I don't know what you did, or how it broke everything, but even though we turned it on and off again, uninstalled all the things, wiped your laptop twice, reinstalled some of the things... in the end we just had to burn it. Everything was broken all the time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/kHU8W94VS329y/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/kHU8W94VS329y/giphy.gif" alt="Burning..."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Change history
&lt;/h1&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;$ git rebase&lt;/code&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;$ git reset --hard&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;Just use &lt;code&gt;$ git revert&lt;/code&gt;!&lt;/p&gt;

&lt;p&gt;When you're new to git I guarantee you will lose something to &lt;code&gt;$ git reset --hard&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;A transparent, thorough commit history is your friend. It's also your team's friend - they need to learn from your mistake, too! And doesn't it feel better to have zero chance of losing all your work forever because you didn't run that &lt;code&gt;git reset&lt;/code&gt; (and didn't know about &lt;code&gt;git reflog&lt;/code&gt;)?&lt;/p&gt;

&lt;h1&gt;
  
  
  Select all the things
&lt;/h1&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;SELECT *&lt;/code&gt;
&lt;/h2&gt;

&lt;h2&gt;
  
  
  &lt;code&gt;$ git add .&lt;/code&gt;
&lt;/h2&gt;

&lt;p&gt;DO YOU KNOW WHAT'S IN THAT DOT?! NO, LUCIA, YOU DON'T. Congratulations, you just committed the file you made to jot down the wifi details while I was talking. That could have been &lt;em&gt;patient data&lt;/em&gt;, Lucia. &lt;em&gt;PATIENT DATA&lt;/em&gt;. &lt;em&gt;Why would you do that to those patients, Lucia? &lt;strong&gt;Why?&lt;/strong&gt;&lt;/em&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Ignore the inspector
&lt;/h1&gt;

&lt;p&gt;Your button isn't doing anything on click? Okay. What's in the console? You haven't checked?!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/nlIZ0vL7AjaMIXHZjj/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/nlIZ0vL7AjaMIXHZjj/giphy.gif" alt="Why do I bother..."&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do what I did; get really fast at opening that inspector and pretending it had been there all along.&lt;/p&gt;

&lt;h1&gt;
  
  
  Ignore basic security
&lt;/h1&gt;

&lt;p&gt;Your queries are unparameterised, your validation is missing, your password's hashed but not salted... and you're using sha-1? Seriously peeps, bcrypt, I told you it was the only way to go. Aaaaand now I have admin access to your CMS. Look who's about to publish a blog post on how &lt;strong&gt;awesome&lt;/strong&gt; I am!&lt;/p&gt;

</description>
      <category>beginners</category>
      <category>learning</category>
      <category>devtips</category>
    </item>
  </channel>
</rss>
