<?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 Faizan Iqbal on Medium]]></title>
        <description><![CDATA[Stories by Faizan Iqbal on Medium]]></description>
        <link>https://medium.com/@f.iqbal.w?source=rss-a2e6ea67eba4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*cbcW_G08ovZylqF6.jpg</url>
            <title>Stories by Faizan Iqbal on Medium</title>
            <link>https://medium.com/@f.iqbal.w?source=rss-a2e6ea67eba4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 07:39:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@f.iqbal.w/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[Easy way to visualize your Active Record models with the ERD gem]]></title>
            <link>https://medium.com/@f.iqbal.w/easy-way-to-visualize-your-active-record-models-with-the-erd-gem-5665235fb9c9?source=rss-a2e6ea67eba4------2</link>
            <guid isPermaLink="false">https://medium.com/p/5665235fb9c9</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Faizan Iqbal]]></dc:creator>
            <pubDate>Wed, 06 Mar 2019 06:36:00 GMT</pubDate>
            <atom:updated>2019-03-06T06:38:46.071Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/571/0*G_dKMtZyBRg9leQ3.png" /></figure><h4>What is ERD?</h4><p>While using Active Record you constantly have to keep track of your models and sometimes need to draw them out too. This is useful before working on an application and helps plan out how all the relationships will work with each other. But after you’ve set everything up in your code it can get hard to see if all the relationships are connected properly without using seed data and testing it out yourself. This is all taken care of and made easier with the ERB gem. ERB stands for entity relationship diagram, which basically means there are a set of tables that represent the models and how they relate to each other. This is especially useful for applications that have a large number of models and can help you stay organized and keep track of how everything is connected to each other.</p><h4>Setup</h4><p>Before you get started this gem requires you to download Graphviz 2.22+ to see the tables, which can be done with brew install graphviz. Once thats done, go into your gem file and add gem &quot;rails-erd&quot;and run bundle install.</p><h4>Generating Diagrams</h4><p>You should now be ready to use the gem by running rake erd. A new pdf file should be created in your application folder that has an ERB model similar to the one below with the attributes you specified in your models.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ssUzhW62yc2Y21H2_wpfCQ.png" /><figcaption>running: rake erd</figcaption></figure><p>You can also customize how the ERB models are setup by running different commands, which can be found at <a href="https://voormedia.github.io/rails-erd/">https://voormedia.github.io/rails-erd/</a>. For example running rake erd attributes=foreign_keys,primary_key will show where all the primary and foreign keys are held in the tables.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6I0jA7Bo-SI-wRff0x73Kw.png" /><figcaption>running: rake erd attributes=foreign_keys,primary_key</figcaption></figure><h4>Complex Diagrams</h4><p>The examples above are for a very simple application with only have five models, but if you are working with a more complex application the tables will look very different like the one below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/0*zITAi6zRQTb0-MZ0.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5665235fb9c9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[“Taking care of yourself in a #{coding} bootcamp”]]></title>
            <link>https://medium.com/@f.iqbal.w/taking-care-of-yourself-in-a-coding-bootcamp-85fe9bb9c135?source=rss-a2e6ea67eba4------2</link>
            <guid isPermaLink="false">https://medium.com/p/85fe9bb9c135</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Faizan Iqbal]]></dc:creator>
            <pubDate>Fri, 15 Feb 2019 14:49:45 GMT</pubDate>
            <atom:updated>2019-02-15T14:49:45.746Z</atom:updated>
            <content:encoded><![CDATA[<p>A couple months ago I was looking into coding bootcamps to make a career change and chose Flatiron School. I made sure to do as much research as possible about what we would be learning and how to prepare. I thought I was ready since I had completed the pre-work and also did some reading on my own about coding for beginners. All of this preparation is useful and needed but personal health is also very important and can hurt your progress if you ignore it. Coding bootcamps condense a large amount of information into a short period of time making it very intense and at some point you may feel overwhelmed. Here are some tips on how to keep a clear mind, be focused, and stay healthy.</p><p>1. Exercise</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FvuIVvW0NsWBzy%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fexercise-funny-weird-vuIVvW0NsWBzy&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FvuIVvW0NsWBzy%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="245" frameborder="0" scrolling="no"><a href="https://medium.com/media/f0426fc4d46570afe91a2a7d8945c5a1/href">https://medium.com/media/f0426fc4d46570afe91a2a7d8945c5a1/href</a></iframe><p>You hear this all the time but in this case it’s more important than usual since you will be sitting down and staring at a computer for most of the day. Not only will exercise keep you healthy, but it’s also a great stress reliever and you’ll probably need that.</p><p>2. Take a break and walk away from your computer</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FxjypmYUF005usXdy0C%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fkimsconvenience-cbc-kims-convenience-xjypmYUF005usXdy0C&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FxjypmYUF005usXdy0C%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="244" frameborder="0" scrolling="no"><a href="https://medium.com/media/ce0f536f67365e8afeff2793a441cf96/href">https://medium.com/media/ce0f536f67365e8afeff2793a441cf96/href</a></iframe><p>I personally had a hard time with this one while working on a project recently. I ran into a lot of issues with my code and kept trying to fix it all at once without realizing how much time had passed. I was stuck on one particular error for almost an hour when I finally decided to take a break and clear my mind. After coming back and looking everything over again, I quickly realized what I was missing in just a couple minutes. So if you feel like you’re stuck and can’t figure it out, it’s probably time for a break.</p><p>3. Eat something!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Ffo6vEEeAutQWI%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Ffood-eating-eat-fo6vEEeAutQWI&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2Ffo6vEEeAutQWI%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="238" frameborder="0" scrolling="no"><a href="https://medium.com/media/3842a0990c37a27e56a9c48c337bed41/href">https://medium.com/media/3842a0990c37a27e56a9c48c337bed41/href</a></iframe><p>This ties in with taking a break, make sure you don’t get carried away with your code and completely forget to eat. On the same project I mentioned earlier I was so focused on trying to make my application run without any bugs that I worked through my lunch and completely forgot to eat. I was able to make some progress but taking a break, eating, and coming back to it would have helped more.</p><p>4. Get enough sleep</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2F3o7aDbXM1Sa3S3mVUc%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Fnfl-football-3o7aDbXM1Sa3S3mVUc&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2F3o7aDbXM1Sa3S3mVUc%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="222" frameborder="0" scrolling="no"><a href="https://medium.com/media/f4b79bb81dd8d38b5623452a437b23bd/href">https://medium.com/media/f4b79bb81dd8d38b5623452a437b23bd/href</a></iframe><p>This is probably the most important of all the suggestions here. Going through a coding bootcamp is tough and at the end of each day you’ll feel exhausted. Getting enough sleep is the only way you’ll be able to fully recover and help prepare you for the next day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=85fe9bb9c135" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>