The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
That one time I used recursion to solve a problem in Ruby
Some time ago I was working on a problem and I could not find a satisfactory solution. But when I reminded myself about recursive functions, it got much easier. Read the code and images illustrating the problem
LangTool - easy localizations for developers
Released my web application https://langtool.tech on Ruby on Rails. It helps developers with free automatic localization for their projects. Just select file for localization, wait a few seconds and take translated one. Supported yml, xml, json, strings, resx types.
Enhanced Ruby on Rails Architecture
Hi, few days ago I wrote a small summary of advanced Rails architecture patterns that are going beyond standard Rails mvc: https://github.com/CodeRocketCo/enhanced-rails-architecture
Teaching an AI to play a simple game using Q-Learning
In this post I will walk you through how to teach a computer to master a simple video game using the q-learning reinforcement learning algorithm. We will implement the algorithm from scratch in Ruby without the use of external gems. Read more here: http://www.practicalai.io/teaching-ai-play-simple-game-using-q-learning/
Mobility 0.2: Now with Plugins
I’ve just released the second major version of Mobility, the Ruby pluggable translation framework I’ve been working on recently. In this blog post, I describe some of the new features: extensibility through a plugins structure, more configuration options, enumerability, and more.
Advanced Active Record
I’m working on a book about more advanced Active Record topics; please let me know if you’re interested or have thoughts on things to cover.
Fabrication vs FactoryGirl - Which is Faster?
A benchmark of Fabrication and FactoryGirl (+ charts): https://ksylvest.com/posts/2017-08-12/fabrication-vs-factorygirl
Results of the Code Quality Tools survey
Results of the survey regarding tools that Ruby developers use to keep the code in a good shape: http://rubyblog.pro/2017/08/results-of-the-code-quality-tools-survey?utm_source=rubyflow
Hanami v1.1.0.beta1
New associations (belongs_to, has_one, has_many :through), rewritten CLI with registrable commands for third-party gems, new extra behaviors for entity manual schema, selectively boot apps, logger filtering, bug fixes. http://hanamirb.org/blog/2017/08/11/announcing-hanami-110beta1.html
Use Rails model unique validation but forget about DB indexes?
Gem that investigates the application’s models definition, then tells you unique validations that do not have proper DB indexes https://github.com/soulfly/unique_validation_inspector
Another Mars Rover Solution
How did I solve the rover problem using Ruby? Read more in the article ❤️ [more inside]
Fix it now
The greatest trick the devil ever pulled was convincing the world #TODO. [more inside]
tty-spinner adds multi spinner support
The latest tty-spinner adds multi spinner support. You can either manually control all spinners or register spinners with tasks that will be automatically executed asynchronously. And the multi spinner formatting is super sweet as well displaying tree of child spinners - play with examples!
Scraping websites with Ruby and Headless Chrome
Learn how to scrape websites with Ruby and Headless Chrome, using Selenium WebDriver: https://readysteadycode.com/howto-scrape-websites-with-ruby-and-headless-chrome
Faster Rails: Eliminating N+1 queries
If N+1 queries are making your Rails app painfully slow, read this article to learn how to eliminate them from your project.
A Barely Adequate Guide to the Google Blogger API using Ruby
Learn how to use the google-api-client Gem to access your Google Blogger posts through Ruby scripts. http://sam-koblenski.blogspot.com/2017/08/a-barely-adequate-guide-to-google.html
Practical Linked List in Ruby
Learn about the Linked List data structure & how to implement it in Ruby! http://www.blackbytes.info/2017/08/ruby-linked-list/
How I Built A Udemy Clone With Ruby On Rails and ReactJS
Learn how to build an advanced online education platform with Ruby on Rails and ReactJS. Video processing and background processing and more included! Back this Kickstarter and help bring it to life! https://www.kickstarter.com/projects/1918703657/learn-how-to-build-an-advanced-online-education-pl
My fruitless, previous attempts at not loosing history of changes in Rails apps
Check out what I learned over 30 months in how not to implement a history of changes in Ruby and Rails apps
To join or not to join? An act of #includes
Ever wondered how to get rid of those awkward N+1 queries? Join the table as we discuss Rails’ eager loading strategies in this magnificent article by Tiago Farias. [more inside]
Guide to Become a Full-Stack Developer
💥 What is the Full Stack Developer? Why should you become a Full Stack Developer? [more inside]
Random Ruby Newsletter #27
A new issue is published! Read how to improve the speed of test suite and check out several interesting tools such as Ruby compiler. [more inside]