<?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 Bhumyamka Yala on Medium]]></title>
        <description><![CDATA[Stories by Bhumyamka Yala on Medium]]></description>
        <link>https://medium.com/@bhumyamka?source=rss-4b3ae2c69d9f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*gOJFnEZOQDVXzl5c.jpg</url>
            <title>Stories by Bhumyamka Yala on Medium</title>
            <link>https://medium.com/@bhumyamka?source=rss-4b3ae2c69d9f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 02:52:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bhumyamka/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[Create Simple Online Store Project using Rails + Docker Part 1]]></title>
            <link>https://medium.com/@bhumyamka/create-first-rails-project-using-docker-part-1-50071abf7de1?source=rss-4b3ae2c69d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/50071abf7de1</guid>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[first-project]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[ruby]]></category>
            <dc:creator><![CDATA[Bhumyamka Yala]]></dc:creator>
            <pubDate>Mon, 12 Feb 2018 23:31:10 GMT</pubDate>
            <atom:updated>2018-02-16T11:33:43.858Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article , you will learn how to create simple online store project using rails + docker and then for database , we’re using postgreSQL.</p><h3>Introduction</h3><p><strong>So , What is Docker ?</strong></p><p>Docker allows you to create , deploy and run your application easier using containers. Docker has image that contains codes ,runtime and system libraries.</p><p><strong>Docker != VM ?</strong></p><p>Some people think that docker is same with VM . But its different .</p><blockquote><a href="https://opensource.com/resources/what-docker">Docker is like a VM , but its unlike a VM</a></blockquote><p>Lets see the different :</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/638/1*qUM_r-SX5L4eubbmyJiH1g.png" /><figcaption>Source : <a href="https://i.stack.imgur.com/pG94I.png">https://i.stack.imgur.com/pG94I.png</a></figcaption></figure><p><em>The Container removed hypervisor layer </em>to reduce hardware emulation and complexity. Our Application is running on the host OS .</p><p><strong>Isolate our application ? Why not ?</strong></p><p>We talk about the lack of resource ? We talk about how to upgrade the version of ruby ? It’s all possible with Docker . But docker is not supported for 32 bit architecture .</p><p>I’ll explain more about Docker on my next article.</p><h3><strong>Let’s get started</strong></h3><h4>Prerequisites :</h4><p>First , we need to install docker to our machine. You can download at here :</p><p><a href="https://www.docker.com/get-docker">Get Started with Docker</a></p><p>And you can find the docs here :</p><p>For Linux User : <a href="https://docs.docker.com/linux/started/">https://docs.docker.com/linux/started/</a></p><p>For Mac User : <a href="http://docs.docker.com/mac/started/">https://docs.docker.com/mac/started/</a></p><p>For Windows User : <a href="http://docs.docker.com/windows/started/">https://docs.docker.com/windows/started/</a></p><h4>Create New Rails Project</h4><p>After installing the Docker , lets create rails application . Assuming i’m using Mac . Thanks to <a href="https://github.com/IcaliaLabs/guides/wiki/Creating-a-new-Rails-application-project-with-Docker">Icalia Labs</a> .</p><p>First we need to create a directory called <strong><em>rubycast_docker</em></strong>:</p><blockquote>mkdir rubycast_docker</blockquote><p>Then ,</p><blockquote>docker run — rm -v “$(pwd)”:/usr/src/app -w /usr/src/app -ti ruby:2.3.1 bash ; cd rubycast_docker</blockquote><p><strong>Notes:</strong></p><p><strong>v “$(pwd)”:/usr/src/app : </strong>mounting our current directory inside the container’s /usr/src/app directory.</p><p><strong>w /usr/src/app : </strong>start our container in this directory.</p><p><strong>ruby:2.3.1 bash</strong> : i’m using ruby version 2.3.1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*3Z3IoCUM2NNPrc71iqW38Q.png" /></figure><h4>2.1 Setting Up Our Project</h4><p>After finishing download , we’ll redirect into inside our new project .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/813/1*G4WoLAIszPNPso9DtwJ_zg.png" /><figcaption>inside our project</figcaption></figure><p>And we need to install rails first . Type :</p><blockquote>gem install rails</blockquote><p>After successfully , we create first rails project :</p><blockquote>rails new rbcast_docker — database=postgresql — skip-bundle</blockquote><p>Then type “exit” (without quotation mark) from the container. And we’ll return to our original bash .</p><h4>2.2 Setting Up Development Environment</h4><p>After we create project on the container , we continue to create development environment .</p><p>First , Create dev.DockerFile at our root project.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0fc9bacf96e0456922033136b89c5d24/href">https://medium.com/media/0fc9bacf96e0456922033136b89c5d24/href</a></iframe><p>Okay , i’ll continue to next article , Creating First Rails Project using Docker .</p><p>See You soon :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50071abf7de1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I Choose Rails rather than other frameworks ?]]></title>
            <link>https://medium.com/@bhumyamka/why-i-choose-rails-rather-than-other-frameworks-c7001811a682?source=rss-4b3ae2c69d9f------2</link>
            <guid isPermaLink="false">https://medium.com/p/c7001811a682</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Bhumyamka Yala]]></dc:creator>
            <pubDate>Mon, 09 Oct 2017 04:21:32 GMT</pubDate>
            <atom:updated>2017-10-09T04:25:39.607Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CWS7lRMKisVUNfYZJMkRrA.jpeg" /><figcaption>an introduction to rails part 1</figcaption></figure><p>When I started to learn web development , I’ve choosen Ruby on my primary language and rails for my framework . I interested with ruby , because the performance of Ruby is better than PHP .<br>I didn’t explain more about ruby , but from this article I just wanna share why I choose rails rather than other frameworks . From buttom , ruby is very simple language as we read English language and of course Ruby is support for OOP .<br>Rails is MVC oriented , so you can develop a web app more structured .<br>As you can see that , Rails offers developer that they can develop quickly because of dozens of gem .<br>For example , if you want to create a controller you can just type :</p><blockquote>Rails g controller your_controller</blockquote><p>And that will generate new controller called your_controller</p><p>Notes: g is generate</p><h4><strong>About the myth of Rails is Slow</strong></h4><p>Many people talk about “Why Ruby on Rails is Slower?”</p><p>I think that is only myth , <a href="https://www.airpair.com/ruby-on-rails/performance">According airpair</a> , #1 thing the reason why any Ruby Application is slow because of the Memory . With the memory optimization , rails can speedup to 80 % .</p><p>So , why memory consumption is very important ? simple answer is “more allocate more you can do” . Ruby uses Garbage collection to collect unused object automatically .</p><p>GC is design to make your life easier . It’s because no more memory management and memory leaks .</p><h4><strong>So, how can I speedup my Rails app ?</strong></h4><p>There are 3 ways to make your app faster :</p><p>- Scaling</p><p>- Caching</p><p>- Code Optimization</p><p>Scaling the meaning is <a href="https://rubygarage.org/blog/ruby-on-rails-is-scalable">how we serving data</a> to our customer lets say we have single server and now we have 1,000 request per hours , tomorrow we have 100,000 request per hours . The problem is our single server load increases and become slower . That’s why scaling is one of important things .</p><p>The second is caching , by default rails provides <a href="http://guides.rubyonrails.org/caching_with_rails.html">fragment caching</a> and only enabled in your production environment and if you want to enable to your development environment you can set it by manual. Caching means to store content generated during the request-respond cycle and to reuse it when responding to similar requests. Rails provide you “set of box tools” for caching . So , you can use it for your web app.</p><p>And the third is <a href="https://infinum.co/the-capsized-eight/top-8-tools-for-ruby-on-rails-code-optimization-and-cleanup">Code Optimization</a> , no other easy way to speedup your rails app is using code-optimization . With less code , you can speedup your Rails app , why ? This is because you can build your app quickly . One of tool that you can use is Traceroute . Traceroute is a route cleaning tool for Rails Application .It provides simple rake task for checking which Routes are mapped to non existing controller action and finds out which controller actions are not reachable.</p><p><strong>Conclusion</strong></p><p>Rails offers developer create their app quickly . And of course without losing performance .</p><p>And this is not the last , in my other opinion I will give an example of “Rails caching using redis”.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c7001811a682" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>