{"id":14341,"date":"2024-01-31T14:59:23","date_gmt":"2024-01-31T14:59:23","guid":{"rendered":"http:\/\/TheNextWeb=1403504"},"modified":"2024-01-31T14:59:23","modified_gmt":"2024-01-31T14:59:23","slug":"my-love-letter-to-rails-and-ruby","status":"publish","type":"post","link":"https:\/\/www.londonchiropracter.com\/?p=14341","title":{"rendered":"My love letter to Rails (and Ruby)"},"content":{"rendered":"\n<p><em>This article was originally published on <a href=\"https:\/\/cult.honeypot.io\/\" target=\"_blank\" rel=\"nofollow noopener\">.cult<\/a> by <a href=\"https:\/\/cult.honeypot.io\/contributors\/helm\/\" target=\"_blank\" rel=\"nofollow noopener\">Patrick Helm<\/a>. .cult is a Berlin-based community platform for developers. We write about all things career-related, make original documentaries, and share heaps of other untold developer stories from around the world.<\/em><\/p>\n<p>Once, there was a little online quiz with 10 questions.<\/p>\n<p>Each question displayed a tiny method and one had to guess if it was defined in the Ruby core language, or within the Rails framework.<\/p>\n<p>Neither Matz nor DHH scored 10\/10.<\/p>\n<p><a href=\"https:\/\/twitter.com\/yukihiro_matz\" target=\"_blank\" rel=\"nofollow noopener\">Yukihiro Matsumoto<\/a>, also known as Matz, is the creator of the Ruby language.<\/p>\n<div class=\"inarticle-wrapper latest channel-cta hs-embed-tnw\">\n<div id=\"hs-embed-tnw\" class=\"channel-cta-wrapper\" readability=\"8.5\">\n<div class=\"channel-cta-img\"><img decoding=\"async\" class=\"js-lazy\" src=\"https:\/\/s3.amazonaws.com\/events.tnw\/hardfork-2018\/uploads\/visuals\/tnw-newsletter.png\"><\/div>\n<p><noscript><img decoding=\"async\" src=\"https:\/\/s3.amazonaws.com\/events.tnw\/hardfork-2018\/uploads\/visuals\/tnw-newsletter.png\"><\/noscript><\/p>\n<div class=\"channel-cta-input\" readability=\"12\">\n<p class=\"channel-cta-title\">The &lt;3 of EU tech<\/p>\n<p class=\"channel-cta-tagline\">The latest rumblings from the EU tech scene, a story from our wise ol&#8217; founder Boris, and some questionable AI art. It&#8217;s free, every week, in your inbox. Sign up now!<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>David Heinemeier Hanson, aka <a href=\"https:\/\/twitter.com\/dhh\" target=\"_blank\" rel=\"nofollow noopener\">DHH<\/a>, invented the Rails framework.<\/p>\n<p>Well, if neither of them can differentiate between Ruby and Ruby on Rails, please bear with me; I might mix a few things up as well.<\/p>\n<h2>Why did I fall in love with Ruby on Rails?<\/h2>\n<p>Over a decade ago, during a semester break, I released a tweet saying that I wanted to learn something new.<\/p>\n<p>A friend replied: <em>There is a new kid on the block, called \u2018Ruby On Rails\u2019.<\/em><\/p>\n<p>I then started following a guide on how to build a Twitter clone and a simple blog with RoR.<\/p>\n<p>That took me less than 2 days. Mindblown!<\/p>\n<p>Working with the syntax of Ruby\/Rails, quite often it almost reads like an English text.<\/p>\n<p>It\u2019s no wonder then that the <a href=\"https:\/\/rubyonrails.org\/doctrine\" target=\"_blank\" rel=\"nofollow noopener\">Rails doctrine<\/a> is <em>\u2018Optimize for programmer happiness\u2019.<\/em><\/p>\n<p>After this experience, I went to do an internship explicitly using Ruby on Rails.<\/p>\n<p>This tutorial and the internship that followed were the reasons why I\u2019ve been enjoying the Ruby\/Rails world for over a decade now.<\/p>\n<h2>A few of my favourite tools<\/h2>\n<p>This world consists of a great community and an even greater ecosystem.<\/p>\n<p>Packages in Ruby are called gems. So we got a great packaging system called rubygems.<\/p>\n<p>Two other tools I use very frequently are <a href=\"https:\/\/rubular.com\/\" target=\"_blank\" rel=\"nofollow noopener\">Rubular<\/a> to play around with regular expressions, and <a href=\"https:\/\/www.ruby-toolbox.com\/\" target=\"_blank\" rel=\"nofollow noopener\">The Ruby Toolbox<\/a> to find some existing solutions to the problems we have to solve.<\/p>\n<h2>I\u2019m (still) lovin it<\/h2>\n<p>Even today, I\u2019m still a \u2018<em>Rubyist by day and night\u2019.<\/em><\/p>\n<p>Rails and Ruby evolve continuously. As a tradition, a new Ruby major\/minor version is released every Christmas.<\/p>\n<p>As a present to the community.<\/p>\n<p>Rails might not be the coolest kid on the block anymore.<\/p>\n<p>It\u2019s grown up, but still surprises the community with new useful features and improvements.<\/p>\n<p>What I still value quite a lot is <em>\u2018Rails is omakase\u2019<\/em>. Aka, it ships with a lot of defaults which are easy to change!<\/p>\n<p>If you\u2019re not happy with the default testing framework at a new rails project, you can swap it out with whatever you prefer! Do you just want to use Rails as an API and not ship HTML over the wire?<\/p>\n<p>That\u2019s exactly what we\u2019re using Rails for over at Honeypot.<\/p>\n<h2>Is anyone still using Rails?<\/h2>\n<p>A common phrase I read or hear from time to time is <a href=\"https:\/\/www.reddit.com\/r\/ruby\/comments\/10p5pv9\/is_ruby_dead\/\" target=\"_blank\" rel=\"nofollow noopener\">\u2018Isn\u2019t Rails dead yet?\u2019<\/a>.<\/p>\n<p>Just recently <a href=\"https:\/\/rubyonrails.org\/2023\/10\/11\/Rails-7-1-1-has-been-released\" target=\"_blank\" rel=\"nofollow noopener\">Rails 7.1<\/a> has been released with over 800 different individual contributors!<\/p>\n<p>And that\u2019s consistent with the recent history of Rails development.<\/p>\n<p>So maintenance-wise it\u2019s definitely not dead yet.<\/p>\n<p>Almost a year ago the Rails Foundation was founded.<\/p>\n<p>This is a non-profit organisation aimed at improving the documentation, education, marketing, and events around Rails. One of its major milestones was hosting the very first Rails World conference in Amsterdam this year. Tickets were sold out within 45 minutes! I\u2019d say, that\u2019s a sign of a pretty active community.<\/p>\n<h2>But does it scale?<\/h2>\n<p><em>\u201cOk, so it\u2019s not dead. But does it scale?!\u201d<\/em><\/p>\n<p>That\u2019s a phrase I read\/hear even more often.<\/p>\n<p>As we now already know, Ruby is not the newest kid on the block anymore, it\u2019s definitely not the fastest one either.<\/p>\n<p>But did you know that you\u2019re most likely using a Ruby On Rails website almost daily?<\/p>\n<p>I\u2019m talking about GitHub and GitLab. Both of them are pretty classic Ruby On Rails applications.<\/p>\n<p>GitLab is <a href=\"https:\/\/gitlab.com\/gitlab-org\/gitlab\" target=\"_blank\" rel=\"nofollow noopener\">an open-source<\/a> web application, in case you want to browse the codebase \ud83d\ude09<\/p>\n<p>Another company that you might have heard of, and that is still using Ruby On Rails, is Shopify!<\/p>\n<p>And since we\u2019re talking about scaling, let me present you some facts about Shopify with regard to scaling Rails:<\/p>\n<ul>\n<li>it uses the most recent HEAD version of Rails<\/li>\n<li>it serves up to 1.3 million requests per second<\/li>\n<li>it serves ~10% of ALL eCommerce traffic<\/li>\n<\/ul>\n<p>Let me also list a few more companies that currently are, or were, using Rails: Twitch, SoundCloud, Airbnb, and of course Honeypot.<\/p>\n<p>So, if Rails is good enough for a product like GitHub and Shopify, it\u2019s probably safe to say:<\/p>\n<p><em>It did scale!<\/em><\/p>\n<p>Let me close with a quote from DHH taken straight from our upcoming documentary about Rails:<\/p>\n<blockquote readability=\"13\">\n<p>You start down really low, really simple, having to learn very little, and then you can go all the way to become the top person in your company, in your industry, even if you don\u2019t have the credentials. I love that part of Ruby on Rails. I love the diversity of the people who\u2019ve been able to create a career in programming because of this framework that we\u2019ve created.<\/p>\n<\/blockquote>\n<p><em>Watch the <a href=\"https:\/\/www.youtube.com\/watch?v=NaEG5Dz7xzM\" target=\"_blank\" rel=\"nofollow noopener\">trailer<\/a> of Honeypot\u2019s upcoming documentary about Ruby on Rails (coming to you on Nov 9).&nbsp;<\/em><\/p>\n<p> <a href=\"https:\/\/thenextweb.com\/news\/love-letter-rails-and-ruby\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article was originally published on .cult by Patrick Helm. .cult is a Berlin-based community platform for developers. We write about all things career-related, make original documentaries, and share heaps of other&#8230;<\/p>\n","protected":false},"author":1,"featured_media":14342,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=\/wp\/v2\/posts\/14341"}],"collection":[{"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=14341"}],"version-history":[{"count":0,"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=\/wp\/v2\/posts\/14341\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=\/wp\/v2\/media\/14342"}],"wp:attachment":[{"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=14341"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=14341"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.londonchiropracter.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=14341"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}