<?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 Emily Seieroe on Medium]]></title>
        <description><![CDATA[Stories by Emily Seieroe on Medium]]></description>
        <link>https://medium.com/@emilyseieroe?source=rss-670558e6e9a4------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*XFHv4qCsnjfSGGmqqwTerQ.png</url>
            <title>Stories by Emily Seieroe on Medium</title>
            <link>https://medium.com/@emilyseieroe?source=rss-670558e6e9a4------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 09:50:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@emilyseieroe/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 Properly Add Code Snippets to Your Medium Blog]]></title>
            <link>https://medium.com/@emilyseieroe/how-to-properly-add-code-snippets-to-your-medium-blog-2ddd0395951e?source=rss-670558e6e9a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ddd0395951e</guid>
            <category><![CDATA[code-snippet]]></category>
            <category><![CDATA[women-who-code]]></category>
            <category><![CDATA[blogging-tips]]></category>
            <dc:creator><![CDATA[Emily Seieroe]]></dc:creator>
            <pubDate>Sat, 02 Oct 2021 19:43:10 GMT</pubDate>
            <atom:updated>2021-10-02T19:43:10.038Z</atom:updated>
            <content:encoded><![CDATA[<p>Nothing is worse for me than when I go to a blog to get answers on code and I don’t see any code before the fold. The second worst thing is when I can’t copy/paste the code that is there. To add useful code snippets to your blog, please following these directions:</p><ol><li>Go to <a href="https://gist.github.com/">https://gist.github.com/</a> (I hope you’re already signed in github)</li><li>Add description and paste your code snippet into the text editor</li><li>Click “Create Public Gist”</li><li>From here, don’t use the given embed code because Medium smart enough to recognize the Gist URL</li><li>Copy the URL of the Gist and paste it in as an embed link</li></ol><p>Thanks for reading :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ddd0395951e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Nested Hash]]></title>
            <link>https://medium.com/@emilyseieroe/nested-hash-e11c40a158ff?source=rss-670558e6e9a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/e11c40a158ff</guid>
            <category><![CDATA[women-who-code]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[nested-hash]]></category>
            <dc:creator><![CDATA[Emily Seieroe]]></dc:creator>
            <pubDate>Sat, 02 Oct 2021 00:11:39 GMT</pubDate>
            <atom:updated>2021-10-02T00:11:39.869Z</atom:updated>
            <content:encoded><![CDATA[<p>A nested hash is a hash that has Key: Value pairs where the Value is Key: Value pairs. A hash inside a hash. Below is an example of a nested hash. The format of the Key: Value pairs are all the same in this example, however they are not required to be the same.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/54bce9647317f8d50e0923283f320f6f/href">https://medium.com/media/54bce9647317f8d50e0923283f320f6f/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e11c40a158ff" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Laptop as Server: Sharing an Undeployed Rails Application]]></title>
            <link>https://medium.com/@emilyseieroe/laptop-as-server-sharing-an-undeployed-rails-application-11e1665813ec?source=rss-670558e6e9a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/11e1665813ec</guid>
            <category><![CDATA[ip-address]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[localhost]]></category>
            <category><![CDATA[cloud-services]]></category>
            <dc:creator><![CDATA[Emily Seieroe]]></dc:creator>
            <pubDate>Thu, 21 Feb 2019 17:21:51 GMT</pubDate>
            <atom:updated>2019-02-21T17:58:16.716Z</atom:updated>
            <content:encoded><![CDATA[<p>This article explores how to use a personal computer as a server, allowing for undeployed rails applications to be shared across a network.</p><p><strong>What is a server?</strong></p><p>A server is a computer that is used to host a website or service. This is where the application code actually “lives” — all the little 1s and 0s that make a computer program what it is are being stored on a real computer. There are virtual computers that act as servers, as well as material computers that allows the physical data to be stored somewhere.</p><p><strong>Server Space for Hire</strong></p><p>Google (via Google Cloud Platform), Amazon (via AWS CloudFormation) and other data companies off server space for rent, which allows for easy set up of what is being called a cloud — a very cute name for a server connected to the internet. These companies house hardware (computers) that are storing software and sharing it on the web. When a user rents cloud space, the company providing the service blocks off a portion of its supercomputer and dedicates it to storing the code programs for each user client.</p><p><strong>Use your personal computer as server with your computer’s IP address to share your localhost:3000 rails applications with other computers on your wifi.</strong></p><p>Before deploying a program on the web using whichever host fits the project, it is possible to run the application in a browser using the computer’s internal server without deploying it to the internet. We do this by running rails s in the terminal.</p><p>rails s allows for the computer that the program is written on to host the program being run. This can be shared with other computers by creating a small virtual computer that functions as a server. This can be useful when you want to run the application on multiple computers in your network, for testing or demonstrative purposes. You can share the application with your phone in the same way, to test on mobile.</p><p>Simple execution:</p><p>1) On the primary computer (the server) find the IP by going to network preferences.</p><p>Check out the screenshot below to see where you will find this number.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*apfK1NMkQ0Lr2MIcC4uO9Q.png" /><figcaption>network preferences — find your IP address underneath Status: Connected</figcaption></figure><p>2) On the secondary computer replace localhost in the browser bar with the primary computer IP address. Using the example from the screenshot one would write 192.168.6.223:3000</p><p>Those are all the steps! Share you first-phase rails app with anyone in your network this way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11e1665813ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bundler, a Gem Among Gems]]></title>
            <link>https://medium.com/@emilyseieroe/bundler-a-gem-among-gems-1b1ccc3091e0?source=rss-670558e6e9a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/1b1ccc3091e0</guid>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[rubygems]]></category>
            <category><![CDATA[bundler]]></category>
            <category><![CDATA[bundle-install]]></category>
            <dc:creator><![CDATA[Emily Seieroe]]></dc:creator>
            <pubDate>Thu, 07 Feb 2019 16:00:33 GMT</pubDate>
            <atom:updated>2019-02-07T16:13:01.640Z</atom:updated>
            <content:encoded><![CDATA[<p>When writing a ruby program we incorporate code libraries (gems) into our code files that have already been created to make features that we might not have created ourselves. Gem dependencies are the gems that are required for a Ruby application to function. Bundler was created to help manage these dependencies by allowing a one-line installation for all the gems necessary to get our code to work.</p><p>Each program keeps track of its gem dependencies in a file called gemfile. If there is a gem we need to include in our program, we must record that in the gemfile.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*yMFB8qzN_D9aUCGNO6BTBw.png" /><figcaption>Gemfile code</figcaption></figure><p>Without Bundler, running the application on a new machine would require individual installation of each gem. Bundler checks the gemfile, gets the code from each gem, and incorporates it into our program with the simple terminal command bundle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*BYIGwU9jh1nLtKRPjoZNBw.png" /></figure><h4>How does bundler get installed?</h4><p>Being a gem itself, Bundler does need to be installed and it doesn’t magically install itself — you have to write `gem install bundler` to get the bundler going. Bundler has been considered so relevant that Ruby 2.6 is going to have bundler included already, so no need to install it separately.</p><p>Keep using bundle to incorporate all of your gem dependencies in the most quick and easy way, and appreciate the efficiency this gem allows us in our coding adventures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1b1ccc3091e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How ActiveRecord Acts as a Ruby Abstraction to Replace Join Methods in Many to Many Relationships]]></title>
            <link>https://medium.com/@emilyseieroe/how-activerecord-acts-as-a-ruby-abstraction-to-replace-join-methods-in-many-to-many-relationships-68313f3a5f68?source=rss-670558e6e9a4------2</link>
            <guid isPermaLink="false">https://medium.com/p/68313f3a5f68</guid>
            <category><![CDATA[activerecord]]></category>
            <category><![CDATA[ruby]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[rubygems]]></category>
            <category><![CDATA[abstraction]]></category>
            <dc:creator><![CDATA[Emily Seieroe]]></dc:creator>
            <pubDate>Thu, 24 Jan 2019 03:17:56 GMT</pubDate>
            <atom:updated>2019-01-24T19:58:27.657Z</atom:updated>
            <content:encoded><![CDATA[<p>When creating a many-to-many relationship in our ruby code, there are six basic methods we check off in order to represent the relationship model. In this piece, I will explore how these methods can be replaced by ActiveRecord commands.</p><h4>What is ActiveRecord</h4><p>ActiveRecord is a gem (Ruby library) that provides Object Relational Mapping (ORM) to our Ruby codebase using inheritance. Object Relational Mapping is when you are relating elements in a data spreadsheet to elements of a Ruby program. Each row of the spreadsheet is made into a Ruby object, and you can also take a Ruby object and insert it as row into the spreadsheet. ActiveRecord also abstracts the methods that we use to represent many-to-many in our Ruby classes.</p><p>Many-to-many relationships are a staple in all code languages and Ruby is no exception. Let’s take a classic three-model many-to-many relationship and look at the methods we use to illustrate them. We are going to use the classes of restaurants, customers and restaurant reviews in our example, where restaurant has many reviews and customer has many reviews, creating a many-to-many relationship between customer and restaurant through reviews.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*tCElsJgwJQ_O6rCOk1kxVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*zmxAbPqo8quQFw27Q3GVLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*0KOCY2s1araNtb2G07Acfg.png" /><figcaption>Ruby code of Many-to-Many relationships before applying ActiveRecord</figcaption></figure><p>As the join table, the Review class is initialized with an instance of a restaurant and an instance of a customer. Restaurant class has two methods, one linking it to the Review class and one linking it to Customer class through reviews. Customers has similar two methods, one linking it to Review class and another linking it to Restaurant class through reviews.</p><p>ActiveRecord abstracts these six methods into a few lines of code using belongs_to and has_many :through methods.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/320/1*ssIu4FAAuWJKP0AeN5M84g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/588/1*IU0qH0U_iz49C9RuTRY2OQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*wofWVTRXqkbDEBczEtSTpQ.png" /><figcaption>ActiveRecord abstractions for many-to-many relationships</figcaption></figure><p>In these examples, ActiveRecord acts as a superclass and allows you to inherit traits into your program, including has_many , belongs_to and has_many: :through relationships. ActiveRecord has many use cases for our Ruby codebase and replacing join methods is just one of them.</p><p>Does anyone want to sketch out the relationship between ActiveRecord and Ruby code improvements? I was thinking has_many through: code_snippets, or has_many through: data pieces.</p><p>Comment your thoughts below.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=68313f3a5f68" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>