<?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 Mahdi Shadkam-Farrokhi on Medium]]></title>
        <description><![CDATA[Stories by Mahdi Shadkam-Farrokhi on Medium]]></description>
        <link>https://medium.com/@mahdis.pw?source=rss-1521aefe5b89------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*2mHIkT_KiBBu-xam.jpg</url>
            <title>Stories by Mahdi Shadkam-Farrokhi on Medium</title>
            <link>https://medium.com/@mahdis.pw?source=rss-1521aefe5b89------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 23:12:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mahdis.pw/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to prep for technical interviews]]></title>
            <link>https://medium.com/@mahdis.pw/how-to-prep-for-technical-interviews-7a7216940270?source=rss-1521aefe5b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/7a7216940270</guid>
            <category><![CDATA[interview-advice]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[life-journey-lessons]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[interview-preparation]]></category>
            <dc:creator><![CDATA[Mahdi Shadkam-Farrokhi]]></dc:creator>
            <pubDate>Wed, 13 Nov 2019 03:16:50 GMT</pubDate>
            <atom:updated>2019-11-13T03:16:50.796Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r946rEMaFmG8eKyshmfeMw.jpeg" /></figure><h4>5 tips to successfully prepare for a technical interview</h4><p>I recently poured my heart, soul, and a month of preparation into studying for a big technical interview. I made sure to get plenty of rest, iron my clothes, and show up early. I was greeted by someone from operations and guided into my interview room — featuring a prominent white board with markers and an eraser. For the next 5 hours, I was going to be interviewed by 5 different people regarding my technical competency.</p><p>I had to psych myself mentally. It felt like everything was riding on this day and I had to counter my own devil’s advocate by reassuring myself I had prepared as much as I could and will just have to do my best. And then the first interviewer enters the room. I greet them and in short order we get down to business — a technical coding challenge…</p><p>…the subject of which I didn’t prepare for. How could I be ruined on my first question!? Talk about starting off on the wrong foot. I stumbled my way through 45 minutes of what I’m sure was torture for my interviewer. The rest of the day was a blur and I went home with slumped shoulders and a constant nagging recording of what happened along with commentary on what I should have done better.</p><p>What went wrong? Why didn’t my expectations match what I saw on the interview? I don’t think I’m alone thinking technical interviews are challenging to endure, but also difficult to prepare for. Of course companies won’t give you their interview questions beforehand, but you can prepare and after my experiences, I feel I’m in a good position to give some advice on the subject.</p><h4>1) Do NOT cram — study regularly an hour or two a day</h4><p>This advice comes from others when I was researching how best to prepare, but I feel it’s critical to envision technical preparation as part of your daily routine. Along with job applications, I included at least an hour of technical preparation a day, and could already see myself improving within a few days of starting the process.</p><h4>2) Focus on the main technical skill</h4><p>I’m guilty of studying for breadth instead of depth. Do not make the same mistake I did! If you’re looking for work as a “data engineer”, you better believe you’re going to get asked to make a complex SQL query. Sure, the job description will mentions other things like Python libraries, Object-Oriented Programming, and a ton of other little tidbits, but SQL should be the focus — lean into that topic and aim to be at an intermediate or expert level in that topic.</p><p>You may need to study data structures and algorithms. There are plenty of platforms and books to facilitate this topic — I recommend <a href="https://www.hackerrank.com/">HackerRank</a> (free) and the book “Cracking the Coding Interview” ($$$, but money well spent!).</p><p>Lastly, combine what you know about the company and the job description to get an idea of the kinds of practical questions you might get. More often than not, companies will use their product or job related content as the basis for the technical questions. For example, if the company uses Natural Language Processing for their offering and the job is focused on front end development, you might want to get familiar with regular expressions and handling user’s text input.</p><h4>3) Practice how you’ll approach the problem</h4><p>I cannot give <a href="https://www.linkedin.com/pulse/interviewing-google-heres-6-things-you-absolutely-need-anthony-mays/?trk=pulse_spock-articles">Anthony D. Mays’ article</a> enough credit. In it, he talks about his 6 step process for approaching technical problems on an interview. Remember, the interviewer is interested both in your approach to the problem AND having some working code down (even if it is a naive approach). Remember to speak through your thought process and get familiar practicing on a white board.</p><p>I would also highly recommend the <a href="https://www.pramp.com/">Pramp.com</a> platform for practicing technical interviews. It’s a free service which give you and another person a technical problem. You each take turns as interviewer and interviewee for 30 minutes and leave feedback at the end.</p><h4>4) Practice how you’ll handle not knowing what to do next</h4><p>This happened to me waaaay too much, but after a few interviews, I really got the hang of learning to go back and find patterns, restating my assumptions, or even just asking the interviewer for some advice. It may see odd to ask for help, but this doesn’t count against you as much as you might think. Companies are looking for you to be self aware enough to ask for help when you need it.</p><h4>5) Study for the behavioral questions</h4><p>By comparison, the behavioral questions are a walk in the park, however, they can still trip you up if you didn’t prepare AT ALL for them. I actually ended up making a spreadsheet with the <a href="https://www.themuse.com/advice/30-behavioral-interview-questions-you-should-be-ready-to-answer">30 most common behavioral questions</a>, answered them, and studied my own answers!</p><p>In all, I actually didn’t do too badly on the interview. I mentioned the first question threw me off, but the next two were much more manageable and the four was a bit more on the fence. The day ended with a relaxed behavioral interview (relaxed by comparison!), which I think I did well on.</p><p>No matter how things turn out, I must say I am very content with my own progress! First of all, I’m learning a TON on this journey into tech. A year ago, I couldn’t even come close to my performance on this last interview. I’m going to continue striving and can’t wait to see where I go next!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7a7216940270" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Reversing a Linked List in JavaScript]]></title>
            <link>https://medium.com/@mahdis.pw/reversing-a-linked-list-in-javascript-bb21bfb5090d?source=rss-1521aefe5b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb21bfb5090d</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding-challenge]]></category>
            <category><![CDATA[data-structures]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[linked-lists]]></category>
            <dc:creator><![CDATA[Mahdi Shadkam-Farrokhi]]></dc:creator>
            <pubDate>Wed, 25 Sep 2019 01:04:24 GMT</pubDate>
            <atom:updated>2019-09-25T01:11:50.004Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r946rEMaFmG8eKyshmfeMw.jpeg" /></figure><p>Welcome to my 4th coding challenge, and I must say this one will be a bit different than the previous challenges. For one, I’m using a more descriptive title! Also, I’m going to be using JavaScript! I’ve been preparing for a JavaScript technical interview and I want to stay sharp. I’ll still explain the logic, so those more comfortable with python or another programming language will still be able to understand what’s going on.</p><p>Reversing a Linked List may seem arbitrary, but it is a common interview question, so it’s worth understanding and practicing.</p><p>Alright, ready? This is a 2-part challenge. First, we need to establish what a linked list is, then we’ll go about the task of reversing it.</p><h3>What’s a Linked List?</h3><p>A Linked List is a <em>data structure</em>, which is just a fancy way of saying “a way of organizing information”. For example: a group of people can be organized as a list (order matters), a bag of name tags (no order), a family tree (branched order), etc. There are many ways of organizing data, but a list is fairly intuitive and a great place to start if you’re not familiar with data structures.</p><p>So, how does a Linked List work? Here’s an analogy — imagine yourself in line to get movie tickets — let’s call you <strong>A</strong>my. The line is in a very narrow hallway and you can only see the person in front of you, <strong>B</strong>arry — you can’t even turn around! This line resembles a Linked List. Each person, or node, has it’s own value (like a name) and a reference to the next node (the person in front of you). That’s it! This simple data structure allows for some interesting nuances.</p><p>Alright, enough talk, let’s code!</p><p>They way I prefer to implement a LinkedList is to work bottom up, starting by creating the Node class.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7d3c142229649b06d49a440bb82315ad/href">https://medium.com/media/7d3c142229649b06d49a440bb82315ad/href</a></iframe><p>A Node object starts out very simply by initializing with a value and a reference to another node through the .next property.</p><pre>const Amy     = new Node(&quot;Amy&quot;);<br>const Barry   = new Node(&quot;Barry&quot;);<br>const Cameron = new Node(&quot;Cameron&quot;);</pre><pre>Amy.next   = Barry;<br>Barry.next = Cameron;</pre><pre>Amy.next;     // Node {val:&quot;Barry&quot;, next: Cameron}<br>Barry.next;   // Node {val:&quot;Cameron&quot;, next:null}<br>Cameron.next; // null</pre><p>In the above code, we establish 3 nodes: <strong>A</strong>my, <strong>B</strong>arry, and <strong>C</strong>ameron. Think of these nodes as individual beads without any connection to each other. Then we connect them by establishing Amy.next to be Barry, and Barry.next to be Cameron (we don’t do anything to Cameron.next). The three nodes are now connected — almost like a string of beads!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*d5KUl0RMp9lqA85gp6JsLw.jpeg" /><figcaption>Link of gems resembling linked list structure</figcaption></figure><p>Let’s imagine starting with <strong>A</strong>my and wondering if <strong>C</strong>ameron is somewhere in the link. The algorithm to traverse the list is fairly straightforward:</p><ol><li>Check if the root (Amy) has the desired value, if not move onto the .next node.</li><li>Repeat until value is found or the end (null) is reached</li></ol><p>In this case, we would move past Amy and Barry until finally finding Cameron and returning true. If we tried looking for Jenny, we’d hit the end of the list (Cameron.next) and returning false. Let’s see what that traversal would look like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b81f28c84b14c12337f29407d0b146a9/href">https://medium.com/media/b81f28c84b14c12337f29407d0b146a9/href</a></iframe><p>You can also play around with this code at this Repl.it — <a href="https://repl.it/@shaddymaze/LinkedList-in-JavaScript">LinkedList in JavaScript</a>.</p><p>The listContains function takes a given root node (the start of the list) and a value. It will continue to loop through each .next node until either the correct value is found (returning true and ending the loop) or .next eventually sets the curr node to null, ending the loop and returning false.</p><p>The last step of the journey is to recognize that all of these interactions with the list of nodes is going to become very tedious very fast. A good programmer would abstract the responsibility of interacting with the “bead-like” assembly of nodes and create another class. So…let’s make the LinkedList class, which is responsible for simple interactions with the list, such as checking for a value, inserting a value at a certain point, removing a node, finding the kth to last element, reversing the list (😉), etc.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/42c1daaa93b43ba1383e7ed88d1006d8/href">https://medium.com/media/42c1daaa93b43ba1383e7ed88d1006d8/href</a></iframe><p>This is a bare bones implementation, but you can see our LinkedList will start out with…pretty much nothing — not even a root node! So, how do we add a new node? Excellent question! I wonder who or <em>what</em> should be responsible for adding new nodes to the list.</p><p>We technically COULD add a node manually, but that would miss the point of having a LinkedList class in the first place. Let’s add an append method to the LinkedList.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/268a9c4c80b3f0e3dd34d400444e2a3c/href">https://medium.com/media/268a9c4c80b3f0e3dd34d400444e2a3c/href</a></iframe><p>The append method must account for 2 possible situations. A) If the root does not exist (it’s null), we simply set the .root property to the newly created node with the given value. B) If the root does exists, the method will continue looping through nodes until the last one (without a .next) is found and has it’s .next property set to the newly created node.</p><p>Believe it or not, we’re done with the basic functionality of a linked list! We could include other methods, such as removing a node based on it’s value, but I’ll leave that as an exercise for the reader 😄 (consider what happens then the root is the node to be removed).</p><h3>Reversing a linked list</h3><p>Keep in mind, the only reference we have to start with is the root node. So, how do we reverse the list when all we have is the root node? Well, it’s all a matter of swapping the .next reference with the previous node, while keeping the .next reference for later. Here’s the logic:</p><ol><li>Start with the root node and store the .next reference in a variable. Let’s call this variable “<em>savedRef</em>”.</li><li>Set the root node’s .next to null, since it will become the last node, which has a .next of null</li><li>Let’s keep a reference to the root node, since we’ll need to set it as the .next child for the next node in the list. Let’s call this variable the “<em>prev</em>” node, for previous.</li><li>Now, we set up for the next node in the list, which was stored in the “<em>savedRef” </em>variable.</li><li>We repeat the same steps as before…we store the node’s .next in the “<em>savedRef</em>” variable. We set the .next to be the “<em>prev</em>” node (before we used null, but now we actually have a .next target). Then we set up for the next node in the list and repeat until we reach the end.</li><li>At the end, we set the last node as the new root node</li></ol><p>Here’s what the code looks like:</p><pre>let prev = null;<br>let curr = root;<br>let savedRef;<br>while(curr){<br>    savedRef = curr.next; // storing reference to next<br>    curr.next = prev;     // reversing</pre><pre>    // setting up for next iteration<br>    prev = curr;<br>    curr = savedRef; // the last node will set this to null<br>}<br>root = prev; // prev was the last node</pre><p>Here’s a little animation to help visualize the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*g9G6qtffZ_nfWR4dTAoDYA.gif" /><figcaption>Reversing Linked List gif</figcaption></figure><p>Here’s <a href="https://repl.it/@shaddymaze/Complete-LinkedList-in-JavaScript">the full implementation within the </a><a href="https://repl.it/@shaddymaze/Complete-LinkedList-in-JavaScript">LinkedList </a>class — have fun playing around with it!</p><p>In all, some of the trickiest parts are having a good grasp of OOP and keeping track of node references. There are a TON of related concepts you can move to from here such as Queues and Stacks, not to mention additional efficiencies that can be added, such as the length of the list or keeping a reference to the last node.</p><p>Have you been asked to reverse a Linked List in a technical interview? Are there other ways you can think of doing the reversal?</p><p>I’m still debating on my next article, but I’ve been looking to try something different, so we’ll see what I come up with! Until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb21bfb5090d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Job Hunt Tactics : No more playing around]]></title>
            <link>https://medium.com/@mahdis.pw/data-science-job-hunt-tactics-no-more-playing-around-f0d5411f915?source=rss-1521aefe5b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0d5411f915</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[technical-interview]]></category>
            <category><![CDATA[networking-tips]]></category>
            <category><![CDATA[job-hunting]]></category>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[Mahdi Shadkam-Farrokhi]]></dc:creator>
            <pubDate>Sun, 08 Sep 2019 02:51:58 GMT</pubDate>
            <atom:updated>2019-09-08T02:51:58.224Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r946rEMaFmG8eKyshmfeMw.jpeg" /></figure><h3>Data Science Job Hunt Tactics : No more playing around</h3><p>I’ve been trying to get my foot into the “tech door” for almost a year now, and I’ve learned a lot about myself, the application process, and a bunch of general tidbits that I could have used when I first started. I wanted to take some time to write about my experiences and reflect on what’s I’ve learned as both a reminder to myself and as something potentially useful for other job seekers.</p><p>Ready? Let’s do this!</p><h3>Job Hunt Outline</h3><ol><li>Commit to a job role</li><li>Research job role</li><li>Determine “non-negotiables”</li><li>Prepare artifacts</li><li>Commit to a schedule</li><li>Interviewing</li><li>Profit?</li></ol><h4>1. Commit to a job role</h4><p>Simply put, decide what role you’re hunting for — this may change slightly, but you should have a pretty good idea of the job title and related responsibilities in mind before you spend any time and energy on your search.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/760/1*UJR1P8HVoLFAk91kra_FzQ.png" /><figcaption>What to do…?</figcaption></figure><p>This may seem obvious, but I was running into so many issues when I was flip-flopping between data scientist, tech instructor, AND web developer positions. I’m not saying you only have to have one role in mind; looking for different jobs is completely feasible and valid. For me, however, searching for so many different kinds of work was a result of my own flaw, a lack of direction. <strong>I didn’t know what I wanted to do with my career!</strong></p><p>I was a bit desperate and was compromising on what I wanted to do in order to secure work quickly. In the end, though, I was sabotaging my own efforts by not fully committing to any one role. I love teaching, and will always teach in some capacity, but if I’m ever going to break into tech, I’m going to have to focus my efforts. So, tech instructor is off the table. And between data science and web developer, I’m much more passionate about data. Also, the developer market is pretty saturated.</p><h4>2. Research job role</h4><p>Once you have a role or two to focus on, do some quick research to extract the <strong>median salary</strong>, general qualifications and responsibilities for the role(s) (<em>Check out </em><a href="https://www.glassdoor.com/Salaries/index.htm"><em>Glassdoor</em></a><em> and </em><a href="https://www.payscale.com/research/US/Job"><em>PayScale</em></a><em> to get an idea of salaries</em>).</p><p>This step is to <strong>acclimate you to the job market</strong> for your particular role (<em>this step also serves as a starting point for step #4 to tailor your artifacts, but more on that later!</em>). Perhaps the salary isn’t what you thought it was? Or maybe the qualifications are steeper than you thought? This is OK! Especially for transitioning roles, there’s always going to be a feeling of “<a href="https://en.wikipedia.org/wiki/Impostor_syndrome">impostor syndrome</a>”, but things are not insurmountable — you’ll just have to face a reality check.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*Nmtm_YI308WKj3mFB4kAqg.png" /><figcaption>Impostor Syndrome (taken from <a href="https://xkcd.com/1954/">https://xkcd.com/1954/</a>)</figcaption></figure><p>If you’re transitioning or just starting out, you’re probably not going to get that $200k Data Scientist job at Apple or Facebook. <strong>Small to medium-sized companies and organizations will look favorably on</strong> <strong>you</strong> if you pass most of the qualifications with the expectation that you’ll learn the rest on the job. I’ve learned to avoid “Senior” and “Lead” roles in order to spend my time and effort on more realistic applications. Also, <strong>I avoid anything asking for 3+ years of experience</strong> — I simply haven’t been in the industry long enough to come close to that much experience.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*vYxe1tqQK-J7FfLYBr-vrA.png" /><figcaption>4 Type of Data Science Jobs (taken from <a href="https://blog.udacity.com/2018/01/4-types-data-science-jobs.html">https://blog.udacity.com/2018/01/4-types-data-science-jobs.html</a>)</figcaption></figure><p>Lastly, the specific job title you have in mind likely has similar roles with varying degrees of responsibilities and, therefore, salary. So, if you find the job you’re looking for has qualifications you don’t come close to meeting, you may be able to find something close with fewer responsibilities and typically for less pay. For example, “Data Scientist” is a significant role that covers a lot of responsibilities, but a “Data Analyst” is similar in context with a lighter burden. Roles like these make for a great transitioning step towards the larger role. This is another reality check — <strong>you may need delay your timetable a few years while you work your way towards the role you want</strong>. Given my background, I’m finding myself looking at “Data Engineer” or “Machine Learning Engineer” roles much more than “Data Scientist”.</p><h4>3. Determine “non-negotiables”</h4><p>There are just some things you HAVE to have and these will be must haves for any job you apply to. This will greatly assist you when job searching. By having an explicit list of criteria set up before, you can quickly separate the wheat from the chaff.</p><p>For me, I already know the salary range I have in mind (a range of $5–10k is ideal!). I keep a monthly budget, so I know what I need to survive, which helped inform what my minimum salary is. <strong>However you decide your range, do have one!</strong> I can’t really travel, I’ll need full-time work, I can’t apply for anything requiring 3+ years of experience, etc.</p><h4>4. Prepare artifacts</h4><p>Everything so far has not been very time-consuming. The job hunt artifacts are a big time commitment, but they give you the largest “bang for your buck”. The artifacts are your <strong>job tracker spreadsheet, resume, cover letter template, and personal or portfolio website. </strong>If you’re in tech, you will want to have your GitHub neat and tidy, as well as a blog, vlog, and/or active twitter to showcase your participation in the tech space — I wouldn’t call these required, but they will go a long way to convey your investment in the tech community.</p><p><em>TIP: if you don’t have a professional email address, create one and use it only for your job hunt and professional connections. I like to use </em><a href="https://www.google.com/gmail/about/"><em>gmail</em></a><em>, but there are plenty of emailing services out there.</em></p><p><em>TIP: get a </em><a href="https://voice.google.com/u/0/signup"><em>Google Voice Number</em></a><em> and use it as your professional contact number. It’s free and acts as a middle-man for calls to your real phone number. If your Google Voice Number gets abused or falls into the wrong hands, you can easily get a new one.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*C6KqIOLCzoDpottbBxmEZA.png" /></figure><p>Getting my job tracker spreadsheet, resume, cover letter template, website, GitHub account, and blog up and running took a lot of effort and outside help, but <strong>once they were done very little maintenance is required</strong>. I won’t go into how to create these artifacts as there’s plenty of available help and tutorials available. The only thing I will mention is regarding the cover letter.</p><p><strong>If a job has an option for providing a cover letter, you should be sending it! </strong>Also, before using a template, I found creating cover letters to be tedious and time consuming, which is why the template has saved me HOURS of effort completing applications.</p><p>My template has 3 paragraphs set up such that the first paragraph is what I customize to the job and the last two speak about my path into data science (<em>these will never change</em>). So for every application, I spend at most 10 minutes filling in the date, company, job title, and then construct the first paragraph based on some general prompts, like “What makes me ideal for this job?” and “Why do I want to work for this company?”. After a number of applications, I can just copy and paste content from previous customized cover letter into new ones.</p><h4>5. Commit to a schedule</h4><p>Now with everything set up, you can hit the ground running! Your schedule is yours to make, but be realistic, consider a flexible schedule to accommodate interviews, and vary your day to day tasks with the following priorities in mind:</p><ol><li><strong>Networking</strong>: <a href="https://www.linkedin.com/pulse/study-reveals-85-jobs-filled-networking-sandy-hutchison/">Over 80% of jobs are filled through networking</a>, which is why I’m putting it first. I was initially confused by how to execute on “networking”, but it’s as basic as a quick phone chat or meeting with someone you know for coffee. Meetups and events are also great ways to expand your network base. I did not enjoy networking at first, but here are some concrete benefits that turned me around to it — networking has directly lead to a number of job opportunities and one offer; <strong>networking allows me to practice making conversation for behavioral interviews</strong>; networking literally allows you to position yourself within the spheres of influence you want to be in! There is so much more to say, but I think I might save it for another post.</li><li><strong>Sending in applications: </strong>I have a soft requirement of completing 2 applications a day. I know that doesn’t sound like much, but it is effectively a background steady task, which allows me to focus on the other priorities. It should be noted, the success rate of raw applications without a network referral is pretty abysmal —<a href="https://careers.workopolis.com/advice/only-2-of-applicants-actually-get-interviews-heres-how-to-be-one-of-them/"><strong> only 2% of applicants even get to the first interview!</strong></a> So, at 2 apps per day I can get about 60 apps in a month, which almost guarantees at least 1 interview per month through raw applications. Through using customized cover letters and targeting more realistic job roles, my personal 1st round interview rate is higher at around %5.</li><li><strong>Technical Preparation</strong>: If you’re not looking for tech work, this step won’t apply. Technical prep involves any number of tactics, which is totally up to you. I have a few preferred options, which include coding challenges, directly studying data science topics, creating content (like this blog!), and working on my portfolio.</li><li><strong>Behavioral Preparation</strong>: I literally just have a spreadsheet of <a href="https://www.themuse.com/advice/30-behavioral-interview-questions-you-should-be-ready-to-answer">common behavioral questions</a> asked on job interviews and have 2 answers for each. I consider this an artifact, but you can work on it while searching for work. I’ll only really use it to prep for an interview.</li></ol><h4>6. Interviewing</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*1owq2ihNfPc82lUMm5OPFQ.jpeg" /></figure><p>If you’re new to interviewing, don’t be surprised if it takes a few to get the hang of it. <strong>Keep in mind the interview is for you as much as it is for them</strong> — I know I’ve felt desperate on my job hunt and it’s easy to overlook warning signs in order to secure an offer. I would caution any job seeker to consider the interview as a way of getting a sneak peek into the company culture as well as the team dynamics at play.</p><p>For those on the tech path, be warned about the potential LONG interview process, which can span over a month and include a 5+ hour day long on site interview process. These can be daunting, but are very manageable with preparation and confidence the last step is a great place to be!</p><p>Lastly, if you do get an offer, congratulations! I’m learning <strong>salary negotiation is recognized as part of the application process.</strong> It’s an interesting component, but one you will want to potentially practice, too. I know it can feel like any offer is good enough, but keep in mind the company or organization has it in their best interest to hire you for a little as possible.</p><p><em>NOTE: Whenever possible, do NOT reveal your preferred salary range until they’ve made the offer first. A counter offer of an additional ~$5k is fairly common and benefits are fair game, too. I’ve had some recruiters pressure me into giving up my salary range early with the excuse of not wanting to waste anyone’s time, etc. You can counter with something like “I’m glad we’re talking about this now. What kind of compensation does this role normally get?” In any event, I’ve learned it’s best not to be caught off guard and </em><strong><em>have a salary range in mind, even for your first interview!</em></strong></p><h4>7. Profit?</h4><p>All of the effort has paid off!</p><p>If you’ve gotten to this point, then you have an offer with a competitive compensation. All of your non-negotiables are satisfied and you’re either working in your ideal role or one that sets you up to in a few years time. The company or organization is a good fit for you, since you were mindful to avoid the warning signs.</p><p>Congratulations!</p><p>That’s it for now! What was a key takeaway for you? What would you add or change about these job hunting tactics?</p><p>I’m looking forward to tackling another coding challenge next! Until then!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0d5411f915" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coding Challenge #3]]></title>
            <link>https://medium.com/@mahdis.pw/coding-challenge-3-90bdebe0082d?source=rss-1521aefe5b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/90bdebe0082d</guid>
            <category><![CDATA[coding-challenge]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[learning-journey]]></category>
            <dc:creator><![CDATA[Mahdi Shadkam-Farrokhi]]></dc:creator>
            <pubDate>Fri, 30 Aug 2019 20:10:57 GMT</pubDate>
            <atom:updated>2019-08-30T20:10:57.552Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r946rEMaFmG8eKyshmfeMw.jpeg" /></figure><p>Welcome one and all to the third installment of my coding challenges series. I’m doing something a little different today in that I’ll be including the live video of me solving the challenge in additional to my normal play-by-play. I figured I would stretch my video muscles and start getting familiar with a video set up.</p><p>As usual, I’ll be using the <a href="https://www.codewars.com/">CodeWars</a> platform and the challenge in question can be found here: <a href="https://www.codewars.com/kata/562f91ff6a8b77dfe900006e">Going to the Cinema</a>.</p><p>Feel free to code along! The video can be found here:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FCHxgOecx6ys%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DCHxgOecx6ys&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FCHxgOecx6ys%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4658f2d08a1f6877e708e3c12c11eb8/href">https://medium.com/media/f4658f2d08a1f6877e708e3c12c11eb8/href</a></iframe><p>Typically I would write up my thought process while tackling the challenge, but since I recorded my process, this will be more of a recap.</p><h3>The Prompt:</h3><p>Build a function that takes three parameters: a card cost (int), a ticket cost (int), and a percentage (float) and returns the number of tickets needed before “system B” is more cost effective than “system A”. So, what are these systems? Well, in essence the context is buying movie tickets, which have a fixed cost. In “system A” the cost of each ticket doesn’t change. For example, if a ticket is $10, then after buying 3 tickets, you will have spent $30. “System B” allows the buyer to reduce the cost of each subsequent ticket by the given percentage, however, there’s a flat cost of a card (think of it like a members card). For example, if the cost of the card is $100, a ticket is $10, and the percentage is 90%, then 1 ticket costs you $100 + ($10 * .9) = $109. After that 2 tickets cost $109 + ($10 * .9 * .9) = $109 + $8.10 = $117.10.</p><p>So, why would anyone want to spend so much on “system B”? Well, as you can see, over time the costs of each ticket approaches $0 (Free!). Essentially, this function is meant to determine where the inflection point is where “system B” begins to become cheaper than “system A”. For practical purposes, there’s no need to round fractions of a penny. Also, per the instructions, when making the comparison between the systems, we’re expected to round “system B” up to the nearest dolor.</p><p><strong>Brainstorm: </strong>I’m already thinking about creating a while loop to iterate each ticket until “system B” is better than “system A”. I’m also going to want to keep track of “system B”’s specific nuance using the previously calculated ticket price. My psuedocode looks something like this:</p><ol><li>Establish variables for a ticket count and running count for sys_a and sys_b</li><li>Continue looping until sys_b &gt; sys_a</li><li>Add new ticket costs to both systems</li><li>Eventually loop breaks and we return the ticket count</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdd6274419abd519a211483a91d23b5c/href">https://medium.com/media/bdd6274419abd519a211483a91d23b5c/href</a></iframe><p>In my first attempt, I passed the first of 2 tests, but end up with an error for the 2nd test, which had a different value for card.</p><h3>Hiccup #1</h3><p>In my rush, I accidentally hard coded the initial starting cost of sys_b, at 500, which really should be the price of card instead. After a few minutes I realize my mistake and the tests both go through!</p><h3>Hiccup #2</h3><p>Well, I was experimenting with the &gt;= sign, but ended up leaving it at just &gt;, which was failing the final submission tests. I had an inkling this was the issue right away given the edge cases I was seeing. I also streamlined my code to save a little on memory. Hey, every little bit helps! Here’s my final solution.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a9f6b29d8e502e52004539ea4bdbea7/href">https://medium.com/media/4a9f6b29d8e502e52004539ea4bdbea7/href</a></iframe><p>In all, this was a fairly straight forward problem. Let’s check out one of the more efficient solutions:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3bf9e51d9657853197e7d6782dded850/href">https://medium.com/media/3bf9e51d9657853197e7d6782dded850/href</a></iframe><p>A number of other solutions used python libraries, such as itertools and scipy, which I felt was a bit excessive. Whenever possible, I’ll try to use few if any dependencies. Although the above solution resembles mine, I will point out the minor transfer between memory efficiency and processing/time efficiency. With my method, I kept a simple variable of the previous “system B” ticket price. This allows for a simple multiplication of the percentage for each additional ticket — saving on processing. However, by calculating (ticket * (perc ** num)) every iteration, some memory is saved, but at the cost of recalculating the same information over and over again.</p><p>That’s it for now! Was this problem too easy or just right? Did you tackle this challenge in another way?</p><p>Now that my job hunt is in full swing, I think my next post will be related to my searching process. Until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90bdebe0082d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bee Image Classification using a CNN and Keras]]></title>
            <link>https://medium.com/@mahdis.pw/bee-image-classification-using-a-cnn-and-keras-5fd5ed90a37b?source=rss-1521aefe5b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fd5ed90a37b</guid>
            <category><![CDATA[bees]]></category>
            <category><![CDATA[convolutional-network]]></category>
            <category><![CDATA[keras]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[varroa-mite]]></category>
            <dc:creator><![CDATA[Mahdi Shadkam-Farrokhi]]></dc:creator>
            <pubDate>Sat, 17 Aug 2019 03:41:34 GMT</pubDate>
            <atom:updated>2019-11-13T17:15:10.017Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WsQcgCyl_Qu_aeNLd_aSbg.png" /></figure><h4><a href="https://towardsdatascience.com/in-depth-analysis/home">In Depth Analysis</a></h4><p>Welcome one and all to my first large data science project! I’ve worked on a number of smaller projects, such as:</p><ol><li><a href="https://github.com/Shaddyjr/predicting_housing_salePrice">Predicting housing prices using the Ames Housing Dataset</a></li><li><a href="https://github.com/Shaddyjr/predicting_affluence_using_yelp">Predicting neighborhood affluence using Yelp “$” price data</a></li><li>Using the Reddit API to differentiate 2 subreddits</li><li><a href="https://www.kaggle.com/mahdishadkamfarrokhi/cnn-using-keras-ffnn-using-tensorflow">Using Feed-Forward and Convolutional Neural Networks to classify the MNIST dataset</a> (Kaggle Competition)</li><li>and many more related to Linear Regressions, GLMs, Time-Series data (ARIMA), and trees…lots of trees!</li></ol><p>But classifying bee images has definitely been a passion project for me! I hope it causes a lot of <em>buzz </em>😆. Alright, I promise to keep the bee puns to a minimum!</p><p>First, a little background on the inspiration behind this bee project.</p><h4><strong>Problem Statement:</strong></h4><p>Beekeepers must face a myriad of threats to their hives. The <em>Varroa (pronounced “vr-ow-uh”) destructor</em>, or more commonly the <em>varroa mite</em>, is a natural predator to honey bees and is one of the biggest pests plaguing the bee keeping community. The sooner a keeper can begin treating for <em>varroa</em>, the less likely a <a href="https://ipm.missouri.edu/MPG/2013/7/Colony-Collapse-Disorder-the-Varroa-Mite-and-Resources-for-Beekeepers/">colony collapse</a> will occur. Early detection could mean the difference between a healthy hive and a dead one.</p><p><em>Update (11/13/19): After speaking with some professional beekeepers, I’ve been made aware how inefficient my proposed system is. In summation, if varroa are able to be imaged on bees, then it’s already too late to begin preventative treatment. Looking at the base board is better bet. Although this revelation invalidates my initial purpose for this project, I’ll leave the remaining content available for others as a learning experience. </em><strong><em>Note to self: do more research beforehand!</em></strong></p><h4>Plan of attack:</h4><p>I plan to create a proof of concept for this early detection tool by using the dataset from the <a href="https://www.kaggle.com/jenny18/honey-bee-annotated-images">Honey Bee Annotated Image Dataset</a> found on Kaggle. With these annotated images, I will train a Convolutional Neural Network (CNN) to classify bee images as either having <em>varroa </em>or not (binary classification).</p><p>I’ll <em>bee</em> using accuracy as my metric.</p><h4>The data:</h4><p>The data can be found on Kaggle at the <a href="https://www.kaggle.com/jenny18/honey-bee-annotated-images">Honey Bee Annotated Image Dataset</a>.</p><p>I’ll be including all necessary code to replicate my process, so feel free to code along if you like! Additionally, all of my code can be found on <a href="https://github.com/Shaddyjr/bee-image-classifier">the project’s GitHub repo</a>.</p><h4>Exploratory Data Analysis:</h4><p>Here are the packages I will use:</p><pre>import pandas as pd<br>import numpy as np<br>import seaborn as sns<br>import matplotlib.pyplot as plt<br>import imageio<br>from skimage.transform import rescale, resize, rotate<br>from skimage.color import rgb2gray<br>from sklearn.metrics import confusion_matrix, auc, accuracy_score<br>from sklearn.model_selection import train_test_split</pre><pre>from keras.models import Sequential<br>from keras.layers import Dense, Dropout, Activation, Flatten<br>from keras.layers import Conv2D, MaxPooling2D<br>from keras.utils import np_utils<br>from keras.preprocessing.image import ImageDataGenerator<br>from keras.optimizers import Adam, RMSprop, SGD<br>from keras import callbacks<br>from keras.models import load_model</pre><pre># For reproducibility<br>random_state = 42<br>np.random.seed(random_state)</pre><p>Then I’ll load the data and select only the observations classified as either “healthy” or “varroa”.</p><pre>data = pd.read_csv(&#39;./data/bee_data.csv&#39;)<br>health_counts = data[&quot;health&quot;].value_counts()</pre><pre>target_categories = [name for name in health_counts.index if &quot;varr&quot; in name.lower() or &quot;health&quot; in name.lower()]</pre><pre>data = data[[status in target_categories for status in data[&quot;health&quot;]]]</pre><pre>data[&quot;has_varroa&quot;] = (data[&quot;health&quot;] != &quot;healthy&quot;).astype(int)</pre><pre>data[&quot;has_varroa&quot;].value_counts(normalize = True)</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/1*35kD2OB5whySr7qird_Zow.png" /><figcaption>Balance of target classes</figcaption></figure><p>We see the target variable has a bit of unbalanced classes, but not enough to really worry about. It should be noted the overall total number of images in the dataset is a bit north of 4,400, which kind of <em>bugs</em> me since it’s hard to find much significance in such a small dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*pvZYymweZpQ9WGVIct6Rug.png" /></figure><p>Also, it looks like the only <em>varroa </em>images are coming from a single location, Athens, GA, which may cause issues during modeling. I’m concerned images may be classified more according to some common feature in the images, instead of the actual <em>varroa mite</em>.</p><p>As my CNN will only be trained on the images, I won’t need any other data, except the filename for the image and the target classification.</p><pre>data = data[[&quot;file&quot;,&quot;has_varroa&quot;]]</pre><p>Let’s check out what some of these images look like! I’ve included some of the functions I used, in case you’re following along.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/43b46a4bd9e19022d5ac2cfce1dc9aec/href">https://medium.com/media/43b46a4bd9e19022d5ac2cfce1dc9aec/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BgK8s1LH7e8cugMkfgMIXQ.png" /></figure><p>Those are some…interesting images! Immediately I’m concerned about the difference in sizes, as the CNN must have images of the same width and height as input. The image quality is also inconsistent, which may make it difficult to make any real sense of what’s going on in the model. Lastly, the backgrounds are a concern. Since all of the <em>varroa</em> images are from the same location, I’m worried the CNN may simply learn background color IS <em>varroa</em>. I may need to address this by using grayscale or changes in image brightness.</p><h4>Model Code:</h4><p>Onto modeling! I promise it won’t <em>sting</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qRddM791-HMRsEDOpZ0VJg.png" /><figcaption>Image taken from <a href="https://github.com/HarisIqbal88/PlotNeuralNet">https://github.com/HarisIqbal88/PlotNeuralNet</a></figcaption></figure><p>The above image is a representation of a typical CNN (it does not represent my model’s topography).</p><p>For simplicity, I’ll only cover the model structure here as well as the Keras code. If you’re coding along, I’ll just say I used the `ImageDataGenerator` class from Keras to batch load, modify, and fit the model! Check out <a href="https://github.com/Shaddyjr/bee-image-classifier">the repo</a> for more details.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/60ca13f73fde7df776c4ac92ba290487/href">https://medium.com/media/60ca13f73fde7df776c4ac92ba290487/href</a></iframe><p>I ended up standardizing all images to 54x50.</p><p>After much tuning and experimenting…I started the model with 3 pairs of Convolutional layers, each followed by a Max Pooling layer and Dropout. I then flatten the data into a 1D array and feed that into 2 Dense layers, each followed by a Dropout. Finally, I feed that into a single node for the Dense output layer.</p><p>I used the ReLU activation function for all layers except the output. As this is a binary classification problem, sigmoid was ideal for the activation function for the output.</p><p>I used “binary_crossentropy” for the loss function and optimized using RMSProp, though Adam worked just fine, too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ha26hZ9sT605xqAt-Ox1WQ.png" /><figcaption>Training and Testing loss by epoch</figcaption></figure><p>Clearly there were some jagged transitions, which suggest my model’s gradient descent was having difficulty converging. Perhaps I could have set a more gentle learning rate/decay. I also considering using a different optimizer, but it’s hard to complain about <strong>99.64% test accuracy.</strong></p><h4>Model Evaluation:</h4><p>Given the CNN is a “black box” model, it’s difficult to succinctly know what’s going on under the hood, but we can look at the missclassified images and make some observations as to what’s going on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/461/1*_xkbOSw_-VqJAHy0bk4TBQ.png" /><figcaption>False Positive model prediction</figcaption></figure><p>As the only false positive in the test set, this image is actually a healthy bee, that was wrongly classified as having <em>varroa</em>. This somewhat confirms my worry. The background color resembles that of the Athens, GA images, which is the sole contributor to the <em>varroa</em> images. It appears the model has overfit to the background color, instead of the true target.</p><p>Regarding the false negatives, we see a bit more variety. There were only 3 images of bees with <em>varroa</em> that were wrongly classified as “healthy”. However, here, we see much more acceptable reasons behind the missclassification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6J9WR88eXGgQkFGqKXWZng.png" /><figcaption>False Negative model predictions</figcaption></figure><p>The first image is of a bee with a dark exoskeleton against a light background, which may make it difficult for the model to discern orientation. The second image is too confusing to make out, even for a human! The last image likely suffered from being oblong, which would cause significant image distortion when rescaled to the standard size of 54x50. Also, the background color may have proved too difficult to distinguish from the bee.</p><p>In all, the model seems quite good at predicting on these data specifically. I would be concerned about bringing it into a production setting without more testing/verification. Otherwise, we might find ourselves in a <em>sticky</em> situation.</p><h4>Conclusions:</h4><p>Although we find a high accuracy for this CNN model, the data leaves much to be desired. I’m reminded of a common saying in data science:</p><blockquote>Garbage in, garbage out</blockquote><p>Additionally, the dataset had a relatively small sample size, making it difficult to know if this model would truly perform well ‘in the wild’.</p><p>I would love to revisit this problem with bees 🐝 from a larger diversity of locations AND having the same width and height.</p><p>I actually ended up trying a model using grayscale versions of the images and got to ~94% test accuracy. It may be possible this was a truer assessment of the model, though I would have to still investigate the model weights in the convolutional layers to glean exactly what they were “seeing”.</p><p>In all, I learned a ton on this project! For example, it’s a best practice to standardize the image pixels, and I learned about batching with the `ImageDataGenerator` class. I also discovered just how important tuning the convolutional layers were. The Dense layers are critical, but the real power of reducing features and succinctly summarizing the data coming out of those convolutional layers.</p><p>I think I’ve <em>droned</em> on long enough, so that’s it for now! Did you find this breakdown helpful? Is this project <em>buzz</em> worthy? Was the content to pun ratio acceptable? If you have any suggestions on how these posts can be improved, please let me know! I’m always looking to improve!</p><p>My next post should be another coding challenge. I’m very excited to stretch out my wings on something more technical. I think I’ll try a more traditional coding interview question. Until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fd5ed90a37b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coding Challenge #2]]></title>
            <link>https://medium.com/@mahdis.pw/coding-challenge-2-4bbfa3e78f8f?source=rss-1521aefe5b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bbfa3e78f8f</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[coding-challenge]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[journey-of-life]]></category>
            <dc:creator><![CDATA[Mahdi Shadkam-Farrokhi]]></dc:creator>
            <pubDate>Thu, 18 Jul 2019 03:28:42 GMT</pubDate>
            <atom:updated>2019-07-18T04:07:32.708Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r946rEMaFmG8eKyshmfeMw.jpeg" /></figure><p>Welcome one and all to the second installment of the coding challenges I’m encountering on my learning journey.</p><p>This time, I’m going to tackle some SQL queries. Just like before, I’ll be using <a href="https://www.codewars.com/">CodeWars </a>to source my challenge. Without further adieu, let’s get to it!</p><p>You can find the challenge <a href="https://www.codewars.com/kata/5818bde9559ff58bd90004a2">here</a>. Feel free to try it on your own!</p><p>As usual, what follows is my unedited attempt at this challenge — I’m literally typing what you’re reading while going back and forth from the challenge.</p><h3>The problem prompt:</h3><p>We’re given the schema for 3 tables relating actors<strong> </strong>(actor), films (film), and a relational table of both (film_actor).</p><p>The task is to find two actors who cast together the most and list titles of only those films they were cast in together (<strong>three columns: first_actor_full_name, second_actor_full_name, and film_name</strong>). Lastly, the results should be ordered by the film title alphabetically. Also, actor pairings should not repeat — the first actor should have a smaller id than the second.</p><p><strong>Brainstorm</strong>: My first thought is to break this query down into nice easy chunks. I’m also recognizing we’re likely going to have to join tables to get the final solution.</p><p>My initial concern is finding two actors with the same film id, which I’m not 100% on, but think a nested query might work for this. Once I get that, the rest should fall into place. Here’s my game plan:</p><ol><li>Create list of all actor pairs who have the same film ids (probably nested query)</li><li>Group by those pairs to get aggregate count, selecting the results matching the max of that count</li><li>Order by film title</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5fdebcbf6e46b06d29066fd15e618f86/href">https://medium.com/media/5fdebcbf6e46b06d29066fd15e618f86/href</a></iframe><p>Just to get a sense of everything and get familiar with the database, I joined the tables together and viewed the result, which ends up simply being a running list of all film+actor connections filled in with the individual details for the actor and the film.</p><h3>Hiccup #1</h3><p>After being genuinely stumped for longer than I care to admit, I did the first thing I could think of in my debugging strategy…I Googled it!</p><p>I searched for “sql select rows with same values in two column” and promptly found <a href="https://stackoverflow.com/questions/11056235/finding-rows-with-same-values-in-multiple-columns">this generic solution</a>, which takes the form of a sub-query, which I feel makes sense.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cc4c852d735d9f9c14c65c8e9c6ff30e/href">https://medium.com/media/cc4c852d735d9f9c14c65c8e9c6ff30e/href</a></iframe><p>Translating to the problem at hand, I get..</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c0455402c15499c1880f7a99ac7e4be/href">https://medium.com/media/8c0455402c15499c1880f7a99ac7e4be/href</a></iframe><p>Which results in…basically the same table as film_actor<strong>😅 </strong>(with some extraneous single-actor films removed).</p><p>At this point, I fully admit my total ignorance of making complex SQL queries. Nevertheless, onward into the breach! I’m still searching around and I’ve come across the idea of a <a href="http://www.sqlitetutorial.net/sqlite-self-join/"><strong>“self join”</strong>.</a></p><p><em>NOTE: I also stumbled upon the </em><em>concat() SQL function — which will be helpful in forming the full name as expected.</em></p><p>The way I’m thinking of it, I’ll make a self join and make an actor+actor pairing based on film_id, effectively multiplying each instance of an actor by the number of other actors in each film they’re in (there would be a lot of redundant pairing, though 🤔).</p><p>So…how do I make that happen…</p><h3>Hiccup #2</h3><p>In all honesty, I had to take a break and clear my head. Also, to get some some paper and a pen — I work better writing out the logic and mulling over my options.</p><p>And that’s when I found the <a href="https://dba.stackexchange.com/questions/161901/select-pairs-a-b-excluding-b-a-with-same-value">golden ticket</a>…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8ab7941a25708b7838cd3fb08e8f98f9/href">https://medium.com/media/8ab7941a25708b7838cd3fb08e8f98f9/href</a></iframe><p>This general solution succinctly meets the parameters of the problem, even down to removing those excessive duplicates I mentioned before.</p><p>All of the requirements are met:</p><ol><li>Self join on a common element (in our case the film_id)</li><li>We ensure pairs are not repeated by requiring a dependent relationship in the id of the target (in our case the actor_id)</li></ol><p>With renewed energy, here’s the sub-query translated for our problem:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3f5aa786d5586162dd9bb7f00ec93bb/href">https://medium.com/media/d3f5aa786d5586162dd9bb7f00ec93bb/href</a></iframe><p>Which returns the following results:</p><figure><img alt="Good results showing all unique combinations" src="https://cdn-images-1.medium.com/max/524/1*_Vm-jN9ccHL55k8HEpzTBw.png" /><figcaption>Good Result</figcaption></figure><p>As we can see, the logic works beautifully. As the query goes through all combinations of pairings, it only singles out those with unique pairing, due to the restraints of having the first actor id to be always less than the second actor id.</p><p>I also tried the same query, but without the restrictive AND p1.actor_id &lt; p2.actor_id line and got back the entire list of all possible combinations.</p><figure><img alt="Poor results showing all possible combinations" src="https://cdn-images-1.medium.com/max/1024/1*3HZ8j2UP627tGSD_sWuU6A.png" /><figcaption>Not so good result</figcaption></figure><p>I don’t recall learning about using logic directly after the ON clause. I thought it would be more appropriate in a WHERE or HAVING, but clearly it’s a tool worth knowing.</p><p>Looking more into it, the ON clause can absolutely take a conditional statement — <a href="https://www.w3resource.com/oracle/joins/joins-with-on-clause.php">source</a>. What’s interesting is this conditional statement affects the join directly, as in if the condition is not met, the join doesn’t occur in the first place. My original thought was to join everything and THEN filter, which would have been much less efficient use of memory/resources.</p><p>I’m definitely going to have to put this in my bag of tricks!</p><p>Now, I need to select only the highest occurring pair of actors from this sub-query. I’m first going to rewrite the sub-query to make it easier to work with. I happened upon the idea of <a href="https://www.essentialsql.com/introduction-common-table-expressions-ctes/">Common Table Expressions (CTE)</a>, which is a basic syntax for restating sub-queries in a convenient way. The following will have the same result as before:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e881bb72ee484b88d9c0a86b7b16656d/href">https://medium.com/media/e881bb72ee484b88d9c0a86b7b16656d/href</a></iframe><h3>Hiccup #3</h3><p>So…yeah, trying to use the MAX(COUNT(film_id)) while grouping by actor_1_id and actor_2_id I’m finding it pretty impossible to do in one statement, meaning…I’m going to need another sub-query?</p><p>I’m not hesitating this time, to Google!</p><p>And yup, as expected, there’s an issue with using aggregate functions an aliases with HAVING, which would be ideal here. The problem is <a href="https://sqlbolt.com/lesson/select_queries_order_of_execution">SQL’s execution order</a>, which oddly doesn’t occur in the order written! the SELECT statement actually executes AFTER the HAVING clause executes. Anyway, here’s a <a href="https://www.w3resource.com/sql/aggregate-functions/max-count.php">possible solution using a sub-query </a>— anyone else getting a little tired of sub-queries? 😋</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8acdb3319e9e8000a45051fc2ff9632d/href">https://medium.com/media/8acdb3319e9e8000a45051fc2ff9632d/href</a></iframe><p>Essentially, in order to work around the issue of SQL’s order of execution, we had to create redundant sub-queries to have access to the MAX count of groupings for actor_1_id and actor_2_id. And yes, I know my variable names aren’t great! I’ll clean it up later, I’m just trying to grasp what’s going on and get something working first 😋</p><p>The logic thus far is as follows (in order of execution):</p><ol><li>Pair up all actors and create only unique pairs</li><li>Group these pairs and total the number of films they’re in together</li><li>Group these pairs AGAIN and select the pairing with the max count from previous step</li></ol><p>With this (very obnoxious) query, we get the desired highest frequency single pairing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_H3MuN-TzDC93i9nbzS_kA.png" /><figcaption>Single row of highest occurring pairing!</figcaption></figure><p>I can FEEL the answer is so close!</p><p>Alright, we have the actor_1_id and actor_2_id, so we can reuse the table with paired actors and select only the rows with those actors, which should get the film_id&#39;s! However, I don’t think a join makes sense.</p><p>After trying a few joins, it’s clear overlapping the columns with a join is not quite right…</p><p>[5 minutes later]</p><p>…unless you join using a condition stating join ON actor_1_id AND actor_2_id. Using conditional joins is starting to make sense! Here’s what I have so far:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/65b2eccd97d62eca84b29745b93e8d1a/href">https://medium.com/media/65b2eccd97d62eca84b29745b93e8d1a/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I3SAbrTewf2FAFJAFDqBXQ.png" /><figcaption>Returning all rows of most paired actors with film_id</figcaption></figure><p>We’re basically near the finish line. Now I just need to join in the actual data for each actor and film, select the human-readable parts, and order by film title!</p><p>The final version looks soooo messy, but it follows sound-ish logic:</p><ol><li>Pair up all actors and create only unique pairs</li><li>Group these pairs and total the number of films they’re in together</li><li>Group these pairs AGAIN and select the pairing with the max count from previous step</li><li>Join the findings from the previous step with the table of unique pairs on BOTH actors by id</li><li>Join the human-readable tables on both actors and film by id</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/da8f925cd158490b43d03ec0ad7331d1/href">https://medium.com/media/da8f925cd158490b43d03ec0ad7331d1/href</a></iframe><p>The last bit was a little tricky, since joining the same table twice would NOT appear in the results (probably UI issue), though if selected directly, each table still exists in the result. I’m sure there are better, more succinct ways of doing this, so let’s check out some of the better solutions…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/046feba58a710758f53c7f1d349a21ce/href">https://medium.com/media/046feba58a710758f53c7f1d349a21ce/href</a></iframe><p>I actually don’t feel too far off from the other solutions I’m seeing. I’m posting one of the better “best practice” solutions, but there’s honestly so many ways of attacking this problem in SQL, it’s hard to say one is significantly better than another (at least to my naive eyes!).</p><p>I like this solution’s brevity and clear delineation of focus. The first CTE succinctly takes care of the pair groupings and max count — we see a cleaver tactic using ORDER BY along with a LIMIT 1 to get the max count without needing MAX. This is followed up by some short, but sweet, SELECT statements and lastly a bunch of joins near the end.</p><p>In all, I learned a fair amount from this challenge. Using a CTE and WITH and how joins can be made conditionally. Also, sub-queries! Oh, and I learned it’s possible to join a table to itself and you can make multiple joins using the same table.</p><p>That’s it for now! Did you discover anything new from this challenge? What’s an interesting SQL trick you’ve learned that would come in handy for a beginner/intermediate SQL practitioner?</p><p>I’m still figuring out my next post topic…maybe something funny. Anyway, until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bbfa3e78f8f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The pivotal moment that changed my life…]]></title>
            <link>https://medium.com/@mahdis.pw/the-pivotal-moment-that-changed-my-life-3ed308b838e0?source=rss-1521aefe5b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ed308b838e0</guid>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[life-learning]]></category>
            <category><![CDATA[journey-of-life]]></category>
            <category><![CDATA[learning-to-code]]></category>
            <dc:creator><![CDATA[Mahdi Shadkam-Farrokhi]]></dc:creator>
            <pubDate>Tue, 25 Jun 2019 00:55:00 GMT</pubDate>
            <atom:updated>2019-06-25T00:55:00.388Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r946rEMaFmG8eKyshmfeMw.jpeg" /></figure><p>Welcome one and all to the next installment of my learning journey. Today, I’ll be regaling you with what is possibly one of the most important lessons I’ve learned that continues to drive me to this day.</p><p>Let’s go back…back…waaaaay back to my college years.</p><p>FREEDOM! Anxiety! Social awkwardness! These are the tales of a young 17 year old whipper-snapper attending university out of state.</p><p>Having attended an economics focused high school, I went to college certain I would excel in business law. My assumption? I figured economists make lots of money and lawyers makes lots of money, so naturally business lawyers must make even MORE money (as an aside, I really wasn’t so materialistic, I just considered money a means to an end!).</p><p>Anyway, after suffering through a semester of the most mind-numbing long-winded content ever to grace a college-level curriculum, I quickly realized law was not meant for me. I defaulted to my back-up major…Biology.</p><p>I delved into DNA, acquired-immunity, and biochemistry. My second semester was glorious, by comparison!</p><p>That next summer was difficult. My mother had been battling cancer for a few years and passed away a month before I started my second year.</p><p>Determined, I pushed on. The loss weighed heavy on my mind — it will suffice to say, my sophomore year was a poor performance. After seeing my grades and feeling pretty down in general, I hit a kind of rock bottom.</p><p>You know what they say about rock bottom, though? Only one way to go from there!</p><p>I needed something…ANYTHING to show myself I was worth a damn.</p><p>I found myself looking through the course catalog to pick my classes for the following semester. So many options, what to pick…? My eyes glanced over to Organic Chemistry, or “Orgo” to the cool kids. Orgo was considered the hardest class in the Biology track. With my grades, there’s no way I could stand a chance in that course!</p><p>So, naturally I picked Organic Chemistry. I made a promise to myself — I was going to ace this class, no matter what. I was going to prove to myself I can be successful.</p><p>I quickly learned why the course was so difficult. The professor was fantastic, but the quizzes and tests ONLY HAD “TRICK” QUESTIONS 😣. Looking back on them now, the assessments were truly testing understanding of the material and how chemicals interact with each other on a fundamental level. Needless to say, this was a pain point for many in the class who were more accustomed to using rote memorization to be successful.</p><p>I studied my butt off for that class! I reserved time in the library everyday so I could have a place to focus and study. I created a study group with some of the other students in the class, and actually ended up teaching them mostly, which helped me learn a lot. Occasionally, my friends would visit me in the library and try to convince me to go out partying with them, but I’d turn them down and stick to my studies.</p><p>I aced that freakin’ class! And the whole experience ended up not really being about the grade, so much as me proving to myself that I can accomplish whatever I set my mind to.</p><p>And that lesson rings true to this day. It’s empowered me to be more daring and committal to my goals. This is also why when I think about this journey into tech I’m on, I can’t help but smile. I see improvement every day and I can see it adding up.</p><p>I’m going to break into the tech industry — it’s only a matter of time 😉</p><p>That’s it for now! Have you had an experience that motivated you? What was it? Where did it end up taking you?</p><p>For my next post, I’ll be tackling another coding challenge — going to try to up the difficulty 😅. Until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ed308b838e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Coding Challenge #1]]></title>
            <link>https://medium.com/@mahdis.pw/coding-challenge-1-463e9c3c333e?source=rss-1521aefe5b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/463e9c3c333e</guid>
            <category><![CDATA[python-programming]]></category>
            <category><![CDATA[coding-challenge]]></category>
            <category><![CDATA[journey-of-life]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Mahdi Shadkam-Farrokhi]]></dc:creator>
            <pubDate>Wed, 19 Jun 2019 05:00:26 GMT</pubDate>
            <atom:updated>2019-06-19T05:00:26.454Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r946rEMaFmG8eKyshmfeMw.jpeg" /></figure><p>Welcome one and all to the first installment of various coding challenges I’m encountering while on my learning journey.</p><p>I’ve mostly been using <a href="https://www.codewars.com/">Code Wars</a>, but have also dabbled with <a href="https://codesignal.com/">Code Signal</a> (previously Code Fights) and <a href="https://www.hackerrank.com/">Hacker Rank</a>. Today, I’ll be going over a recent Code Wars challenge.</p><p>You can find the challenge <a href="https://www.codewars.com/kata/550f22f4d758534c1100025a">here</a>. Feel free to try it on your own!</p><p>Although I’ll be solving this in Python, I will keep my strategy separate from the programming language and its syntax.</p><h3><strong>The problem prompt:</strong></h3><p>A person is given a set of directions in the form: “NORTH”, “SOUTH”, “WEST”, and “EAST”. In order to save energy, any instructions with immediately opposing directions can be rightly ignored! Reduce the set of instructions such that only the most relevant directions remain.</p><p>So, “NORTH” followed immediately by “SOUTH” can be removed. Same with “WEST” and “EAST”. However a path of “NORTH”, “WEST”, “SOUTH”, “EAST” is a valid path and is irreducible.</p><p>Create a function `dirReduc ` which will take a list of strings and returns a list of strings with the needless directions removed.</p><p>Before I dive in, you should know I’m writing this as I’m actually doing this challenge, so no perfect hindsight or hiding mistakes! AHHHHHHHHHHH, let’s do it!</p><p><strong>Brainstorm:</strong> My first thought is to loop through all items in the list and check for the NEXT item’s value. If it’s the opposing direction, then cut both out. Return the modified list when done.</p><p>This brings up the issue of whether its OK to modify the input object, which is typically frowned upon in software. But we’re not making software — anything goes in the coding challenge world!</p><p>For my “If” statement, I’ll make a dictionary to determine the appropriate values to compare.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/021c6c9117b0f6e994a7acfff775bf4f/href">https://medium.com/media/021c6c9117b0f6e994a7acfff775bf4f/href</a></iframe><h3><strong>Hiccup #1</strong></h3><p>Alright, right off the bat, I’m bumping into a classic issue of removing items from a list WHILE looping through the list.</p><p>One solution is to loop backwards through the list, but I’m potentially removing 2 items at a time.</p><p>I’m hoping to continue using the same list object being provided, after my modifications, but I might consider creating a new list and just populating it with valid items. I’m also considering using list comprehension to filter the list (essentially still creating a new list).</p><p>Before I try those, I want to test something…skipping an item while still in a loop. Namely, can I modify an index variable within a loop. <em>NOTE: I’m fairly confident it works; I’ve just never tried it!</em></p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/88f9c78053b7b9a6b05f3e2f835603b7/href">https://medium.com/media/88f9c78053b7b9a6b05f3e2f835603b7/href</a></iframe><p>WELL, THAT DIDN’T WORK! In retrospect, a simple “while” loop should do the trick. So, I’ll try the while loop! Also, I feel I’m getting stuck up on trying to save space by reusing the input list. Even if it is the naive approach, it’ll be easier to create a new list and populate it — I can always improve my solution later.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f30661e5a0ede95c303bb53b1e102cc/href">https://medium.com/media/3f30661e5a0ede95c303bb53b1e102cc/href</a></iframe><h3><strong>Hiccup #2</strong></h3><p>Getting some output finally, so that’s progress, but getting stuck on 2 issues. First, we’re having issues with getting the last item in the array. The second issue is occurring because the output still includes redundant directions.</p><p>I suspect I would simply make recursive calls on the function to address the 2nd issue. For the first, I’m thinking I’ll add a base case inside the while loop, though that seems clunky. Right now, I’m just trying to get something that works!</p><h3>A Working Solution!</h3><p>I added a short circuit for lists that won’t need pruning, and used a try/except block to resolve the issue of trying to get the “next” item when at the end. Lastly, I ended the function in a recursive call whenever the pruning process was successful at pruning the input list.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3211ee1dabfd2a23d3e890842900ea55/href">https://medium.com/media/3211ee1dabfd2a23d3e890842900ea55/href</a></iframe><p><strong>Reflection:</strong> All in all, this was a fairly straight forward challenge. I learned an obvious truth about indexing in a “for” loop. I’m still not sure if using the try/except block was the most elegant solution — it feels pretty clunky, to be honest. Lastly, the recursive call is my favorite part; using recursion always feels so good for some reason!</p><p>One of my favorite parts of Code Wars is getting to see solutions from other users! It’s been a HUGE help for improving the way I approach coding challenges. Let’s have a look at an ideal solution…</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f7103735ff054e1c0237c77114af458/href">https://medium.com/media/0f7103735ff054e1c0237c77114af458/href</a></iframe><h3>️🤦🏽‍♀</h3><p>THIS…logic…is so…beautiful! Here’s the pseudocode:</p><ol><li>Establish dictionary (Yay! I did something right! Although, I dislike this solution having the dictionary in the global space)</li><li>Establish an empty list to serve as the output</li><li>Loop through each item in the input list</li><li>If the output list is not empty and the last item in the output list matches the current item’s opposite direction, remove that last item in the output list</li><li>If the output list is empty or if the last item in the output list does NOT match the current item’s opposite direction, add the current item to the output</li><li>Return the output list</li></ol><p>Step #4 is the key component showcasing how critical the planning/brainstorming step is to creating sound logical steps. By checking for both the output list having an item AND a match to the PREVIOUS item, there’s no need to worry about the first or last items in the input list indexing out of range. Additionally, since the previous item is always under scrutiny, there no need for a recursive call.</p><p>Still so much to learn! I can’t wait for the next coding challenge 🤓</p><p>That’s it for now! What coding challenge platforms do you use? What’s the toughest coding challenge you’ve had? What did you do?</p><p>I’m looking forward to my next post, which will be cover a pivotal life lesson I had in college. Until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=463e9c3c333e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Starting my Data Science Journey!]]></title>
            <link>https://medium.com/@mahdis.pw/starting-my-data-science-journey-6e8b9935d31f?source=rss-1521aefe5b89------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e8b9935d31f</guid>
            <category><![CDATA[tech-tutorials]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[journey-of-life]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Mahdi Shadkam-Farrokhi]]></dc:creator>
            <pubDate>Tue, 18 Jun 2019 01:05:59 GMT</pubDate>
            <atom:updated>2019-06-18T01:05:59.729Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r946rEMaFmG8eKyshmfeMw.jpeg" /></figure><p>Welcome one and all to my very first blog post about my precarious journey into the field of tech!</p><p>I plan on making these blogs both a document of my journey into the tech space, but also as a repository for the tutorials I want to make as a way of passing on what I’ve learned.</p><p>For some context, I received a BS and masters in Biology. However, during my stint in the masters program, I took a class called “Bioinformatics” — researchers today can gather and record data at unprecedented scale and they need a way to clean, analyse, and interpret that massive amount of data.</p><p>While in the class, I discovered my passion for programming and technology. It was as if a new doorway had opened up allowing me to better understand problem solving, computational thinking, and programming in general.</p><p>I was hooked! After graduating, I began to teach myself how to program and even took an online Data Science course. However, much of what we did went way over my head; I still had a poor understanding of basic programming concepts.</p><p>So, naturally, I began practicing anything and everything (*cough* free *cough*) I could find online related to programming. Typically, this involved web development, which included HTML, CSS, and JavaScript.</p><p>In the meantime, I all but abandoned my masters degree and picked up the only tech-related work I could find…teaching coding to children. I already had some teaching experience and tech education is more forgiving about instructors not having Computer Science degrees. While teaching, I continued honing my technical skill on the side.</p><p>Eventually, I began working as the Curriculum Manager at a non-profit. The work was rewarding, but I continued to feel as if my passion was being neglected. I tried looking for work, but it was clear I still lacked the experience tech employers were looking for.</p><p>That’s when I ultimately came to the conclusion, in order for me to realize my vision of my future I would need dedicated and focused time to gain the experience needed to get my foot in the door. After 3 years of working at the organization and getting the curriculum finalized, it is finally time for me to move on.</p><p>I’m doubling down and going through an immersive course in Data Science, a blossoming field where I feel I can make a real impact. I hope to work in the biology + tech space, and I will continue to teach on the side (I love teaching!).</p><p>So, where did your career journey start? Where are you now? And where do you want to go from here?</p><p>That’s it for now! I think my next post will give some insight into my through process when tackling a coding challenge. Until next time!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e8b9935d31f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>