<?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 Jen Pike on Medium]]></title>
        <description><![CDATA[Stories by Jen Pike on Medium]]></description>
        <link>https://medium.com/@jenpike?source=rss-1e8e49b963e1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*buLXTJ-3apTJUxGuSF1ucA.jpeg</url>
            <title>Stories by Jen Pike on Medium</title>
            <link>https://medium.com/@jenpike?source=rss-1e8e49b963e1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 13:07:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jenpike/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[Did you mean Pinky Promise?]]></title>
            <link>https://medium.com/@jenpike/did-you-mean-pinky-promise-178b613d8078?source=rss-1e8e49b963e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/178b613d8078</guid>
            <dc:creator><![CDATA[Jen Pike]]></dc:creator>
            <pubDate>Thu, 16 May 2019 22:25:07 GMT</pubDate>
            <atom:updated>2019-05-16T22:25:07.227Z</atom:updated>
            <content:encoded><![CDATA[<p>Have you ever come across something called promises in your web development journey? Did you understand it? Promises is something that came up a few times when I was beginning to learn JavaScript but it wasn’t something I was able to wrap my head around. I remember talking with my friend and mentor for my Part-time JavaScript class about how confusing I found all of it. I didn’t think I would ever be able to wrap my head around something so complicated. <br> <br> Since then Promises have come up a few more times and I’ve started to have a better understanding of what this all means and how it is useful. When I think about a Promise I immediately think about pinky promises, the kind we make with our friends and family, like I promise I will do the dishes or the laundry, I promise to not see Avengers Endgame without you 🤷‍♀️. That unfortunately is not what a JavaScript promise is, it does have a few similarities though.</p><p><strong>So let’s dive in, shall we?</strong></p><p><strong>Why do we use Promises?</strong></p><p>Ever heard of callback hell or the Christmas tree of doom? Well before promises were a thing you would have to use a callback function, which could get pretty messy at times and it could lead to some very complicated code to read and understand. What a promise does is allow code to be written that is cleaner and easier to read.</p><p><strong>What is a promise?</strong></p><p>A promise is a placeholder for a future value. The first thing we need to know is a promise is an object, and has three states fulfilled, rejected or pending.</p><ol><li>A promise is<strong><em> fulfilled</em></strong> when it’s requirements have been met.</li><li>A promise is <strong><em>rejecte</em></strong>d when it hasn’t received the information it’s looking for.</li><li>Last a promise is <strong><em>pending</em></strong> while it is waiting for the information it needs to either be fulfilled or rejected.</li></ol><p>Next a promise takes two parameters <strong><em>resolve and reject</em></strong>. These parameters do something when the promise is fulfilled or rejected. <strong>Resolve</strong> happens when the promise in your code is fulfilled, <strong>rejec</strong>t happens when it doesn’t and needs something else to happen like an error message needs to appear on the screen.</p><p>A promise also uses two main methods called <strong><em>.then()</em></strong> and <strong><em>.catch()</em></strong>. The <strong><em>.then()</em></strong> method tells the code what it should do if your promise is fulfilled. The <strong><em>.catch()</em></strong> method tells your code what to do if the promise is rejected.</p><p><strong>How does it work?</strong></p><p>So let’s start with a pseudo code example.</p><p>// On Friday at 6 I promise my friends I will meet them for a movie at 8<br>// ^ this promise is now pending because it needs to wait until 8 to see if I make it to the movies or not.<br>// at 8 if I made it to the movies the code will look to the .then() for what it should do next, like say hello to my friends and then buy popcorn<br>// if I don’t make it to the movies, then my code will look to the .catch() for what to do. Friends disown me! Just kidding but you get the picture.</p><p><strong>Conclusion:</strong></p><p>Use Promises! Remember pals, work smarter not harder!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=178b613d8078" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Leap of Faith — JavaScript & jQuery Project 3 Walk Through]]></title>
            <link>https://medium.com/@jenpike/a-leap-of-faith-javascript-jquery-project-3-walk-through-8f1cfebd4c66?source=rss-1e8e49b963e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/8f1cfebd4c66</guid>
            <dc:creator><![CDATA[Jen Pike]]></dc:creator>
            <pubDate>Mon, 18 Feb 2019 19:59:45 GMT</pubDate>
            <atom:updated>2019-02-18T19:59:45.087Z</atom:updated>
            <content:encoded><![CDATA[<h3>A Leap of Faith — JavaScript &amp; jQuery Project 3 Walk Through</h3><p>As you may already know from my first blog post I am currently a immersive bootcamp student at HackerYou. We are just about to dive into week 5 tomorrow and so far it’s been pretty great. As I mentioned previously before starting the bootcamp I had taken two other HackerYou courses. The accelerated web development and the part time Javascript, being fairly new to all things code both had their challenges.</p><p>We have just finished our first week and a half of JavaScript and we are currently putting the finishing touches on Project 3. One thing I have learned about JavaScript is that any time you think a project is going to be to easy you’re probably wrong. For my third project I decided to make a slide puzzle, the idea is you click the start square, the tiles are shuffled and you click on the tiles to move them into the blank space to get them back to their starting positions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WQ-tmjsO-VDePVBd1EIivQ.png" /></figure><p>When I first started out I was thinking it wasn’t going to be that bad, I thought it might be challenging but I did underestimate it a tad. A lot of what I planned to add into the project ended up being added to my list of stretch goals!</p><p>First thing I did was get my HTML and CSS ready to get the photos and the layout I wanted. There are a bunch of cool apps for photo editing out there as well. Which made dividing the image a bit easier. The one I went with was <strong>photo Grid</strong> it is great for dividing the images into squares like you can see in this first image. Next I used a wrapper and positioning to get the grid layout for the game section. The great thing was when it came to the JavaScript and jQuery I had done a pretty decent job laying out the HTML and CSS so I didn’t end up having to change to much. Computer Five! (Side Note: I may or may not have been watching <strong>How I Met Your Mother </strong>while writing this blog!).</p><p>Once the HTML and CSS was set up I had no idea where to start. I spent most of a day trying to get on the right track. Finally with some redirection from my mentor I started with just making a tile move. This also involved developing the logic so the tile knew that it could move there. This was the very first chunk of code I wrote to get this game started I ended up adding a ton of notes just to make sure that I understood what was happening in this chunk of code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LuCmwLxdhPSuR5walVX27w.png" /></figure><p>I needed the game to recognize that tile-9 was a empty tile, so one of the things I had to change in my HTML was giving the tile another class called “empty” and renaming the image “blank.JPG”. In the first chunk of code a html element with the class of empty is stored in a variable, then it’s told to go inside of that variable and find the image within that element and create another variable, then find that images src attribute and make a third variable. The images src attribute is the url or path to that image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VSelVPsB9O2zS_1C21nV0w.png" /></figure><p>Next I had to make it do something with the tile that the user clicked. Basically when you click on one of the game tiles it gets broken down into three things. That tile gets put into a variable called “thisTile”. The next line of code goes into “thisTile” and finds the image and puts that in a variable as well. Then it checks the image src attribute from the image that was found in the second line of code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gyupdhHL7Sg7gZn2l8APWQ.png" /></figure><p>Confused yet? I was! The final thing that had to happen was I had to swap the src attributes (these are the paths to and names of the images I needed to switch). To do that I needed to create a function that would change the src attribute of each tile selected. So below, I am using a function to change the image src of the clicked tile with that of the empty tile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FQIkWilKoRs99yXNGrBSNQ.png" /></figure><p>The cool part about this project is that there really isn’t to much moving of elements just a lot of swapping photos.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*8iDgl0kmWEK6NyBTpN3XzQ.png" /></figure><p>There was the potential for a lot of errors though which is something I had to deal with next. Each tile only has a select number of moves it should be allowed to make. Which really should only be made if there is a blank space in one of those moves. To do this I had to make some if /else statements. I will eventually figure out a way to condense this but alas it ended up being a bunch of code to get this to work.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*krJfW02_PscH8N_2fvBboQ.png" /></figure><p>This above part is how I made the tiles have restrictions on where they could move to. So tile-9 can only move to tile 6 and 8 and only if one of those tiles contains an image that is named “blank.JPG”. What the code is doing is if the tile that is clicked has a class of “tile-9” then do one of the things inside. If tile 6 has a class of blank, move tile-9 there if not check the next suggestion, if tile 8 has a class of blank, move tile-9 there if not do nothing because that tile can not be moved right now.</p><p>One of the problems I ran into here was that the images now had restrictions on where they could move, but even when clicked they were still moving to the tile-9 spot because it had the class of empty! You have no idea how excited I was when I figured this one out. I needed the class of empty to move with the blank image so I used a little jQuery to remove the class of empty from whatever tile it was on to the tile that was clicked at that tile would then contain the empty tile after the images were swapped. The computer then always knew what tile had the blank image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aVM09nnj8zK9CJYxvfjcDQ.png" /></figure><p>This is turning out to be an incredibly long post and I think that I’m going to stop here. There were a few more parts that have since been added but this is all that went into getting the tile just to move. I will forever appreciate all the work that goes into a site that uses JavaScript and jQuery.</p><p>One of the best things I have ever heard about JavaScript came from one of my best friends. He said “I used to think the computer was dumb and not doing what I told it to do, and then I realized it was doing exactly what I told it to do. I just wasn’t telling it the right thing.” This has led me to one of the other things I have learned about JavaScript which is your code may not even be wrong, it’s just being read differently by the computer or you forgot a “;”. More often then not it’s missing that little dude!</p><p>I must add that this project was no where near smooth sailing. I spent far to long staring at code that wasn’t working because it was missing a word. Thankfully friends, mentors and instructors are not to hard to reach when things get troubling in your code.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8f1cfebd4c66" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Leap of Faith]]></title>
            <link>https://medium.com/@jenpike/a-leap-of-faith-c60f8bbb3b11?source=rss-1e8e49b963e1------2</link>
            <guid isPermaLink="false">https://medium.com/p/c60f8bbb3b11</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Jen Pike]]></dc:creator>
            <pubDate>Mon, 28 Jan 2019 05:30:56 GMT</pubDate>
            <atom:updated>2019-01-28T05:36:11.243Z</atom:updated>
            <content:encoded><![CDATA[<h3>How I became a part of the welcoming and supportive family that is HackerYou.</h3><p>Hello there, my name is Jennifer, I’m 26 and a little over 6 months ago I decide to commit to changing my career. I’m not a writer, besides the horribly scribbled notes I keep in a notebook at home, so bear with me as I attempt to put pen to paper, or in this case fingers to keys and write my first blog post.My background had so far just been in the veterinary sciences. Like all career choices I’d had good jobs and I’d had amazing jobs. My most recent job fell in the amazing jobs category, how could it not I was able to meet some cool people, play with dogs in water all day and get paid for it. What’s not to love right? After a few slow weeks I began to feel it was time to look into a change.</p><p>To give this post a little back story I’m going to rewind just a couple months.My best friend had suggested that I give web development a chance, thinking that it would be something that I would really enjoy. Her boyfriend, whose also a great friend of mine had completed the course at HackerYou in 2017 and loved it. This was helpful since I then had someone to bounce ideas off of. Now I’m really not great at making decisions, especially ones that involve change so it took me a while to come around to the idea. When I finally did I wasn’t sure where to start so my friend gave me some steps to follow to give it a try. This was my first introduction into the comradery that is definitely a huge part of HackerYou. I began with Free Code Camps curriculum just to get a feel for everything to see if it was something I would like. I loved it, I loved the puzzle, I loved that if I put in just a few different words it would do show something on screen, I loved it all. I couldn’t wait to see what else there was.</p><p>Next on the list was Ladies Learning Code, so I decided to sign up for a two night course on making a one page website and see if I still felt the same about coding. I did! I was so proud that I was able to make a website show up at the end of those classes. The last step in this journey was HackerYou. I spent a lot of time thinking about it, I filled out the application a couple different times but never submitted it. Finally I decided that the worst that could happen was that the class was full and I would have to submit it again for the next course. Harmless right?.</p><p>Finally I muster up the courage and I submit my application for the accelerated web development course. It didn’t take long and I received a e-mail asking to set up a phone call, date and time to visit HackerYou for an interview into the course. So a few days later I met with Sam one of the admissions coordinators (cool dude!) , the course started three days later. That was followed up with a application to the Immersive Bootcamp, a part-time JavaScript course and a second application to the Bootcamp. This time, to my complete and utter delight, I got in!</p><p>This past week was the first week of the immersive bootcamp and I already feel like a part of this loud, eccentric, welcoming and very supportive community that loves to clap. I’m amazed at the volume of HackerYou Alum out there, you’ve probably met some already and from what little I’ve seen you will be better for it. This community makes everyone feel welcome and supports each other in so many ways. From checking in on slack everyday of the first week (Thanks Mark) to a small but large welcome to all the new cohort members in slack#cohort21! To watching everyone cheering on your fellow alum members as they find jobs to continue their careers.</p><p>I’m so very grateful to the people who put me on this path. Thank you HackerYou for welcoming we with open arms and I can’t wait to see what’s next in this amazing journey.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c60f8bbb3b11" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>