<?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 Pubudu Kodikara on Medium]]></title>
        <description><![CDATA[Stories by Pubudu Kodikara on Medium]]></description>
        <link>https://medium.com/@THpubs?source=rss-f1ca611aa8d9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dLk2B3tY5riPCuyS1OgaMQ.jpeg</url>
            <title>Stories by Pubudu Kodikara on Medium</title>
            <link>https://medium.com/@THpubs?source=rss-f1ca611aa8d9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 22 Nov 2026 08:22:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@THpubs/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[You Know How To Code… Let’s Learn How to Improve it!]]></title>
            <link>https://medium.com/sri-lankan-web-developers-community-blog/you-know-how-to-code-let-s-learn-how-to-improve-it-52189c556667?source=rss-f1ca611aa8d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/52189c556667</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Pubudu Kodikara]]></dc:creator>
            <pubDate>Tue, 12 Apr 2016 09:49:38 GMT</pubDate>
            <atom:updated>2016-04-12T09:49:38.683Z</atom:updated>
            <content:encoded><![CDATA[<p>You Know How To Code… Let’s Learn How to Improve it!</p><p>Normally we read, attend to classes or watch videos in order to learn something. Recently I gave you some sites which teach you to code by letting you do the work by your self. The best way to learn is by doing it!</p><p>Even in this new interactive method there’s a problem. They teach us to write a program in one way and we will pass if we write it in that exact same way. <strong>But what if we can optimize our code? What if we can do it in a better way and get the same results? What if we can have someone review our code, point out the errors and show us how to improve it?</strong></p><h3>Say hello to <a href="http://exercism.io/">Exercism.io</a></h3><p>Exercism is great way for you to improve yourself. Basically it’s a huge community of developers solving code challenges and reviewing other people’s solutions. ( Remember it’s Exercism not Exorcism which means chasing devils :-O )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*tKogFv54Go1VGFAsMBxBlA.jpeg" /></figure><p>First you need to sign up to the service and install the desktop client. Using the Exercism client you can get the first set of hello world exercises. It will give you a bunch of folders for all the languages it support. You need to choose the ones you need to follow. Each language folder have a hello world app. There’s only the test file and a guide. ( If you are not familiar with <a href="https://en.wikipedia.org/wiki/Test-driven_development">test driven development</a> check this article. Normally you test the software later. But in here you write the test describing the software and then write the code to pass the test. ) Now you have to write the code and make sure the tests are passing.</p><p>When you have finished solving the challenge, simply submit the code and get the next challenge. Exercism will guide you through all these steps. Their guide is simple and easy to understand so no point explaining it in here.</p><p>After you submit your code people can come and review it. People will vote for your code and comment on it. So you can improve and re-submit. Likewise you can comment on other people’s code.</p><h3>A special section for Sri Lankan Web Developers</h3><p>In Exercism we can create teams to group people together. People in that team can help each other very easily. So, I created a team for Sri Lankan Web Developers in here : <a href="http://exercism.io/teams/slwdc">http://exercism.io/teams/slwdc</a>. Currently they haven’t updated the documentation describing what are Teams so I do not know whether you can request to join a team or not. I think you can make a request and I have to approve. If there’s no way to request, simply mention your Exercism username in the comments and I will add you to the team.</p><p><strong>There are many ways to write code and get the result. There are right ways and wrong ways. In this way you can learn how to write the code in the right way and optimize it!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=52189c556667" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sri-lankan-web-developers-community-blog/you-know-how-to-code-let-s-learn-how-to-improve-it-52189c556667">You Know How To Code… Let’s Learn How to Improve it!</a> was originally published in <a href="https://medium.com/sri-lankan-web-developers-community-blog">The SLWDC Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is the Best Language to use for Web Development? (Language War)]]></title>
            <link>https://medium.com/sri-lankan-web-developers-community-blog/what-is-the-best-language-to-use-for-web-development-language-war-453476b168cd?source=rss-f1ca611aa8d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/453476b168cd</guid>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Pubudu Kodikara]]></dc:creator>
            <pubDate>Tue, 12 Apr 2016 09:45:33 GMT</pubDate>
            <atom:updated>2016-04-12T09:45:33.815Z</atom:updated>
            <content:encoded><![CDATA[<p>What is the Best Language to use for Web Development? (Language War)</p><p>In the past few months in our web developers community, people started to declare war on each other. It was a language war. People think whatever they use is the best and whatever the others use is crap. I think it’s time to sign a peace treaty. Before that, let’s see what’s the real problem…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*ykwg17hGJNYZD-lon4xbaQ.jpeg" /></figure><h3>There are many great languages</h3><p>If you are a web developer then you have a bunch of great languages to choose from. Ruby, PHP, Python, Java, Node.js, etc. Normally we learn one and then call all the others crap. This is completely wrong.</p><h3>There’s no overall best. There’s best for the current situation</h3><p>Each of these languages have their own pros and cons. For some situations, Ruby might be the best. For another Node.js might be the best. So many pro developers learn several languages. Once I tried to compare Emberjs and Angular. Tried to find the best solution. After some research, the final conclusion is there’s no best option. It depends on your needs!</p><p>If you want to criticize another language you must have two qualifications:</p><ul><li>You must have worked with the language you are criticising.</li><li>You must have worked with another language that you want to compare.</li></ul><p>A big problem I saw with these people is that many don’t a have a knowledge on the thing they criticize.</p><h3>World is round and people are different</h3><p>Remember that every single living being in this world is unique. You might see one language as the best and another person might have a completely different view. Both can be right. So please learn to respect other people’s views.</p><h3>Try to use a framework instead of a pure language</h3><p>Many people still use just a pure language to build their apps. You must try a framework like Rails, Code Igniter, Meteor, etc because these people have already perfected the core language and made it easy for us to use. Their code is well tested and stable. In the recent JS Meetup Mr. Chandika from Creatly said why build from scratch when we can use someone else’s well tested and proven code?</p><h3>Devided we fall and united we stand</h3><p>Please do not devide and fight like kids. Stay together. Share your knowledge. Try to teach and share not critisize and fight!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=453476b168cd" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sri-lankan-web-developers-community-blog/what-is-the-best-language-to-use-for-web-development-language-war-453476b168cd">What is the Best Language to use for Web Development? (Language War)</a> was originally published in <a href="https://medium.com/sri-lankan-web-developers-community-blog">The SLWDC Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 +1 Best Places to Start Learning how to Code!]]></title>
            <link>https://medium.com/sri-lankan-web-developers-community-blog/3-1-best-places-to-start-learning-how-to-code-1d9059aa2af2?source=rss-f1ca611aa8d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d9059aa2af2</guid>
            <category><![CDATA[learning-to-code]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Pubudu Kodikara]]></dc:creator>
            <pubDate>Tue, 12 Apr 2016 09:43:40 GMT</pubDate>
            <atom:updated>2016-04-12T09:43:40.169Z</atom:updated>
            <content:encoded><![CDATA[<p>3 +1 Best Places to Start Learning how to Code!</p><p>Most of us in Sri Lanka follow a diploma, study some HTML and CSS in a course and try to become a web developer. The problem is, in most of the places they teach old and outdated stuff. Sometimes even the teacher’s don’t know what they are teaching! But, did you knew that there are really good resources (some are free) online which you can use to become great developers?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*Kk1bEOjNn4bYxxC164yjgg.jpeg" /></figure><h3>#1 Code Acadamy</h3><p>This is one of the top free resources you have. If you have only used videos and books to learn stuff in the past you might be surprised on how advanced technology is! <a href="http://www.codecademy.com/">Code Acadamy</a> will guide you step by step on how to learn a language. In one step, it will teach you something and then let you do it yourself! Yes, they let you code right in the browser and they will automatically check for errors. This method is more effective than videos and books.</p><p>If you are a beginner, Code Acadamy is a really good place to begin with. It has most of the basic stuff and a bit advanced courses. So, you pick what you need to learn and then go for it. If you are a beginner, please complete HTML, CSS and JavaScript courses first!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfjQ7XaMNQNc%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fembed%2FfjQ7XaMNQNc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FfjQ7XaMNQNc%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4bc7c23b50e95bdf6c5a36b8abe448cc/href">https://medium.com/media/4bc7c23b50e95bdf6c5a36b8abe448cc/href</a></iframe><h3>#2 Tree House</h3><p>This is also a popular option aimed at beginners. <a href="https://teamtreehouse.com/">Tree House</a>doesn’t focus only on coding. They also teach about best practices, methods and design concepts. They don’t have an interactive interface like in Code Acadamy. But they have great videos and extra resources to assist you.</p><p>Tree House is not free. But it has a 30-day free trial. It might be enough to learn some great stuff! So, give it a try!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWnr8LRO7CiA%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWnr8LRO7CiA&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWnr8LRO7CiA%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/b10b1d30f25b8477a4eb4702d650fdbb/href">https://medium.com/media/b10b1d30f25b8477a4eb4702d650fdbb/href</a></iframe><h3>#3 Code School</h3><p>After learning the basics, head right into Code School. They can guide you from there onwards. Code School focus on more advanced stuff, so if you are very new, it might be hard to follow. The great thing about <a href="https://www.codeschool.com/">Code School</a> is, they have both video and interactive learning facilities. First they teach you through the video and then they give you exercises to test your skills.</p><p>A very good resource if you are trying to become a pro web developer. Many people recommend it. But, unfortunately, it’s not free! some of the courses are free, but you have to pay for the good stuff! If you can find the money, it’s a great place to start!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMvyG_ODng3w%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMvyG_ODng3w&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMvyG_ODng3w%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/279af99ef5ace918c0c38aa5e3ba0a9c/href">https://medium.com/media/279af99ef5ace918c0c38aa5e3ba0a9c/href</a></iframe><h3>#4 Web Developers Community Sri Lanka</h3><p>Finally, you can always come here! In our <a href="https://www.facebook.com/groups/slwdc/">Facebook Group</a>, <a href="https://www.youtube.com/channel/UCcBlT_Ga5CbS_Co8cpRiNDg">YouTube channel</a>, <a href="https://soundcloud.com/slwebdeveloperscommunity">SoundCloud channel</a> and in this Blog, we will keep posting useful content for you. We will write content for both Beginners and Experts and most of them will be specially tuned for us Sri Lankans! කොහොමද වැඩේ ? එළකිරි නේ?</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fizqp2vVxxDM%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dizqp2vVxxDM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fizqp2vVxxDM%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3e726f659c93510bbac5b1f9ae6edee7/href">https://medium.com/media/3e726f659c93510bbac5b1f9ae6edee7/href</a></iframe><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FeTV-HW0tdiU%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DeTV-HW0tdiU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FeTV-HW0tdiU%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/c3062befadd5d0c24242ae25db1fa7dd/href">https://medium.com/media/c3062befadd5d0c24242ae25db1fa7dd/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d9059aa2af2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sri-lankan-web-developers-community-blog/3-1-best-places-to-start-learning-how-to-code-1d9059aa2af2">3 +1 Best Places to Start Learning how to Code!</a> was originally published in <a href="https://medium.com/sri-lankan-web-developers-community-blog">The SLWDC Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ayubowan and Welcome Fellow Web Developers!]]></title>
            <link>https://medium.com/sri-lankan-web-developers-community-blog/ayubowan-and-welcome-fellow-web-developers-4f4f6cf7d082?source=rss-f1ca611aa8d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f4f6cf7d082</guid>
            <category><![CDATA[slwdc]]></category>
            <category><![CDATA[sri-lanka]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Pubudu Kodikara]]></dc:creator>
            <pubDate>Tue, 12 Apr 2016 09:35:06 GMT</pubDate>
            <atom:updated>2016-04-12T09:35:06.130Z</atom:updated>
            <content:encoded><![CDATA[<p>Ayubowan and Welcome Fellow Web Developers!</p><p>Today we introduce you to the Sri Lankan Web Developers Community Blog, a place where you can learn almost everything about the modern web development industry.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jqb9e-VLQg510dhdI8L0WQ.jpeg" /></figure><h3>Why did we formed the Web Developers Community in Sri Lanka?</h3><p>At the moment, we think our Sri Lankan web industry is <strong>heading in the wrong direction.</strong> As we see many great minds live in the darkness. The newcomers learn very old technologies and outdated coding practices in a limited number of programming languages. So, they develop websites for a very low cost with poor quality.</p><p><strong>The reason is lack of…</strong></p><ul><li>Proper training</li><li>Proper guidance</li><li>Knowledge in the industry</li><li>Interest and enthusiasm</li><li>Creativity</li><li>And curiosity…</li></ul><h3>So that’s why we started this community to make a change in the web industry in our country</h3><p><strong>So we want to…</strong></p><ul><li>Bring all the great minds together</li><li>Share knowledge</li><li>Solve common problems</li><li>Discuss new technologies</li><li>Help each others</li><li>Build stuff together</li></ul><p><strong>To make sure the next Facebook, the next Google, the next Apple will be born from Sri Lanka!</strong></p><p>Don’t think that we are bluffing, <strong>Sri Lankans can do almost anything!</strong></p><p>So as the initial stage we got together in our <a href="https://www.facebook.com/groups/slwdc/">Facebook Group</a> and we launched our web site <a href="http://webdevelopers.lk/">webdevelopers.lk</a> as the the second stage of this revolution of Sri Lankan web developers. Moving ahead big time, we launched our own <a href="https://www.youtube.com/playlist?list=PLDaImP0j0tqnt1P9xOvTYtYNtqDJMBF5f">video series</a> and a audio podcast series (You can find the podcast in <a href="https://www.youtube.com/playlist?list=PLDaImP0j0tqla-5sPhgGTs-Bo1R4pvg4-">YouTube</a> and in <a href="https://soundcloud.com/slwebdeveloperscommunity">SoundCloud</a>). So we meet in this blog as a another step ahead in our master plan… So we Welcome you all to join us and continue this walk together strongly better than ever… as <strong>Sri Lankan Web Developers!!!</strong></p><h3>About this blog…</h3><p>This is the first step of our master plan. A team of well experienced web developers will run this blog. You’ll be able to learn new tips, tricks &amp; specially industry best practices, learn about new technologies, expand your programming knowledge. We will help you to step out from your dark den and step into the light.</p><p><strong>So simply, let us help you here on!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f4f6cf7d082" width="1" height="1" alt=""><hr><p><a href="https://medium.com/sri-lankan-web-developers-community-blog/ayubowan-and-welcome-fellow-web-developers-4f4f6cf7d082">Ayubowan and Welcome Fellow Web Developers!</a> was originally published in <a href="https://medium.com/sri-lankan-web-developers-community-blog">The SLWDC Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Install Ruby on Rails 4 in Linux]]></title>
            <link>https://medium.com/leafy-code-blog/how-to-install-ruby-on-rails-4-in-linux-ebf402a8ae40?source=rss-f1ca611aa8d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/ebf402a8ae40</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[rails]]></category>
            <dc:creator><![CDATA[Pubudu Kodikara]]></dc:creator>
            <pubDate>Sun, 06 Dec 2015 02:51:38 GMT</pubDate>
            <atom:updated>2016-04-01T11:29:54.697Z</atom:updated>
            <content:encoded><![CDATA[<p>Yesterday we talked about the <a href="http://blog.leafycode.com/php-vs-ruby-on-rails/">advantages of using Ruby on Rails</a>. After reading it, some of you might want to get started right away. So, today we are going to see how to install the latest version of Rails on a Linux machine. We will show you how to do it in Ubuntu. For others its mostly the same way (simply change the package manager). Now we are going to use <a href="https://rvm.io/">RVM</a> to manage Ruby. With RVM you can easily manage several versions of Ruby on your machine.</p><ul><li>First of all, open the Terminal and go to <strong>Edit &gt; Profile Preferences</strong> and select the tab <strong>Title and Command</strong></li><li>In there tick <strong>Run command as a login shell</strong> and Close</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*4uUfDyB5aQN8z5mZ.jpg" /></figure><ul><li>Now we need the latest packages of Git (if you haven’t used it you better try it now) and Nodejs. The versions in the Ubuntu repository is outdated.</li></ul><p>So, lets add some ppas :</p><pre>sudo add-apt-repository ppa:git-core/ppa<br>sudo apt-add-repository ppa:chris-lea/node.js sudo apt-get update</pre><ul><li>Next we need to install Git, Nodejs (required for Rails development) and some other dependencies…</li></ul><p>with these commands :</p><pre>sudo apt-get install git nodejs build-essential curl libxslt-dev libxml2-dev libsqlite3-dev</pre><ul><li>When you install Rails its going to install a lot of documentation files for each gem. You might not want this to happen!</li></ul><p>So let ask it not to do that by creating a .gemrc file in your home directory…</p><pre>gedit ~/.gemrc</pre><p>and adding the following lines to that file…</p><pre>install: --no-rdoc --no-ri update: --no-rdoc --no-ri</pre><ul><li>You can easily download Ruby from the package manager. But that Ruby version is outdated. We will install the latest version of Ruby using RVM.</li></ul><p>First, lets install RVM (<strong>Run them as a normal user account. Not root.</strong>) :</p><pre>curl -sSL <a href="https://get.rvm.io/">https://get.rvm.io</a> | bash -s stable</pre><ul><li>Now close and open your Terminal to load the rvm source.</li></ul><p>After that install the RVM requirements :</p><pre>rvm requirements</pre><ul><li>Next lets install Ruby! First get the latest ruby version number from here : <a href="https://www.ruby-lang.org/en/downloads/">https://www.ruby-lang.org/en/downloads/</a> . Then use that to install ruby. At the time of writing, the latest Ruby version is 2.1.2.</li></ul><p>So here’s how I will install it :</p><pre>rvm install 2.1.2</pre><p>Finally lets install Rails :</p><pre>gem install rails</pre><p>Lets create your first app :</p><pre>rails new test_app</pre><ul><li>This will create your application with all the basic requirements. Next we will install the default plugins ( gems ) and…</li></ul><p>Run the development server to test it :</p><pre>cd test_app bundle install rails server</pre><p><em>Note : You can use rails s instead of rails server</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*3M9dBOPIKs1exuOL.jpg" /></figure><p>If you can see something like the above screen shot, you have successfully installed Ruby on Rails! Congratulations!</p><h3>Next steps… Learn Ruby on Rails :</h3><p>You might think you first need to learn Ruby before learning Rails. No that’s not true. You can first learn Rails if you want. Here are some great tutorials for you to start :</p><ul><li><a href="http://www.railstutorial.org/book">http://www.railstutorial.org/book</a> ( Highly recommend. This is what I used. And its free )</li><li><a href="https://www.codeschool.com/courses/rails-for-zombies-redux">https://www.codeschool.com/courses/rails-for-zombies-redux</a></li><li><a href="http://teamtreehouse.com/tracks/rails-development">http://teamtreehouse.com/tracks/rails-development</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ebf402a8ae40" width="1" height="1" alt=""><hr><p><a href="https://medium.com/leafy-code-blog/how-to-install-ruby-on-rails-4-in-linux-ebf402a8ae40">How to Install Ruby on Rails 4 in Linux</a> was originally published in <a href="https://medium.com/leafy-code-blog">Leafy Code Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I ditched PHP for Ruby on Rails]]></title>
            <link>https://medium.com/leafy-code-blog/why-i-ditched-php-for-ruby-on-rails-76bb2011e2d7?source=rss-f1ca611aa8d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/76bb2011e2d7</guid>
            <category><![CDATA[rails]]></category>
            <category><![CDATA[ruby-on-rails]]></category>
            <dc:creator><![CDATA[Pubudu Kodikara]]></dc:creator>
            <pubDate>Sun, 06 Dec 2015 02:44:41 GMT</pubDate>
            <atom:updated>2015-12-06T02:45:08.095Z</atom:updated>
            <content:encoded><![CDATA[<p>Why I ditched PHP for Ruby on Rails</p><p>Currently my language of choice is Ruby on Rails. But before going for Rails I did my stuff in PHP. Even worked with it for some time. Later, when I did some research I found out that there are newer and better options for Web Developers. So I wanted to try Rails and never thought of going back to PHP again! Here’s why…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*p0zYIiQirsKbLEre1iMYTg.jpeg" /></figure><h4>First of all, PHP is a language and Rails is a Framework</h4><p>Many people misunderstand Rails as a programming language. The language we are using is <a href="https://www.ruby-lang.org/en/">Ruby</a>. It was developed in the mid-1990s by Yukihiro Matsumoto (We call him `Matz`) in Japan. <a href="http://rubyonrails.org/">Ruby on Rails</a> is a framework built using Ruby which adds more functions and improve the existing ones. So technically comparing Rails to PHP is a bit unfair. But still, even Ruby alone can be better than PHP because it’s so easy to use. The main goal of Ruby is to make things more simple and productive!</p><h4>You can easily add missing functions through plugins (gems)</h4><p>In PHP if you need a special function you can write it on your own or get the code snippet from a third party source and add it manually. Sometimes you would have to edit several files to get the work done. But for Ruby we have something called <strong>gems</strong>. This is a plug in system. Let’s say you need to add a complex user sign up and sign in system to your app… For Rails, there’s a very powerful plugin named <strong>Devise</strong>. This plugin can add a fully featured user management system to your app (It even have OmniAuth support). If you need its features, simply add the name of the gem to the `<strong><em>Gemfile</em></strong>` of your app and run `<strong><em>bundle install</em></strong>`. Now you can use all the functions it offer on your code. Like this there are thousands of gems available for you to use.</p><h4>You don’t have to write a single SQL query! Rails does the heavy lifting.</h4><p>Sometimes dealing with databases can become a lot messy. You might have to write lengthy and complex SQL queries to get your work done. Trust me I have tried them! Onn Rails, you don’t have to write SQL on your own. Rails’s own Active Record will handle the SQL queries. You have to deal with the database just like you deal with an object. For example, in a client database, if you need to find a client with the ID 10, you have to write this SQL code : `<strong><em>SELECT * FROM clients WHERE (clients.id = 10) LIMIT 1`. In a Rails app, you can do this using this code `Client.find(10)</em></strong>`. Simple and easy.</p><h4>Some stuff can be easily generated</h4><p>Now lets say you need a database called Clients and a way to add, edit and delete the records. You can use Rails to generate a scaffold for this. With one command you’ll get all the functions you need. But personally I do not recommend this. The more you write your own code, the better.</p><h4>Great testing tools</h4><p>Rails have some cool testing tools built right into it. You can use that or a more advanced system like <strong>rspec</strong>. Rspec is built for Test-Driven Development. First, you write the tests (even before you write a single line of code). In the tests you’ll tell the systems what you need it to do. Initially, all the tests will fail. Then you have to write the code to make the tests pass. Yeah, I felt awkward about this approach at first, but now im more than happy to use it! You can even use a system like Guard for real time testing.</p><h4>Easy to run a development environment and deploy</h4><p>If you need a temporary server set up on your local machine to test your PHP code, first you need to install Apache, then install MySQL, then configure them. Quite a lot of steps… If you need to run a server in Rails, simply type `<strong><em>rails s</em></strong>` inside your app. To create the databases `<strong><em>rake db:create</em></strong>` and to set the database structure `<strong><em>rake db:migrate</em></strong>`. Deploying it to a web server is also very easy. You can even use a system like Capistrano to make things even easier. With Capistrano, after making the changes to your website, simply run `<strong><em>cap production deploy</em></strong>` in your local machine and it will automatically connect to the remote server, upload the updated files and restart the server!</p><h4>There are also some bad stuff…</h4><p>Some people say there are some performance issues with Rails. Like inability to handle large traffic. That’s the same thing they said about PHP until Facebook proved it wrong. I think if you know how to use Rails well, this won’t be a problem for you. With the right tools, you can do anything!</p><h4>Finally…</h4><p>At the end of the day, Ruby on Rails wins my heart. But there are stuff that Rails can’t do. I have heard nice things about Nodejs. A new javascript based platform for developers. You don’t have to learn web development separately if you already know javascript! It can handle a lot of traffic without any issues. That’s something I need to try next. What I think is, these new technologies are already taking over the market. What do you know… in several years they will become the main language used by all the developers! So why wait? Try it now!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=76bb2011e2d7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/leafy-code-blog/why-i-ditched-php-for-ruby-on-rails-76bb2011e2d7">Why I ditched PHP for Ruby on Rails</a> was originally published in <a href="https://medium.com/leafy-code-blog">Leafy Code Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Welcome to Leafy Code!]]></title>
            <link>https://medium.com/leafy-code-blog/welcome-to-leafy-code-2d7e397d3992?source=rss-f1ca611aa8d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d7e397d3992</guid>
            <category><![CDATA[design]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Pubudu Kodikara]]></dc:creator>
            <pubDate>Sun, 06 Dec 2015 01:58:18 GMT</pubDate>
            <atom:updated>2015-12-06T02:02:19.055Z</atom:updated>
            <content:encoded><![CDATA[<p>Welcome to Leafy Code!</p><p>Hello everyone! Today we are releasing <a href="http://leafycode.com/">LeafyCode.com</a> to the public! Leafy Code is a web development firm trying to make a change in the industry. We can’t make that change alone. That’s why we created this blog which will be dedicated to fellow web designers and developers. We want to change the old ways and embrace the future technology!</p><p>In many countries web developers don’t get what they deserve for their work. Sometimes it’s because they don’t know the real value of their job. Just because they learn some HTML, they will pull some templates and give a crappy product to the customers. Sometimes it’s because there are too many cheap designers like this in that market. They control the prices. So even the real designers have to follow them! It’s a very pathetic situation people! That’s why we need to change it. Since most of the world depend on the Internet, web designers and developers are the creators of the modern world!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*CxAICYelAV1Lro7FJkFjkA.jpeg" /></figure><p>We started our company in a country where web designers are struggling to find a good salary. Our target is to change this.</p><p>Leafy Code will always adapt to the latest trends and technologies in the market. We will try them and will also teach our fellow developers how to follow up through our blog. If you are a developer, [subscribe](<a href="http://eepurl.com/Yl8vf">http://eepurl.com/Yl8vf</a>) to our blog and you will learn a lot from it.</p><p>As we mentioned in our <a href="http://leafycode.com/about">about</a> page, we are not a simple web development company… We are much more than that! Stay with us and we’ll let you know what we plan!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d7e397d3992" width="1" height="1" alt=""><hr><p><a href="https://medium.com/leafy-code-blog/welcome-to-leafy-code-2d7e397d3992">Welcome to Leafy Code!</a> was originally published in <a href="https://medium.com/leafy-code-blog">Leafy Code Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Yesterday Is a History, Tomorrow Is a Mystery and Today Is a Gift!]]></title>
            <link>https://medium.com/@THpubs/yesterday-is-a-history-tomorrow-is-a-mystery-and-today-is-a-gift-a71500e17b35?source=rss-f1ca611aa8d9------2</link>
            <guid isPermaLink="false">https://medium.com/p/a71500e17b35</guid>
            <dc:creator><![CDATA[Pubudu Kodikara]]></dc:creator>
            <pubDate>Sat, 19 Apr 2014 03:45:16 GMT</pubDate>
            <atom:updated>2014-04-19T03:45:16.156Z</atom:updated>
            <content:encoded><![CDATA[<h4>Live in the present!</h4><p>If you need to become extremely productive, if you need to spend a perfect life, if you need to be able to reach your goals without any issues, if you really need to make tour life a big success then you should put the things I’m going to say today into your thick skull! The title I used is a verse taken from the film Kungfu Panda. This is a very old saying used by our ancients! It have a very deep meaning which can help you to change your whole life!</p><p><strong>The big problem…</strong></p><p>Most of us spend a lot of time thinking about our past and the future. We keep recalling the past, we keep planning for the future. But does we give much time for our present? The simple answer is NO! What we do now becomes the past… Our future reach us and become the present. But we doesn’t give much time for the present!!! <strong>Its the most important part in time!</strong></p><h4><strong>Yesterday is a History…</strong></h4><p>We spend a lot of time thinking about our past. We are worried about our past mistakes. We are delighted and keep recalling our past achievements. But what you don’t know is, the past the past… You can’t change it… Its gone… Over… Won’t come again!!! So, there’s no point to spend so much time thinking about it!</p><h3><strong>We should learn from the past… Not bring it to the present…</strong></h3><p>Don’t bring the whole past to the present. Learn from your past mistakes… <strong>Don’t do the same mistake again! </strong>Forget about the past doesn’t mean you can commit a crime and then forget about it. You have to pay for what you did either by law, or by nature or by your own conscious! So, don’t do anything that haunt you for your life! Learn from those mistakes. Never do them again. Learn from the past achievements. Remember how you got them. Apply those theories to your present work. But, you should not keep recalling these things. Just load the necessary information only when you need it. A computer program always try to load only the specific set of data it need to do that specific work. If not, it will be a waste of resources! Just like in computers, we also waste our time and energy by thinking about unnecessary stuff! <strong>Trust me, thinking will drain a very large part of your energy. </strong>Most of you might have already experienced this! Some might even get depressed by thinking about their past… It’s a serious problem!</p><h4><strong>Tomorrow is a Mystery!</strong></h4><p>Unless some crazy genius build a time machine, you have no way of learning what will happen in the future. There are ways to look to the future through <a href="http://en.wikipedia.org/wiki/Meditation">meditation</a> (Remember this… Our mind do time travelling everyday and we don’t know about it!) But I don’t think you and I have such a power. You don’t know what will happen in the future. No one can tell that he can’t die in the next second. No one can do it. The world is highly unpredictable. So, how on earth can we plan for our future? Now please do not misunderstand me… It’s OK to set goals in your life. But extensive planning is not good! Once I had a friend who had some big goals. He told me that by 2015 (I can’t remember the exact year), he is planning to lead the world’s greatest IT company and earn big time. He even gave an approximate amount of US dollars he want to earn. Is he nuts??? How can we plan like that? For him, its one thing he always follow. If he doesn’t reach this goal, he might even have a heart attack! At that time, he was unable to even reach short goals that he set. He wanted to run some start-ups but failed!</p><h4><strong>Today is a Gift! That’s why it’s called the Present!</strong></h4><p>No matter what happened in the past, no matter what’s there in store for you in the future, now you are in the present! No one have invented a time machine yet so you have to live in the present! If you always think about the past while living in the present, <strong>then you are a broken fool. </strong>If you always think about the future while living in the present, <strong>then you are just a dreamer.</strong></p><p><strong>You have to live in the present. </strong>That’s the key for your success. You won’t have a future if you doesn’t do the right thing in the present. You won’t have a past that you can smile on if you doesn’t do the right thing now. Your whole life will be shaped according to what you do now. It’s the root of everything. But many people forget this root. Its like trying to get on to the 100th step in the staircase without getting on to the first one. Its impossible!</p><h4><strong>What should we do?</strong></h4><blockquote>Yesterday is a History, Tomorrow is a Mystery and Today is a Gift! Thats why its called Present!</blockquote><h4><strong>Learn from the past…</strong></h4><p><strong>Learn from your past. </strong>When ever you are doing the same thing again, use the past experience to do it better this time. Never do the same mistake twice! But do not waste your time thinking (recalling) the past!</p><h4><strong>Set goals for the future…</strong></h4><p><strong>Not having a proper goal is dumb. </strong>Its like just walking on the road without having a destination. You need to set some basic goals. But not crazy one like “I’m going to have a 2 million dollar salary by the end of 2016!” That’s completely insane! People will think you are a fool!</p><h4><strong>Do what you have to do correctly and in the right way now…</strong></h4><p>Think what you have to do now and complete those tasks. Do not waste time planning for tomorrow or for next hour. Do it now. Sometimes, you might finish the work you are supposed to do tomorrow and get a vacation! If you move on like this with your goal in your head, <strong>you will definitely WIN! </strong>If you keep planning for the future and keep thinking about the past, you won’t achieve anything! <strong>You will FAIL! </strong>I hope you understood my post. Hope it will make you more productive! If you want more productivity tips like this, please <a href="http://eepurl.com/yH0mv">stay in touch</a>!</p><p><em>-Top image Source : </em><a href="http://www.flickr.com/photos/tonivc/2283676770/"><em>ToniVC</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a71500e17b35" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>