For many developers, Ruby on Rails framework not only allows them to build web applications, websites, and efficient database solutions, but it can help them optimize mailing operations. You can easily use Ruby on Rails mailer, an automatic tool to build transactional messages of any kind, and make proper authentication. In this article, we review three main ways to work …
Popular Ruby Libraries
Ruby on Rails Gems is a package manager containing libraries, software packages, and utilities for standard format distribution of Ruby programs and libraries. RoR Gems have functionality with related files to help save time in web development. Debugging Byebug: Byebug is an effective solution for debugging. This gem takes time between tasks and implementing code by changing variables to perform …
How to configure HTTPS for Ruby on Rails (RoR)
RoR (Ruby on Rails) is a server-side web application framework. To make it more secure, use HTTPS instead of HTTP. Step One: Buy an SSL certificate: First step is purchasing an SSL certificate. There are various types of SSL certificates, based on your requirements including: Extended Validation Certificates (EV SSL) Organization Validated Certificates (OV SSL) Domain Validated Certificates (DV SSL) …
A Look At 5 of the Most Popular Programming Languages of 2019
If you’re a software developer, then you probably—every now and then—feel overwhelmed by the super-fast pace at which our industry evolves, and that’s fine. I certainly feel that way sometimes, especially when trying to keep up with the latest trends. But it’s possible to be well-informed about what’s going on out there, and use that information to your advantage, by …
Rails Geocoder: A Guide to Managing Locations in Your Apps
The introduction of Google Maps in 2005 changed the way we think about the internet. It’s hard to remember now, but there was a time where the internet was disconnected from the physical world. You might find a business’s website, and if you were lucky, they’d have an address included. A national chain of restaurants or grocery stores probably wouldn’t …
How Does Ruby Garbage Collection Work? A Simple Tutorial
Ruby, like most other modern, high-level programming languages, doesn’t force you to manage memory. This feature is called garbage collection, or GC, and you get it for free in Ruby. You can write tons of Ruby code and never give a second thought to the fact that under the covers, Ruby is doing a bang-up job of allocating and freeing memory for …
AWS Lambda With Ruby: A Complete Getting Started Guide
It’s five o’clock on a Friday afternoon. There are no new bug reports and everything is looking smooth. Your plan of a relaxing weekend is in sight when you get a call—the website you look after isn’t responding. Yikes. AWS Lambda minimizes the chance of this truly terrifying event from happening by taking care of server maintenance while you focus …
Ruby Profiler Types and Why You Need Them
About a decade ago, the Ruby programming language made a big splash in the software engineering industry thanks to the Ruby on Rails web framework. The terse and friendly syntax of Ruby and the “they thought of everything” feeling of Rails offered web startups the ability to move quickly and nimbly. However, as an interpreted language, Ruby is slow compared to compiled languages. The …
Install Ruby on Ubuntu: Everything You Need to Get Going
In this post, you are going to learn how to install Ruby on Ubuntu. Specifically, we’re going to install it on the current LTS (Long-Term Support) version of Ubuntu, 18.04.2. If you’re totally new to this, don’t worry! I’ve written this guide with the assumption that you have no prior experience installing packages on Ubuntu. I will attempt to explain …
Install Ruby on Windows: Everything You Need to Get Going
Ruby is a well-established and well-regarded programming language. Once upon a time, installing Ruby on Windows came with problems, but things have come a long way. Today, there’s no reason someone couldn’t write Ruby code on any platform. First released in the mid-1990s, Ruby’s popularity soared with the release of Ruby on Rails in 2005. Ruby is primarily an object-oriented programming language (OOP), …
RVM: How to Get Started and Manage Your Ruby Installations
It’s the night before a big deadline, and just before you press the button to deploy, you notice a small but important bug! You open a terminal, type in the command to run the code—and all you see is a page of errors. It’s these palm-sweating moments that make us wonder whether we made the correct career decision. Configuring our …
Install Ruby on Your Mac: Everything You Need to Get Going
In this post, we’re going to show you how to install Ruby on your Mac. Along the way, we’ll learn about the steps involved and various bits of knowledge required to get up and going. So if you’re totally new, don’t worry! I’ll list each step and follow it with an “extra credit” section where I’ll explain that step in …
Rack Mini Profiler: A Complete Guide on Rails Performance
Ruby on Rails makes writing web applications a pleasure. It’s a powerful and intuitive platform, built on an equally powerful and intuitive language. But that doesn’t mean it’s not worth taking the time to check your code for bottlenecks and performance problems before you ship. In this post, I’ll cover how to use Rack Mini Profiler to profile your Rails …
Understanding Absence in Ruby: Present, Blank, Nil, Empty
Have you ever been confused about the different ways to handle missing data in the Ruby language? I know I have, and I’m sure I’m not alone in that. The options Ruby offers come in the form of several methods: “present?”, “blank?”, “nil?”, and “empty?”. There are all somewhat related since all of them check for the absence of data …
How to Do Authentication Right With Rails Devise
Authentication for web apps is a difficult problem. Anyone who’s ever tried to create their own authentication system will tell you that there are a lot of unexpected edge cases. What’s more, your authentication system is an externally-facing part of your application. This means if someone is trying to hack into your application, your login system’s security will be one of …
Rails Migration A Complete Guide
A Rails migration is a tool for changing an application’s database schema. Instead of managing SQL scripts, you define database changes in a domain-specific language (DSL). The code is database-independent, so you can easily move your app to a new platform. You can roll migrations back, and manage them alongside your application source code. Let’s take a look at what Rails migrations …
Ruby Debugger Using Visual Studio Code
No matter how carefully coded, reviewed, and tested your Ruby code is, odds are good that at some point you’ll cause a catastrophic failure to at least one system you’re responsible for. How do you prepare yourself? You need a Ruby debugger. In this post, I’ll cover the whole Ruby debugger process—from finding the issue to determining the root cause. …
Ruby Performance Monitoring
When developing new applications, it’s typical to run into a variety of competitors with similar goals. This is one reason why it is not enough to create an application without ways to monitor and manage it. In fact, usually market leaders emerge rather quickly. So who are these market leaders? We often see these people and companies are the ones …
Rails Logger and Rails Logging Best Practices
Logging provides critical value to applications with insight to usage, stats, and metrics, and saves us when debugging a problem. But we often leave logging to poorly implemented afterthoughts. So what should we know to get the most out of our logging? We will look at the Rails logger and some logging best practices. What is the Rails Logger? When …
How to Troubleshoot Ruby Applications
Troubleshooting is a critical skill for developers and DevOps. As our software grows more sophisticated, our problems do too. The cloud adds a new layer of complexity since we need to know how to find a problem that doesn’t occur locally, but has cropped up on a remote system. In this tutorial, we’ll look at how to troubleshoot Ruby applications. …
- Page 1 of 2
- 1
- 2