<?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 Eric Adamski on Medium]]></title>
        <description><![CDATA[Stories by Eric Adamski on Medium]]></description>
        <link>https://medium.com/@ericadamski?source=rss-cf9894fccad7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*L65sR-ejiBgEBsECWtUzwg.jpeg</url>
            <title>Stories by Eric Adamski on Medium</title>
            <link>https://medium.com/@ericadamski?source=rss-cf9894fccad7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 01:58:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ericadamski/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[I like watching that show on Netflix too]]></title>
            <link>https://medium.com/@ericadamski/i-like-watching-that-show-on-netflix-too-fe89afd56086?source=rss-cf9894fccad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/fe89afd56086</guid>
            <category><![CDATA[diversity]]></category>
            <category><![CDATA[diversity-and-inclusion]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[equality]]></category>
            <category><![CDATA[inclusion]]></category>
            <dc:creator><![CDATA[Eric Adamski]]></dc:creator>
            <pubDate>Mon, 12 Mar 2018 18:38:52 GMT</pubDate>
            <atom:updated>2018-03-12T19:19:59.214Z</atom:updated>
            <content:encoded><![CDATA[<h4>A journey to understanding my own privilege</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FPt1BVKx4qHJgcyP." /><figcaption>Photo by <a href="https://unsplash.com/@d_mccullough?utm_source=medium&amp;utm_medium=referral">Daniel McCullough</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>At work, I have been attempting to gain a more conscious understanding of my internal biases. I recently was involved in interviewing for new developers. I was quite astonished at how much unconscious bias I had. As soon as someone would pick up the phone, or walk through the door, the judgements would begin: “I like watching that show on Netflix too,” or “They’re driven, just like me.” Ignoring the fact that I am only being exposed to an hour of that person’s life (and a <em>skewed</em> hour at that), I set out on a journey to become more aware of my unconscious and unchecked biases.</p><p>From listening to the radio, to a conversation with a cashier at the grocery store, I began examining all of my interactions, asking, “Is this person being biased? Am I being biased?” My brain was attuned to even the slightest of judgements, judgements not based on principles but on personal bias.</p><h4>What bias?</h4><p>I recently attended a conference. I have been to many conferences before, but this one was different. I write software for a living, so I often seek out speakers and conferences that align with that. This time I strayed from my norm, I heard people speak about saving our oceans, saving our bees, and how to get <em>young</em> people interested in voting. They were all interesting, well presented, and they all made me think — but probably not in the way that was intended.</p><p>In an audience of about 400 people, the majority highly privileged, listening to a talk about a government reform to use more technology, thereby allowing the government to reach more people by connecting all community services over the internet. <strong>Everybody</strong> loved the talk<strong> </strong>and<strong> </strong>I am not against it, its that</p><blockquote>We cannot even give people clean drinking water or access to a proper education. Why do you think everyone has access to the internet?</blockquote><p>Just a month or two ago I would have been euphoric with applause like everyone else, nodding my head hearing the literal intention of what the speaker was saying. Underpinning this is a humongous lack of understanding and large gap in representation. We have a real problem in Canada with the way we treat Indigenous Peoples, and this gap in representation (of our mostly white male point of view) and subsequent lack of understanding are the reasons why. Now I don’t want to stand here and tell you I am above this, I am a white male and I will NEVER being to understand what it feels like to not belong or to be treated differently. If I, a white, privileged male, has just only begun to explore my internal biases and I can see the gaps in the speaker’s plans, the problem is so much deeper that I can imagine.That is frustrating.</p><p>I am picking on that one presentation a little, weren’t the rest OK? Sadly no. From those advocating that we stop shopping at grocery stores because mass farming is killing our bee population. The proposed solution to that — grow all your own food. Can you not see how unreachable that is! Some people cannot even afford the food that is currently available to them. How about helping students taking a gap year before going off to university or college to find their purpose? What about those for whom going to university or college is plainly out of reach? What about those who cannot even graduate high school? It necessarily isn’t a matter of intelligence or perseverance but the lack of equality. Some people never have to worry about food, shelter, or being stopped by the police. I sure don’t. Why doesn’t everyone deserve the opportunity to find their passion and pursue it?</p><h4>So who should solve the problem?</h4><p>It just didn’t sit right. Here I as a white man in a country predominantly run by white men being exposed almost for the first time to the reality that people just don’t think about anyone but themselves. Which alone isn’t the problem, who better to solve the problems you have than you? The problem is that our society doesn’t allow for everyone to solve problems. We are a country of 36 million people where the decisions are made by only 107. That is a ratio of about <strong>ONE</strong> decision maker, problem solver, law creator to ~300, 000 ordinary citizens. In a country as diverse as Canada I can guarantee that 1 person does not accurately represent my opinion and I am in the majority of that 300 thousand, so it definitely doesn’t represent the minority.</p><p>Whoof, that was a little bit of a rant. So what is the point of this article, aren’t you just another white person thinking they will begin to understand what underrepresented groups go through on a daily basis? No, and that’s not my intention. I want to know how to help. I want to continue to discover my own biases and tear them down. I want to be a voice not to minority groups, but to other privileged people. I want to make sure every single privileged person I know or meet understands that they <em>are</em> privileged. I want them to realize that they are not allowed to drive the change leading to equality, because they don’t know what’s required. They aren’t the ones with the ideas of how to better allow the government to communicate with Indigenous Peoples or new citizens from Syria. That isn’t you Mr. White Man, and that isn’t me either.</p><h4>Opportunity, Privilege, and Power</h4><p>Another talk at this conference was about getting young people to vote. The speaker used the recent mass shooting in Parkland, Florida as an example of young people taking action. She argued that these young people were so greatly impacted by this tragedy they felt empowered to march and create change around gun laws. In my view it wasn’t necessarily because the students all of a sudden felt that guns were dangerous. Could it be that people with power around them were now supporting their desire to promote change? Many people feel a responsibility to solve problems affecting their communities, but we aren’t always given equal opportunity to create change. It is my belief that the best people to solve problems are the ones facing that problem. There is no way I can understand the experience of a marginalized person and the problems they face. Therefore, in no way can I create a solution for that person.</p><p>Instead I hope that by continuing to confront my personal biases and seeking out people with different backgrounds than my own I can become a better person.</p><h4>Share Your Ideas.</h4><p>Opportunity and privilege, are a means of social control. I want everyone to <strong>be</strong> free to share their ideas. I don’t want anyone to be marginalized, that isn’t a place I want to live.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fe89afd56086" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Medium Articles on Your Website]]></title>
            <link>https://medium.com/@ericadamski/medium-articles-on-your-website-b3d6b546c583?source=rss-cf9894fccad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3d6b546c583</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[medium]]></category>
            <category><![CDATA[nodejs]]></category>
            <dc:creator><![CDATA[Eric Adamski]]></dc:creator>
            <pubDate>Fri, 10 Jun 2016 22:21:47 GMT</pubDate>
            <atom:updated>2016-06-10T22:21:47.480Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UeFYKYcJcmrbEZJZXnTjzw.jpeg" /><figcaption><a href="https://medium.com/@ericadamski/b3d6b546c583">https://medium.com/@ericadamski/b3d6b546c583</a></figcaption></figure><p>Every time I come across a local business who wants a website, it seems that the most important feature to them is a blog. Being a programmer and all I have a personal beef with tools like Wordpress and Drupal. It is simply because I like control, and when something breaks for a client I want to be 100% confident in my response — with Wordpress/Drupal I just can’t. I don’t have access to the code of each and every plugin and even if I did there are millions of them! Which is why I set out on a hunt to find a good blogging platform.</p><p>I had a few criteria when it came to finding a blogging platform for me and my clients, the first and most important was API. I went to about 6 different blogging sites (<a href="https://ghost.org/">Ghost</a>, <a href="http://postach.io/site/">Postach.io</a>, <a href="https://www.tumblr.com/">Tumblr</a>, <a href="https://svbtle.com/">Svbtle</a>, <a href="https://www.blogger.com/">Blogger</a>, A<a href="https://anchorcms.com/">nchor</a>) and found that although their UI is nice looking (less Blogger) they all seem to lack transparency and features. It became really challenging to find out if each of these blogs even had an API and how useful that API actually was. To be completely honest I was even frustrated with the way Medium had setup their API. I finally gave up, until now, turns out Medium has been there for me all along it was just really well hidden.</p><p>I came across <a href="https://medium.com/@sprawsmdoo/post-medium-articles-to-your-website-with-jquery-and-kimono-6fd9b276fca2#.td90hi34y">this</a> article while trying to use the Nodejs Medium SDK and realizing that it is only for posting (sadface). It had a simple line that showed me that it was possible to grab the latest posts from medium by doing</p><pre>https://medium.com/@ericadamski/latest?=json</pre><p>Then BAM I knew that it was possible to put your Medium articles onto your own personal website.</p><p>Another thing about being a programmer I often do not want to redo work that someone else — who is better than me — has already done. That is why my solution makes use of the HTML and CSS that Medium has so graciously provided.</p><p>Here is my general algorithm, or at least the way that I started off:</p><pre>getLatestMediumPosts (username: string)<br>  result: str<br>  get posts from (https://medium.com/@username/latest)<br>  foreach post p in posts do<br>    str += p.html<br>  end<br>  return str<br>end</pre><p>I stuck pretty close to this and came up with this little implementation using Nodejs (I included it into my <a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-1-4d2a42c803d1">Build Your Own Website</a> tutorial).</p><p>Since I was going to be doing some fancy pantsy things I didn’t want to put all the logic into my router file so I created a model for the blog.</p><p><a href="https://github.com/ericadamski/build-own-website/blob/feature/medium-latest/assets/js/blog.js">ericadamski/build-own-website</a></p><p>First I created a class (using <a href="http://babeljs.io/">Babeljs</a> as the transpiler)</p><pre>const URL = &#39;https://medium.com/@&#39;;</pre><pre>module.exports = class {<br>  constructor(username) { this.username = username; }<br>}</pre><p>Pretty self explanatory, the <em>latest</em> method is the one that does all the work.</p><pre>latest () {<br>  let deferred = q.defer(); // for async calls</pre><pre>  needle.get(`${URL}${this.username}/latest`, (err, response) =&gt; {<br>    if (err) return deferred.reject(err);</pre><pre>    let env = require(&#39;jsdom&#39;).env;<br>    let html = response.body;</pre><pre>    env(html, (err, window) =&gt; { ... }<br>  });</pre><pre>  return deferred.promise;<br>}</pre><p>Here is where the reuse happens, instead of grabbing the json data which represents the latest posts, I grabbed the raw html! Then using <em>jsdom</em> and JQ<em>uery</em> I got the elements I wanted and composed a html page using underscore’s lovely template function.</p><p>Here is the remainder of the html parsing with jquery</p><pre>env(html, (err, window) =&gt; {<br>  if (err) return deferred.reject(err);<br>  let $ = require(&#39;jquery&#39;)(window);</pre><pre>  $(&#39;.postMeta-previewFootActions&#39;).remove() // cannot include this without their scripts</pre><pre>  deferred.resolve(blogTemplate({<br>    posts: _.keys($(&#39;.postItem&#39;))<br>      .filter(n =&gt; !isNaN(parseInt(n))) // get the elements w/o a forloop<br>      .map(n =&gt; `<br>        &lt;div class=&quot;medium-post&quot;&gt;<br>          ${$($(&#39;.postItem&#39;)[n]).html()}<br>        &lt;/div&gt;`)<br>      .reduce((x, y) =&gt; x + y)<br>  }));<br>});</pre><p>Using jquery and underscore I created a static html file on the fly and then serve it up at the request like so</p><pre>let medium = new (require(&#39;../location/of/blog.min.js&#39;))(&#39;ericadamski&#39;);</pre><pre>router.get(&#39;/blog&#39;, (req, res) =&gt;<br>  medium.latest()<br>    .then(html =&gt; res.status(200).send(html),<br>    err =&gt; res.status(404).send(err))<br>);</pre><p>I cheated and took the css style links from Medium :p and added a few of my own styles just to make it look slightly less shit! Have some fun with adding your posts onto your site! Here is the link to the rest of the files if you want to see them complete.</p><p><a href="https://github.com/ericadamski/build-own-website/tree/feature/medium-latest">ericadamski/build-own-website</a></p><p>Leave a response and/or a recommend! Let me know what you think, is this good enough of a blog to have on your own website, our do you require more functionality?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3d6b546c583" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Your First Website — Like A Programmer (Part 3.25)]]></title>
            <link>https://medium.com/@ericadamski/build-your-first-website-like-a-programmer-part-3-25-d746b362bb56?source=rss-cf9894fccad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d746b362bb56</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[gulp]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Eric Adamski]]></dc:creator>
            <pubDate>Mon, 06 Jun 2016 02:26:00 GMT</pubDate>
            <atom:updated>2016-06-06T02:26:00.406Z</atom:updated>
            <content:encoded><![CDATA[<p>This post will be short! It is a continuation of the ‘<em>Build Your First Website</em>’ set of tutorials I have been doing (<a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-1-4d2a42c803d1">Part 1 is here</a>). In here we are going to write a gulpfile which will compress all of our stylesheet resources into one <em>style.min.css</em>. This article will give you a general idea of how a gulpfile is formatted and touch on its use in the development process.</p><p>Let’s get started by creating a branch to make these changes modular.</p><pre>&gt; git checkout develop</pre><pre>&gt; git flow feature start gulp (Git Flow)<br>&gt; git checkout -b feature/gulp (Without Git Flow)</pre><p>Now create a file called ‘<em>gulpfile.js</em>’ in the root of your project directory. You would have installed gulp and some of the dependencies which we will be using earlier in this series so let’s just jump right into coding.</p><p>First, as with all Nodejs projects, let us require!</p><pre>&#39;use strict&#39;;</pre><pre>let gulp = require(&#39;gulp&#39;);<br>let path = require(&#39;path&#39;);<br>let concat = require(&#39;gulp-concat&#39;);</pre><p>For this basic gulp intro we will only need the gulp package (obv!), the path package, and the gulp-concat package (its use will be more clear later).</p><p>Now let’s workout the point of gulp. It is a workflow tool, it is suppose to make our development process just that much simpler by automating some annoying and tedious parts of creating a complete software project. In our case we only want to include a single css file into our website instead of the many we have to include now. We shall start off by writing the skeleton of each gulp task.</p><p>Each task will be of the form:</p><pre>gulp.task(&#39;name:of:the:task&#39;, () =&gt; { do the task });</pre><p>We will be creating 4 tasks: <em>clean, compress, relocate:images, default</em>.</p><p>Let’s start with the <em>clean</em> task, we want this to remove all the old files from our distribution directory (the eventual output of our gulp tasks). This will require a package which we haven’t installed yet, so let’s go ahead and do that.</p><pre>&gt; npm install --save-dev del</pre><p>The ‘del’ package lets us remove files and folders using a gulp task. Here is what the task is going to look like:</p><pre>gulp.task(&#39;clean&#39;, () =&gt; <br>  require(&#39;del&#39;)([path.join(__dirname, &#39;public&#39;, &#39;dist&#39;, &#39;*&#39;)])<br>);</pre><p>As you can see when we do</p><pre>&gt; gulp clean</pre><p>on the command line del removes all the files in the public/dist/ directory.</p><p>Next we want to actually populate the public/dist/ directory with our compressed css file. So let us create another gulp task to compress all our css files into one.</p><pre>gulp.task(&#39;compress&#39;, [&#39;clean&#39;], () =&gt;<br>  gulp.src(path.join(__dirname, &#39;public&#39;, &#39;stylesheets&#39;, &#39;*.css&#39;))<br>    .pipe(concat(&#39;style.min.css&#39;))<br>    .pipe(gulp.dest(path.join(__dirname, &#39;public&#39;, &#39;dist&#39;, &#39;css&#39;)))<br>);</pre><p>This task touches on more of the gulp syntax: src, pipe, and dest. They are pretty self explanatory,</p><ul><li><em>gulp.src</em> tells gulp what to suck up into its pipes, in our case it’s a bunch of CSS files.</li><li><em>.pipe </em>pushes whatever we used as the source and concatenates them all into one file (since they are already minified thanks to the <em>:compressed</em> option for compass [found in the config.rb file])</li><li><em>gulp.dest</em> is the output destination for the result of the flow</li></ul><p>Now we can successfully do</p><pre>&gt; gulp compress</pre><p>and gulp will clean the dist directory and re-concatenate the CSS files. Last we want to be able to do</p><pre>&gt; gulp</pre><p>and have it clean and compress (and run any other tasks we have specified) automatically. So we will add one more task called <em>default</em>.</p><pre>gulp.task(&#39;default&#39;, [&#39;compress&#39;, &#39;relocate:images&#39;]);</pre><p>BAM! Done (<a href="https://github.com/ericadamski/build-own-website/blob/master/gulpfile.js">here is the finished file</a>), now we can change this (inside our index.html)</p><pre>&lt;!-- Our Stylesheets --&gt;<br> &lt;link rel=&quot;stylesheet&quot;<br> href=&quot;stylesheets/header.css&quot;&gt;<br> &lt;link rel=&quot;stylesheet&quot;<br> href=&quot;stylesheets/intro.css&quot;&gt;<br> &lt;link rel=&quot;stylesheet&quot;<br> href=&quot;stylesheets/about.css&quot;&gt;<br> &lt;link rel=&quot;stylesheet&quot;<br> href=&quot;stylesheets/contact.css&quot;&gt;<br> &lt;link rel=&quot;stylesheet&quot;<br> href=&quot;stylesheets/footer.css&quot;&gt;</pre><p>into this</p><pre>&lt;!-- Our Stylesheets --&gt;<br>&lt;link rel=&quot;stylesheet&quot; href=&quot;dist/css/style.min.css&quot;&gt;</pre><p>How elegant.</p><p>Now let’s close up that branch and launch our site on the World Wide Web!</p><pre>&gt; git add .; git commit -am &quot;Added: gulp file to make my life easier.&quot;; git push</pre><pre>&gt; git flow feature finish gulp; git push<br>(without gitflow) &gt; git checkout develop; git merge feature/gulp; git push</pre><pre>&gt; git checkout master; git merge develop; git push</pre><blockquote>To view your site head to a browser and go to https://&lt;your-username&gt;.github.io/!</blockquote><p>If we had a more complicated application gulp could automate a surprising amount of it. From compressing and linting code and compressing and modifying images to renaming and relocating resources (even to remote servers (ie. CDNs)). It is a powerful tool which can simplify your project workflow and make you a more efficient developer.</p><p>If you enjoyed this series please let me know! I want to create some more tutorials, possible migrating this site into an Angular2 app? Let me know if you would be interested in that, or if you have any great ideas that you want to see done step by step (not limited to web technologies). I have a few more website relevate posts coming up (SEO via AI and Medium on Your Personal Website), so stay tuned!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d746b362bb56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[My Experience Learning the Art of Programming.]]></title>
            <link>https://medium.com/@ericadamski/my-experience-learning-the-art-of-programming-66cb9b00a30d?source=rss-cf9894fccad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/66cb9b00a30d</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Eric Adamski]]></dc:creator>
            <pubDate>Fri, 03 Jun 2016 15:45:15 GMT</pubDate>
            <atom:updated>2016-06-03T15:45:15.730Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jCQH1ns5MtPmlkVPOD9PRw.jpeg" /><figcaption><a href="https://stocksnap.io/photo/CN63QSUO8C">https://stocksnap.io/photo/CN63QSUO8C</a></figcaption></figure><p>Coming up on the end of high school I really had no idea what I wanted to do next, other than not be in high school. It seemed a heavy handed decision to make at 18, deciding what it is you are going to do for the next 40 or so years of your life. So being 18 and as free spirited as I was I opened up the university program list, selected a page and then just plopped my finger on one. It just so happens that I picked the right program for me.</p><p>The next four years were a mix of,</p><blockquote><em>Holy crap I love this</em></blockquote><p>and some</p><blockquote><em>Why is this even a thing!</em></blockquote><p>I had some great times. I think after taking over 20 courses devoted to teaching a mix of computer theory and programming application and being a teaching assistant for 2 years, here is what I would consider if I was to start over learning to program like a computer scientist again.</p><h4>Why Are You Interested?</h4><p>This is a question I only began to ask myself in my first year of uni, yet it is the most important question you can ask yourself before starting, well, any project. The answer to this question will inevitably drive the rest of the choices you make during your coding journey and it will definitely determine how much you enjoy it.</p><p>For me it started off as a</p><blockquote>want to be able to create next level shit, while looking like they do in the movies, smashing away at the keys and tons of text flying across the screen in a seemingly foreign language!</blockquote><p>I saw myself as a wannabe hacker willing to utilize a lesser known art form to make some sort of name for myself. That feeling has not really left me, although it has grown into more of a need to help others than for my own benefit. I still want to be able to create, and innovate but my motivation has changed. I feel as though programming is my superpower, just one that most other people aren’t that interested in. I still see myself working toward being a key smashing developer and I let that drive my creativity.</p><h4>Choosing A Language</h4><p>Now that you know sort of why you want to learn to program, you can make more concrete decisions about the process. Choosing which programming language to start with may not be as easy as it would seem. Programming languages are proper languages, they have specific syntax and grammatical rules, so you can pretty well equate learning to program to learning a new spoken language (although I do not recommend trying to use a programming language as a spoken language :p).</p><p>Now without boring you too much with the specifics of language, programming or otherwise, I will list my top three picks for languages to start.</p><p><strong>Javascript/HTML/CSS</strong></p><p>Javascript is my favorite language to use, when it comes to building useful applications, especially for the web, you would be silly not to use it. Learning it relieves some of the hard concepts to grasp when programming simple applications. There are no types<em>, </em>no parameter checking, and so many community tutorials and modules that it makes it fairly easy to pick up. On Top of that with HTML and CSS, which are even simpler to understand and write, you could be creating your very own website or application in no time (I did a tutorial on it <a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-1-4d2a42c803d1">here</a>).</p><p>All in all this stack of languages (JS/HTML/CSS) is my number one choice for starters just looking to dabble, and maybe create themselves an online resume that looks better than the rest.</p><p>C#</p><p>On of my first experiences with <a href="https://en.wikipedia.org/wiki/Object-oriented_programming">Object-Oriented Programming</a> was with <a href="https://en.wikipedia.org/wiki/C_Sharp_(programming_language)">C#</a>. Developed and maintained by Microsoft, it is a powerful and elegant language that has uses for both beginners and veterans. I think many people will disagree with my choice here, but as far as OOP languages go this one keeps it simple. Not to mention that the <a href="https://en.wikipedia.org/wiki/Integrated_development_environment">Integrated Development Environment</a> (IDE) <a href="https://www.visualstudio.com/">Visual Studio</a> is one of the best IDE’s out there. C# is a powerful language with a relatively simple grammar and syntax. It offers some unique programming utilities (like LINQ) that make programming more complex applications a little more elegant. The language is a lot more structured than Javascript which makes it easier to replicate if you are doing a tutorial and easier to extrapolate when you are starting an application on your own.</p><p><strong>C</strong></p><blockquote>I want to start off by saying that <a href="https://en.wikipedia.org/wiki/C_(programming_language)">C</a> can be seen as the most complicated language for beginners I have listed here. Developed in 1969 it was the basis for modern day computer programming languages. This is a language which will require you to have some understanding of how a computer works down to the OS level.</blockquote><p>I learnt this language in my second year at uni, and it quickly became my favourite. By its very nature C lets you control every single piece of your program, from how it looks to how much memory it is allowed to use. But it is unforgiving, there are no error messages, not many user friendly libraries, and its applications are somewhat limited (to a beginner, its quite to opposite for a vet of this language). C is the only reason I understand computers the way I do today, which is the main reason I chose to list here. It forces you to understand how a computer works, to really think like a computer and subsequently a programmer. Its usefulness for the average person, beyond furthering their knowledge of computational devices, is near zero; But it is fun, and I couldn’t write an article about programming languages and not mention C.</p><p>❤ C ❤ Is all I can say about that.</p><p>If you are interested in some C programming <a href="https://twitter.com/zealigan">tweet me</a>! I would love nothing more than to write a tutorial that conventional people can understand and enjoy. In the meantime, if you are interested, I programmed a simple <a href="https://en.wikipedia.org/wiki/File_Transfer_Protocol">FTP</a> client and server at my time in uni, you can take a look at it <a href="https://github.com/ericadamski/Simple-FTP-ClientServer">here</a>.</p><p>The final piece to learning to program, now that you have chosen what language you prefer, and understood your reason for wanting to learn is project choice.</p><h4>Choose Your Project!</h4><p>This is where the fun really begins, you get to choose which storybook you will end up with after writing your first essay (Get it, ‘cuz it’s a language, and you need to write a lot … I hope you got it :p). This section will be short, considering if you have read this far you are likely to have a million ideas soaring through your head. I will leave you with a few starter options:</p><p>1- <strong>Open Source Code</strong>: is a great way to learn, you can take a look at what someone else has already done and reverse engineer it, applying the same principles as copying a word over and over if you get it wrong on a spelling quiz in school. <a href="https://github.com/">GitHub</a> is my favourite place to frequent for Open Source projects, it contains some very well maintained libraries of all different types — you could sift through for days.</p><p>2- <a href="https://www.codecademy.com/learn"><strong>Codecademy</strong></a>: is a great place to start learning if you have never seen code before in your life. It will not only teach you pieces of the language you have selected, but also some basic principles of coding itself. Keep in mind while you are doing these tutorials, there will be a large jump from programming on this site to starting your own project.</p><p>3- <a href="https://github.com/ericadamski/Artificial-Intelligent-Snake">Another Advanced little project</a>, I have always enjoyed AI as sort of a hobby. I took a few courses in uni and produced a little game as part of an assignment. Tweak it and then show me what you have done. It is rather entertaining to watch.</p><p>I hope you enjoyed this rant of mine on how I would restart my journey to being a master coder, please leave comments I would love to hear about how people got started programming, what languages they liked / didn’t like and which ones they would recommend to someone who is starting off and why!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66cb9b00a30d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Your First Website — Like A Programmer (Part 3)]]></title>
            <link>https://medium.com/@ericadamski/build-your-first-website-like-a-programmer-part-3-4da7c4d43a14?source=rss-cf9894fccad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4da7c4d43a14</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[sass]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Eric Adamski]]></dc:creator>
            <pubDate>Fri, 03 Jun 2016 15:25:35 GMT</pubDate>
            <atom:updated>2016-06-03T15:25:35.264Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gCBxpXy72ISrf6I2LfF42A.jpeg" /><figcaption><a href="https://stocksnap.io/photo/SCC00WCQ3I">https://stocksnap.io/photo/SCC00WCQ3I</a></figcaption></figure><p>This is the last official part of this tutorial series. We will be looking at creating our landing page! This part will focus on HTML and SASS and show you how to piece together a good looking website. Take a look at the other two parts if you missed them (<a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-1-4d2a42c803d1">1</a> &amp; <a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-2-b0562943f3a0">2</a>).</p><p>Let’s start off by setting up our SASS compiler. SASS is a decorator language for CSS, it adds syntactic sugar to make writing CSS a little less painful. My favourite compiler is <a href="http://compass-style.org/">Compass</a> which is what we will be using here. To install compass make sure you have <a href="https://www.ruby-lang.org/en/">Ruby</a> installed on your machine. Then head over to your trusty terminal and do</p><pre>&gt; gem install compass</pre><blockquote>In some cases it may require sudoers permissions.</blockquote><p>Setup a new git branch to work in:</p><p>Make sure that you are on the develop branch by doing</p><pre>&gt; git checkout develop</pre><p>Then, with Git Flow</p><pre>&gt; git flow feature start frontend</pre><p>Without Git Flow</p><pre>&gt; git checkout -b feature/frontend</pre><p>Now go into your project directory either in Atom or in the terminal and create a file in the root called <em>config.rb.</em> The aforementioned configuration file will tell compass where and how to output our css files. Take a look at the file below as a basic compass configuration file:</p><pre>require &#39;compass/import-once/activate&#39;</pre><pre>http_path = &quot;/&quot;<br>css_dir = &quot;public/stylesheets&quot;<br>sass_dir = &quot;assets/scss&quot;<br>images_dir = &quot;public/img&quot;<br>javascripts_dir = &quot;public/js&quot;</pre><pre>output_style = :compressed</pre><p><a href="https://github.com/ericadamski/build-own-website/blob/feature/font-end/config.rb">ericadamski/build-own-website</a></p><p>Now go and open up the _default.scss file which we created in <a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-2-b0562943f3a0">Part 2</a> of this tutorial. This is where we will define things like breakpoints, base colors, font styles and other variables we want to keep consistent throughout our site.</p><p>Let’s start off by defining some colours, font sizes and breakpoints.</p><pre>/* Colours */<br>$black : #0C090D;<br>$red   : #E01A4F;<br>$orange: #F15946;<br>$yellow: #F9C22E;<br>$blue  : #53B3CB;</pre><pre>/* Font Sizes */<br>$large : 6em;<br>$medium: 3em;<br>$small : 1.5em;</pre><pre>/* Breakpoints */<br>$xlarge: 250em; /* 4K */<br>$large : 120em; /* HD */<br>$medium: 76.5em; /* Avg Desktop */<br>$small : 48em; /* tablets */</pre><p><a href="https://github.com/ericadamski/build-own-website/blob/feature/font-end/assets/scss/_default.scss">ericadamski/build-own-website</a></p><blockquote>All colors were chosen thanks to <a href="https://coolors.co/">https://coolors.co/</a></blockquote><p>All of our breakpoints are based on the mobile first style of development, which is why you don’t see a size smaller than general tablets.</p><p>Notice that each of these definitions are prefaced with a ‘$’, that defines a variable in SASS, it is a little nicer than using standard CSS variables. You might have noticed that we have also marked the file with an underscore (_) at the beginning, that tells compass not to compile and output the file as a separate css file.</p><p>Let us get into the real meat of things. For simplicity sake we are going to use <a href="http://v4-alpha.getbootstrap.com/">Bootstrap 4</a> (in alpha) to save us some development time. First we have to include the stylesheets into our website. To do so open up index.html and replace it with the file below.</p><p><a href="https://github.com/ericadamski/build-own-website/blob/feature/font-end/views/index.html">ericadamski/build-own-website</a></p><p>Go and checkout the work that you have done by going into your terminal and typing</p><pre>&gt; npm run dev</pre><p>Then head over to your <a href="http://localhost:3000/">browser</a> and check it out!</p><p>Now that we have a skeleton we can make it more like our own! Let’s restyle some of the elements to include our colours and make the landing page feel more YOU.</p><p>Let’s start by creating a file called home.scss inside our assets/scss folder. After you have done that, here is what the directory (folder) structure will look like</p><pre>&lt;your-username&gt;.github.io/<br>│<br>├── .gitignore<br>├── package.json<br>├── app.js<br>├── config.rb<br>├── views/<br>│   └── index.html<br>├── public/<br>│   └── img/<br>│       └── favicon.png<br>├── assets/<br>│   └── scss/<br>│       ├── home.scss<br>│       └── _default.scss<br>├── router/<br>│   └── index.js<br>└── bin/<br>    └── www</pre><p>Open up the home.scss file and let’s change the colour of the nav links in the header.</p><pre>@import &#39;_default&#39;;</pre><pre>.nav-item {<br>  color: $blue;<br>}</pre><p>Now that we have written some SASS (SCSS to me more specific) we have to compile it into css and include it in our index.html file.</p><p>First open a terminal head to your project root directory (&lt;your-username&gt;.github.io) and do</p><pre>&gt; compass watch</pre><p>This will watch all the scss files in the location specified in config.rb and compile them into css and output them every time there is a change. Next open up index.html and input this line in the head:</p><pre>&lt;link rel=&quot;stylesheet&quot; href=&quot;stylesheets/home.css&quot;&gt;</pre><p>This includes your static resource (the stylesheet) and applies it to your site. Reload your website (or restart the server by doing npm run dev) and take a look at your new creation!</p><p>Take a look at the finished product <a href="https://github.com/ericadamski/build-own-website/tree/feature/font-end">here</a>!</p><p>That’s it, you know have a basic template webpage hosted and hackable. Let me know if there are any details I missed that you would want to cover on either the backend or the frontend.</p><p>I will be completing this series with Part 3 1/4 which will deal with gulp, optimizing load time and SEO.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4da7c4d43a14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Your Website — Like A Programmer (Part 2)]]></title>
            <link>https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-2-b0562943f3a0?source=rss-cf9894fccad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/b0562943f3a0</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Eric Adamski]]></dc:creator>
            <pubDate>Thu, 02 Jun 2016 13:17:36 GMT</pubDate>
            <atom:updated>2016-06-03T15:32:27.386Z</atom:updated>
            <content:encoded><![CDATA[<h3>Build Your Website — Like A Programmer (Part 2)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BxHdyz9EaMYDlasXA5ilcQ.jpeg" /><figcaption><a href="https://stocksnap.io/photo/Y01VDYAX63">https://stocksnap.io/photo/Y01VDYAX63</a></figcaption></figure><p>If you managed to get here without completing <a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-1-4d2a42c803d1">Part 1</a> it may be OK, you just need to ask yourself a few questions:</p><ul><li>Do I have a github repository setup?</li><li>Do I have a text editor setup?</li><li>Do I have Nodejs and NPM install?</li></ul><p>If you answer no to any of these questions, pop over to <a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-1-4d2a42c803d1">Part 1</a> it will walk you through some setup which will make your life easier down the road. Part 3 is <a href="https://medium.com/@ericadamski/build-your-first-website-like-a-programmer-part-3-4da7c4d43a14">here</a>.</p><p>Now then, you have got your environment setup lets actually do some creatin’! We will need to create a <em>package.json</em> file to keep track of our project dependencies. In atom create a <em>package.json </em>file by right clicking on the left most side of the window and selecting <em>new file. </em>If you want to be a little more computer sciencey you can create empty files in the terminal by doing</p><pre>&gt; touch package.json</pre><blockquote>A shortcut to creating this file is typing ‘npm init’ into your terminal and following the instructions. You will still need the dependencies that are listed here.</blockquote><p>Inside your <em>package.json</em> file we will add some important information about our application, it will look like this:</p><pre>{<br>  &quot;name&quot;: &quot;your-own-website&quot;,<br>  &quot;version&quot;: &quot;0.0.1&quot;,<br>  &quot;description&quot;: &quot;My own personal webpage.&quot;<br>}</pre><p>This file has to be in JSON format, also <em>FYI</em> JSON is how objects are represented in Javascript so you can get used to see things written in this way. The important part of this file is the dependencies section, take a look at the complete <em>package.json</em> below.</p><p><a href="https://github.com/ericadamski/build-own-website/blob/feature/font-end/package.json">ericadamski/build-own-website</a></p><p>You will also want to add this file .gitignore:</p><p><a href="https://github.com/ericadamski/build-own-website/blob/feature/font-end/.gitignore">ericadamski/build-own-website</a></p><p>Save that file, head over to your terminal window and then type:</p><pre>&gt; npm install</pre><p>This will install all the packages under the dependencies section, they are some packages we will use in our development. Once that is done we must create our entry point for the server, create a file called <em>app.js</em>. This is where we begin our journey through Javascript!</p><p>We will begin by creating our server using Express. First we will need to include all the packages we will be working with, like so</p><pre>&#39;use strict&#39;;</pre><pre><strong>let</strong> express       <strong>=</strong> require(&#39;express&#39;);      <br><strong>let</strong> path          <strong>=</strong> require(&#39;path&#39;);         <br><strong>let</strong> favicon       <strong>=</strong> require(&#39;serve-favicon&#39;);<br><strong>let</strong> logger        <strong>=</strong> require(&#39;morgan&#39;);<br><strong>let</strong> cookieParser  <strong>=</strong> require(&#39;cookie-parser&#39;);<br><strong>let</strong> bodyParser    <strong>=</strong> require(&#39;body-parser&#39;);<br><strong>let </strong>compression   = require(&#39;compression&#39;);</pre><p>Each require statement will allow you to use the code stored in each of those packages. Now create your application (Server),</p><pre><strong>let</strong> app = express();</pre><p>This is called a constructor, it creates a new object of the type given, in this case it’s the express object we included earlier. We must set up the <a href="https://en.wikipedia.org/wiki/Middleware">middleware</a> for our server to use. We will use the app variable that we just created,</p><pre>app.use(compression());<br>app.use(favicon(path.join(__dirname, &#39;public&#39;, &#39;img&#39;, &#39;favicon.png&#39;));<br>app.use(logger(&#39;dev&#39;));<br>app.use(bodyParser.json());<br>app.use(bodyParser.urlencoded({ extended: false }));<br>app.use(cookieParser());</pre><p>Each piece of middleware helps the server function in a way that makes our lives a little easier. Finally we will attach our static files to be served and the routes we would like to use. The resulting file will look something like this,</p><p><a href="https://github.com/ericadamski/build-own-website/blob/feature/font-end/app.js">ericadamski/build-own-website</a></p><p>You can think of the file above as a configuration file telling your server what it has to utilize in order to process requests. Next we will create our launch script, it will be what we call in order to run our server and serve up our website. Take the file below and put it in a file called <em>www</em> inside of a directory (folder) called <em>bin</em>.</p><p><a href="https://github.com/ericadamski/build-own-website/blob/feature/font-end/bin/www">ericadamski/build-own-website</a></p><p>As of right now our directory (folder) structure will look like this,</p><pre>&lt;your-username&gt;.github.io/<br>│<br>├── .gitignore<br>├── package.json<br>├── app.js<br>└── bin/<br>    └── www</pre><p>We need to add a few more files to get our server ready for hosting! So add the following files:</p><ul><li>router/index.js</li><li>views/index.html</li><li>assets/scss/_default.scss</li><li>public/img/favicon.png (pick your own png image)</li></ul><p>Once those have been added your directory structure will look like</p><pre>&lt;your-username&gt;.github.io/<br>│<br>├── .gitignore<br>├── package.json<br>├── app.js<br>├── views/<br>│   └── index.html<br>├── public/<br>│   └── img/<br>│       └── favicon.png<br>├── assets/<br>│   └── scss/<br>│       └── _default.scss<br>├── router/<br>│   └── index.js<br>└── bin/<br>    └── www</pre><p>We won’t be touching the html and scss files until the next part of the tutorial, though it will be easier to understand the serving process with the files in the tree.</p><p>Lets open up the router/index.js file, this will be where we define the pages of our website. First let’s import the required packages,</p><pre>&#39;use strict&#39;;</pre><pre>let express = require(&#39;express&#39;);<br>let router = express.Router();<br>let path = require(&#39;path&#39;);</pre><p>The router is the most important part of this file, it is what will be handling the requests made by people trying to access your site. Let us create the landing page. We would expect that the landing page is the very first part of your site you want someone to see. So if someone goes to your website address, http://&lt;your-username&gt;.github.io/, we want them to see our landing page. The route for that will be defined as follows,</p><pre>router.get(&#39;/&#39;, (request, response, next) =&gt; {<br>  response.status(200).sendFile(path.join(__dirname, &#39;..&#39;, &#39;views&#39;, &#39;index.html&#39;));<br>});</pre><p>Let’s dissect that piece of code.</p><pre>router.get</pre><p>Is handling every time someone sends a GET request to our server. A GET request is asking our server to send some information, in our case it will be our landing page <em>index.html</em>.</p><blockquote>There are some standard HTTP request types you can see them defined <a href="http://www.tutorialspoint.com/http/http_requests.htm">here</a>, in this tutorial we will only be using GET requests.</blockquote><p>The next part of the router handler is the path. For a home page the usual path, which is known as the root, is ‘/’. If we had an ‘about’ page the path would look something like ‘/about’. It is exactly like navigating on your computer to try and find a file, we are just accessing that file from someone else&#39;s computer. So when someone asks we send them some information (GET request) we must deliver some content, in our case it is a file hence the ‘sendFile’ function call. Once we have made that call we let the users browser handle the rest!</p><p>Below is the index.js file in its entirety. The first ‘router.get’ looks at all requests to every page (route) and looks to see if it has been requested from some other domain (the url), if so it rejects to serve it as a security measure.</p><p><a href="https://github.com/ericadamski/build-own-website/blob/feature/font-end/router/index.js">ericadamski/build-own-website</a></p><p>Now we have a functioning server! Head over to your terminal to test it out</p><pre>&gt; npm run dev</pre><p>Then pop over to your browser and go to</p><pre><a href="http://localhost:3000/">http://localhost:3000/</a></pre><p>How exciting, you see nothing! Add the code below into your index.html file and the refresh your browser.</p><pre>&lt;h1&gt; Hello World! &lt;/h1&gt;</pre><p>The code above is HTML, we will be covering that and SCSS/CSS in the next tutorial, but it is no fun to see nothing from your server. After you refresh you should see something like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/1*y3foKir2qrtTWoK6IF0ZTw.png" /></figure><p>Now we need to store all this information into github, so head over to that trusty terminal and type</p><pre>&gt; git add . // adds all the new files to be tracked</pre><pre>&gt; git commit -am &quot;Added: the server&quot; // a unique message to describe the changes you made</pre><pre>&gt; git push --set-upstream origin feature/nodejs-server</pre><p>We have completed the server so we will close the branch feature/nodejs-server and next time we will create a new one to work from.</p><p>With git flow</p><pre>&gt; git flow feature finish nodjs-server</pre><p>Without git flow</p><pre>&gt; git checkout develop</pre><pre>&gt; git merge feature/nodejs-server</pre><pre>&gt; git push</pre><pre>&gt; git branch -d feature/nodejs-server // delete locally</pre><pre>&gt; git push origin --delete feature/nodejs-server // delete remote</pre><blockquote>It is a good idea to do commits more often so that if you mess up you don’t have to rewrite a lot!</blockquote><p><a href="https://medium.com/@ericadamski/build-your-first-website-like-a-programmer-part-3-4da7c4d43a14">Next part</a> of this tutorial we will work to get our website looking super purty! Have I included enough, too much, information? Leave me some feedback!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b0562943f3a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build Your Website — Like A Programmer (Part 1)]]></title>
            <link>https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-1-4d2a42c803d1?source=rss-cf9894fccad7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4d2a42c803d1</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Eric Adamski]]></dc:creator>
            <pubDate>Wed, 01 Jun 2016 20:13:08 GMT</pubDate>
            <atom:updated>2016-06-03T15:31:23.980Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xLDTMnwRLWcDVTpFZhAmdQ.jpeg" /></figure><p>Build and host for FREE! A tutorial for anyone interested in having a personal website! I walk you through the process of creating and maintaining all the files need to have your very own website! (Part 2 is <a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-2-b0562943f3a0">here</a>, Part 3 is <a href="https://medium.com/@ericadamski/build-your-first-website-like-a-programmer-part-3-4da7c4d43a14">here</a>)</p><p>This is a tutorial on building a website, it’s going to be freakin’ great! We are going to build a super basic site to host some static files that will allow you to express yourself as an individual on the web. It will also teach you some basics about Javascript, HTML, and CSS (SASS in specific). We are not only going to build the frontend, but also the backend that serves it all up!</p><blockquote>Before you start, we will be installing and using the following list of programs during this tutorial:</blockquote><blockquote>- Nodejs &amp; npm</blockquote><blockquote>- Atom (https://atom.io/)</blockquote><blockquote>- Git</blockquote><p>We are going to begin this tutorial with installation of stuff, pretty much the most fun you are going to have this entire tutorial! (I hope you know that was a joke :p) First, we have to get you familiar with your working environment so that maintaining your fancy pantsy website is as easy as pie. Let’s start by heading over to <a href="https://github.com/">https://github.com</a> to create a git repository (you will need to register if you are not already a member, don’t worry its free). Click the <strong>New repository </strong>button as shown below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D-V51_wPRJX3WZlg3iSMsA.png" /></figure><p>Since the people at Github are so nice, they offer free hosting, so you can have your website available on the internet all for free! If you want to do that name your repository</p><blockquote>&lt;your-username&gt;.github.io</blockquote><p>It will look something like this</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*l8d-zJaFhjsoQb7kq4TrSw.png" /></figure><p>Once you have created your repository you will want to clone it onto your computer. You will need to install <a href="https://git-scm.com/downloads">git</a> first, once installed open the git terminal and navigate into the location you want to store your repository and clone it.</p><pre>&gt; cd to/the/location/you/want/to</pre><pre>&gt; git clone https://github.com/&lt;your-username&gt;/&lt;your-username&gt;.github.io.git</pre><p>Now you will have a local copy of the files on your computer. Git is a repository management system that keeps your files safe in the cloud and synced up with the ones on your computer.</p><blockquote>Throughout this tutorial I am going to be using git flow commands to create an organized branch structure (folder structure) for our project so that I can keep track of where everythings is. You can choose to follow these instructions or do it manually, I have included the instructions for both.</blockquote><p>Next switch to your first development branch</p><p>With git flow:</p><pre>&gt; git flow init (hit enter a bunch of times)</pre><pre>&gt; git checkout develop; git flow feature start nodejs-server</pre><p>Without git flow:</p><pre>&gt; git checkout -b develop</pre><pre>&gt; git checkout -b feature/nodejs-server</pre><p>Now pop over to <a href="https://atom.io/">https://atom.io/</a> and install the latest version of the atom text editor. Once it is installed go open your git terminal again, make sure you are in the same location where you just did all that git nonsense and type</p><pre>&gt; atom .</pre><blockquote>Note: you may need to open atom first and in the menu select</blockquote><blockquote>install shell commands</blockquote><p>This should open up the atom text editor with your files (which will be nothing for now) It should look something like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*djwD8otl6JqzdSGghGJA_w.png" /></figure><p>You are almost ready to start coding! We need to finish installing the packages we will need to build our website.</p><p>Go and download NodeJS (https://nodejs.org/). You can check to make sure it is working by typing <em>node -v</em> in your terminal, if it pops up with some numbers you are good (after installing you may have to restart the terminal). NPM or Node Package Manager should be installed along side NodeJS if it is not go ahead and install that as well, a quick google for ‘download npm’ should do the trick.</p><p>Now that you have all that setup you are ready to go!</p><p>In the <a href="https://medium.com/@ericadamski/build-your-website-like-a-programmer-part-2-b0562943f3a0">next part</a> we will build the server which will host all our static files. Or skip all the way to <a href="https://medium.com/@ericadamski/build-your-first-website-like-a-programmer-part-3-4da7c4d43a14">Part 3</a> if your that good.</p><p>If you got stuck somewhere please leave a comment below so I can quickly add some notes so others can get through!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4d2a42c803d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>