
ZJIT has been merged into upstream Ruby. Learn about its architecture!
ZJIT has been merged into upstream Ruby. Learn about its architecture!
Ruby implementation of Algorithms,Data-structures and programming challenges - kumar91gopi/Algorithms-and-Data-Structures-in-Ruby
An interesting twist in my recent usage of SQLite was the fact that I noticed my research scripts and the database intertwine more. SQLite is unique in that it really lives in-process, unlike standalone database servers. There is a feature to that which does not get used very frequently, but can be indispensable in some situations. By the way, the talk about the system that made me me to explore SQLite in anger can now be seen here. Normally it is your Ruby (or Python, or Go, or whatever) program which calls SQLite to make it “do stuff”. Most calls will be mapped to a native call like sqlite3_exec() which will do “SQLite things” and return you a result, converted into data structures accessible to your runtime. But there is another possible direction here - SQLite can actually call your code instead.
Where you get to play with an interactive demo to visualize how Enumerator::Lazy helps avoid unnecessary work
Discover essential tips and tricks to boost your productivity with Ruby on Rails console commands and features.
Protect your Ruby projects from supply chain attacks with Bundler 2.6's new checksum verification. Learn how to implement this crucial security feature today.
Though it looks like magic, it’s still just programming. This book will help you really understand the Rails source code.
Let's explore Ruby's concurrency ecosystem, its various concurrency models, and their practical applications in modern software development
Rack is the foundation for every popular Ruby web framework in existence. In the first part of a three-part series, let's set up a Rack app.
The catalog of annotated code examples of all design patterns, written in Ruby.
State-of-the-art transformers for Ruby.
Get a better understanding of Ruby enumerators by looking at them from 3 different perspectives.
We'll dive into five common Ruby mistakes and see how we can combat them.
I collected several books from different media. You can download any book from here and enjoy your reading. Happy reading! - emrancub/books
Code written with reduce can be intimidating. This 2-step approach can help.
Ruby is a programming language that has been accepted with open arms since 1995, and thanks to its...
Exceptional Creatures is Honeybadger.io's documentation of Ruby's exception system, with a twist. Collect them all!
In the second and final part of our series, we'll explore using RSpec for tests in your Rails application.
RSpec is a library for writing and running tests in Ruby applications. As its landing page states,...
Ruby, renowned for its dynamic and object-oriented nature, boasts an array of features that elevate...
A protip by alfuken about ruby and sinatra.
In this blog post, we will delve into the major enhancements introduced in Ruby 3.3’s IRB, as well as what’s currently planned for the next year.
When working on large-scale projects, quickly creating test data or dummy data can be crucial. In...
Ruby 3.2 saw the introduction of object shapes which speedup instance variables access in most cases, but can be slower in some pathological cases.
HTTP (Hypertext Transfer Protocol) is the foundation of data communication on the World Wide Web....
Did you know you can use Flipper to create and manage feature flags for your client-side app, even though Flipper is a Ruby gem?
Ruby is a dynamic and flexible programming language known for its elegant syntax and powerful...
As Rails developers, we often encounter performance issues in different parts of our applications. But establishing connections to external services is usually the place we overlook. Let me introduce the concept of connection pooling and show you an example of easy, performant connections to RabbitMQ.
In the era of hyper-sophisticated machine learning models like ChatGPT, it is surprising how effective the classic decision tree model remains, especially when used in conjunction with other techniques, such as bagging, boosting and random forests. In this blog post we demonstrate how to build an effective decision tree model, and train this model on some sample data.
As Rails developers, we often encounter performance issues in different parts of our applications. But establishing connections to external services is usually the place we overlook. Let me introduce the concept of connection pooling and show you an example of easy, performant connections to RabbitMQ.
How many Ruby gems do you have currently installed? With around 50 new gems released daily, it is...
This article shows the obscure but useful capabilities of Hash, a simple but equally powerful data structure in Ruby.
In part one of this series, we introduced Devise using an example app to explore modules, helpers,...
Introduction: In the quest to solve complex optimization problems and simulate natural evolution,...
In this article, we'll introduce Ruby on Rails' lesser-known but powerful cousin Sinatra. We'll use...
Discover the ins and outs of logging in Ruby, including how to customize your logs and use logging libraries like Lograge.
Pattern matching is a powerful technique in programming that allows you to match data structures and...
Learn how to start logging with Ruby and go from basics to best practices in no time.
Let's look into three options for code loading in Ruby: using load, require, and autoload.
Learn how to implement a Sinatra API and protect its endpoints using Auth0
Discover how to customize exceptions in Ruby and highlight exceptions in your logs.
Discover the Best Ruby gems to enhance your project and make development easier. From testing to deployment, these gems will streamline your workflow.
Get started with web scraping in Ruby using this step-by-step tutorial! Learn how to scrape a site with Nokogiri and RSelenium libraries.
A collective devoted to the craft of software engineering where expertise is transmuted into joy.
Working with collections, such as arrays and hashes, is a fundamental part of programming in Ruby....
How can I create nested lists in YAML? I want to get: {"Hello": ["as", ["http://", ["cat"]]]} Here's my YAML that doesn't work (with pyYaml): Hello: - &
As a Ruby developer, you can immediately incorporate AI into your applications through the use of the OpenAI API. Our beginners guide will take you through step by step.
Are your feature flags states leaking between your test cases? Stub them all to make your test suite more reliable. Here’s how.
Kimurai is a modern web scraping framework written in Ruby which works out of box with Headless Chromium/Firefox, PhantomJS, or simple HTTP requests and allows to scrape and interact with JavaScrip...
Learn web scraping with Ruby with this step-by-step tutorial. We will see the different ways to scrape the web in Ruby through lots of example with gems like Nokogiri, Kimurai and HTTParty.
Leaked OnlyFans photos and video of manny.codes
This guide goes over the various ways to install Ruby on Mac, and the pros and cons of each one.
I was playing around with OpenAI (GPT-3) today, building a reasonably complicated email parser for a...
An in-depth look at threads vs processes in Ruby web applications, and when you should use each.
Rake provides a great way to automate repetitive or complex tasks. Here's a look at creating a simple and a more complex task.
Learn about the Enumerator#product method introduced in Ruby 3.2.
Read more on the Doximity Technology Blog about how our engineers and data scientists are building the largest online network for clinicians.
Discover the benefits of memoization for your Ruby application, common mistakes to avoid, and when not to memoize.
A Ruby multithreaded crawler is a type of web crawler that is built using the Ruby programming...
Have you ever built your own web server with Ruby? We already have many servers, like: Puma Thin Unicorn But I think this is a great learning exercise
Find out about the different JIT compilers for Ruby — YJIT, MJIT, and TenderJIT — and their benefits.
Discover when and why you should use ractors, and build a ractor in Ruby.
Note: before starting this post, I recommend reading my other posts about procs and closures for background. Overview What’s the difference between a proc and a lambda? Lambdas actually are procs. Lambdas are just a special kind of proc and they behave a little bit differently from regular procs. In this post we’ll discuss the […]
Let's explore how Ruby manages memory, garbage collection, and how to uncover a leak, in the first of this two-part series on memory leaks in Ruby.
Master programming by recreating your favorite technologies from scratch. - codecrafters-io/build-your-own-x
Leaked OnlyFans photos and video of manny.codes
How the principle of connascence will help us to move away from fixtures.
Rubocop recently managed to be listed as one of the most loved and most frustrating ruby gems which is quite an achievement. In this episode, I'll show you how to keep it only in the loved section.
Ruby adds Fiber SchedulerInterface to support non-blocking fiber. Splitting long operations into fiber hooks and Scheduler will manage it for us.
Let's build a simple state machine in Ruby and use the state machines gem.
Racc is an LALR(1) parser generator. It is written in Ruby itself, and generates ruby programs. - ruby/racc
A comparison of how different attr_accessor from custom getters in setters in terms of implementation and performance
A quick overview of using collections in Jekyll to create powerful taxonomies around your content.
By Farrel Burns Brought to you by CloudCannon, the Git-based CMS for Jekyll. What you’ll...
Find out how feature flags function in principle and get started with feature flags using the Flipper gem.
Blog and website of Greg Molnar, Ruby Developer, Rails Developer, IT Security Consultant, Penetration Tester, Ethical hacker. Opinions expressed are mine.
Learn how you can implement polymorphism in your Rails application for cleaner code.
I'm not an expert in cryptography — I'm just a developer, and most developers are in this same boat...
In this markdown tutorial using rails app learn a step-by-step process to add Markdown support to the Rails app using Redcarpet and Coderay gems.
86K subscribers in the ruby community. Celebrate the weird and wonderful Ruby programming language with us!
Ruby on Rails is one of the most popular application stacks for developers looking to create sites and web apps. Using rbenv will provide you with a solid en…
Let's explore the basics of Rails generators and templates, then examine how to customize your Rails app with templates.
In this episode, we look at tips and tricks from read only attributes, inserting and upserting (update or insert) records, toggling booleans, and single table inheritance.
This post is part of a series about how ruby-syntax-tree/syntax_tree works under the hood.
This article will discuss the best HTTP clients in Ruby. Faraday, HTTParty, Rest-client...it can be hard to choose the best one.
💎 A collection of awesome Ruby libraries, tools, frameworks and software - markets/awesome-ruby
My working notes of "The Well-Grounded Rubyist" (Black & Leo), implemented in Jupyter Lab (Ruby kernel 2.7.0) - bjpcjp/well-grounded-rubyist-book-notes
My working notes of "The Well-Grounded Rubyist" (Black & Leo), implemented in Jupyter Lab (Ruby kernel 2.7.0) - bjpcjp/well-grounded-rubyist-book-notes
A fun little experiment where I try to call the same method in Ruby in as many ways as possible
Community contributed recipes and techniques.
What this feature is for The credentials feature is a way of storing secrets that you don’t want to keep in plaintext, like AWS credentials for example. (In fact, the one and only thing I keep in my main Rails project’s credentials are my Active Storage AWS credentials.) Why the credentials feature is difficult to […]
The Rails helper excerpt can extract a chunk of text that matches a certain phrase, no matter where in the string it is.
Why Jekyll Categories or Tags? Imagine you have a blog where you discuss very different things all together. Many bloggers post their personal experiences along with some professional posts. Curating information is very important to make users browse through your website with ease. What if New York Times had no categories like Politics, Business, Tech etc..? How hard would it be to track what happened to last night’s football game? There should be a Sports category to make readers’ life easy.
My working notes of "The Well-Grounded Rubyist" (Black & Leo), implemented in Jupyter Lab (Ruby kernel 2.7.0) - bjpcjp/well-grounded-rubyist-book-notes
Metaprogramming is an integral part of Ruby, more so than in any other language. This article explains the hows and whys.
There are times when the only thing I want to create is a simple API. In the Ruby ecosystem the standard for creating something simple is Sinatra. But...
The map method’s shorthand syntax One of the most common uses of map in Ruby is to take an object and call some method on the object, like this. [1, 2, 3].map { |number| number.to_s } To save us from redundancy, Ruby has a shorthand version which is functionally equivalent to the above. [1, 2, […]
A starter kit for jekyll + bootstrap 4.
A beginner's guide to creating a personal website and blog using Jekyll and hosting it for free using GitHub Pages.
Puma - A Fast, Concurrent Web Server for Ruby & Rack.
Github page does not allow customized plugins, and jekyll-tagging is not one of the supported GEMs of Github pages. It needs some effort to add tag support your Jekyll blog hosted by Github page. This blog shows you how to do this step by step.
Example based guide for text processing with Ruby from the command line
Good morning everyone, I've installed Ruby 3.0.2 via rbenv in order to test-drive a Rails 6.0 app. It seems like rbenv's Rails shiv is not working properly. $ rbenv install 3.0.2 Downloading ruby-3...
Rbenv, RubyGems, and Bundler work together to give us a lot of control over our code's environment. If you know how they work, you'll be better prepared to troubleshoot any problems you encounter. In this article, Ol...
We will see how to send a simple email with the help of three different programming languages:...
In August, I set out to improve the machine learning ecosystem for Ruby and wasn’t sure where it would go. Over the next 5 months, I ended up...
Writing and reading yaml files can be very simple. Here are a few examples.
While building applications in Rails it’s very common to have to add a new model after you’ve already set up a DB and added some seed data…
Ruby on Rails is a web framework that contains many libraries you’d need to create and deploy a successful web application. We often take for granted the ability to run rails new to create a fully functional web application with tons of built-in features.
Kointoto situs judi togel online, slot gacor, dan live casino idnlive terbaik di Indonesia. 1 ID untuk semua permainan dengan deposit minimal Rp 10rb.
News & blog about Learn Enough (including the Ruby on Rails Tutorial)
Ruby 3.0 is a lot faster than Ruby 2.0, with both incremental tuning and interesting new disruptive changes. 'Three times faster' is hard to define...
Leverage metaprogramming for better Ruby with this DSL tutorial.
An article by Noah Gibbs about Ruby 3's performance for a Rails application. Ruby 3.0.0-preview1 was a tiny bit slower than 2.7. The release 3.0 is...
This is the next installment in the "Practical Computer Science" series, where you will learn how to apply classic computer science concepts to solve real problems using Ruby. Today we are going to talk about Graph
A deep dive into adding Ruby Type Signatures to existing projects and using Steep to perform type checking.
One of the things I hear most from developers who are new to Ruby and Rails, or just to testing is, How do you get started? What should I test? The value of testing your code and the confidence it brings is already apparent, but how to make it happen seems to be missing. In this post I address how I approach testing a fairly simple, but non trivial feature from start to finish.
Become A Ruby Programming Expert With RubyGuides This library of 150+ in-depth guides explains complex programming topics in plain English so you can become a happy & well-paid Ruby developer! Discover all the secrets that separate beginner developers
This article covers one of my favorite techniques for improving performance: memoization. It's a source of easy little performance wins that eventually add up and only occasionally reduce your application to a heap of...
I am Benoit Hamelin. I work with the excellent hackers at Arcadia G.P., where I develop software,...
In this second article about Rake, we dive a little deeper and cover slightly advanced topics like file tasks, rules, multitasks and more that will improve your Rake chops...
rake command is explained in this post. rails provide a number of inbuilt tasks, but you can create your own task also as explained here. => Understanding the basics : When you create any new ra…
Welcome back! If you missed the first part of our journey so far, then you might want to go back and catch-up first. So far, we've applied a Test-Driven Development process to building our...
The other day I was searching for an introduction to Ruby exceptions written for beginners - people who know basic Ruby syntax but aren't really sure what an exception is or why it's useful. I couldn't find one, so I ...
Ruby is one of the underrated programming languages among modern developers. It has become popular wi...
Becoming the owner of a legacy Rails app can mean inheriting a project bogged down with tech debt, bugs, and sketchy documentation. Here's how to survive.
Find static code analysis tools and linters for Java, JavaScript, PHP, Python, Ruby, C/C++, C#, Go, Swift, and more. All tools and linters are peer-reviewed by fellow developers to select the best tools available. Avoid bugs in production, outages on weekends, and angry customers.
Official gem repository: Ruby kernel for Jupyter/IPython Notebook - SciRuby/iruby
My Environment Software Version(s) Operating System Ubuntu 19.10 jekyll Latest github-pages No Current Behavior I was trying to run sudo apt install jekyll jekyll new my-awesome-site cd my-awesome-...
In our series on new Ruby 3.0 features we start with the anonymous Struct, ${}.
Flexible authentication solution for Rails with Warden. - heartcombo/devise
Every line of code you don’t write is a line of code you don’t have to maintain
137 categories including 1319 gems and resources.
RVM vs. rbenv: why RVM is bad and rbenv is good. Easy setup instructions for MacOS X.
Ruby is one of the most popular languages today. It has an elegant syntax and it is the language behind the powerful Ruby on Rails framework. In this tutorial we will show you three different ways to install Ruby on Ubuntu 18.04 system.
I got a customer ticket the other day that said they weren’t worried about response time because “New Relic is showing our average response time to be sub 20...
In Ruby, methods can take a single block as an argument, which can be specified explicitly in the met...
As a Ruby developer you probably use tools like Sidekiq that rely on concurrency. But would you know how to *build* your own sidekiq, or add concurrency to an existing app? This article will open Ruby's concurrency to...
Find out how easy it is to build a chatbot for WhatsApp using the Twilio API for WhatsApp and the Ruby web framework Sinatra.
22K subscribers in the rubyonrails community. Everything RoR! Ruby on Rails, often simply Rails, is an open source web application framework which…
Sam's Spot - Sam saffron's web log
This is the 3rd entry in the "Practical Computer Science in Ruby" series! Today we are going to talk about linked list. So what's a linked list? Like the name says, a linked list is a way
In programming the term “literal” refers to notations for representing certain values in code. Almost all languages offer them for atomic types such as strings or various number formats, some also for compound types like arrays, records or hashes. Additionally lambda expressions are a literal representation of functions. Ruby has a rich set of literals for various use cases and in this post we’re going to explore some of the lesser known ones.
If I call a command using Kernel#system in Ruby, how do I get its output? system("ls")
Photo by Morre Christophe on Unsplash My team at Runtime Revolution uses an in-house app for team ma...
Your go-to Ruby Toolbox. A collection of awesome Ruby gems, tools, frameworks and software. 1319 projects organized into 137 categories.
In the first part of this series, I walked through developing a simple todo API using Ruby on Rails and PostgreSQL using Docker Compose. In this post, I will cover creating a CI/CD pipeline using Codeship Pro.
Builder pattern in Ruby is useful when the algorithm how to build an object is something independent of the parts that makes the object.
In the second part of our series we will take a look at more advanced concurrency models such as Actors, Communicating Sequential Processes, Software Transactional Memory and of course Guilds – a new concurrency model which may be implemented in Ruby 3.
Practical Data Science with Ruby based tools.
Ruby metaprogramming, one of the most interesting aspects of Ruby, enables the programming language to achieve an extreme level of expressiveness. It is because of this very feature that many gems, such as RSpec and ActiveRecord, can work the way they do. In this article, Toptal engineer Nikola Todorovic demystifies...
In this post I’m going to tell you about batching as a technique to help avoid N+1 queries, existing battle-tested tools like Haskell Haxl…
Here’s a look at some lesser-known Ruby methods that solve specific types of problems very well.
Class methods are the source for continuous discussions and disagreements among my colleagues. While some consider them precise and…
A collection of awesome Ruby libraries, tools, frameworks and software. The essential Ruby to build modern Apps and Web Apps.