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.
Testing Stripe with Rails and RSpec
A quick high overview of ways you can test Stripe within your Rails application with RSpec: [more inside]
A 5-point Rails app performance audit
Like my office desk, the performance of a Rails app will trend toward disorder. An N+1 database query here, a forgotten pagination implementation there, a missing index here, etc. Here’s a quick 10-minute performance audit you can perform on your Rails app to gauge the health of your app.
Tutorial: Using Rails Event Store as a pub-sub message bus
Rails Event Store can do much more but you usually start by using it as your message bus
[Screencast] Sample Data with Factory Bot and Faker
Factory Bot is a fixtures replacement which can generate the needed records directly in the tests. Faker can be used to create fake data for these records. https://www.driftingruby.com/episodes/sample-data-with-factory-bot-and-faker
The Case Against Exotic Usage of :before_validate Callbacks
It’s nothing new that ActiveRecord callbacks are abused in many projects and used for the wrong reasons for many use cases where they can be easily avoided in favor of a much better alternative, like service objects. There is one callback though that is special and quite often used for pretty exotic reasons that have nothing to do with the process when it gets executed – it’s the before_validate callback. [more inside]
Newest tty-screen adds more checks for terminal size
The latest tty-screen adds more checks(Win API, ioctl, Java etc..) for terminal size detection to make it even more robust. Tested on Mac OS, Linux & Windows platforms.
Implementing OCR using a Random Forest Classifier in Ruby
In this blog post I will show how to implement OCR (optical character recognition) using a Random Forest classifier in Ruby. As our dataset we will be using the MNIST database of handwritten digits and for our Random Forest implementation we will be using Python’s sci-kit learn library. This post also shows how easy it is to integrate the plethora of data science tools from Python into Ruby applications. Read more here: https://www.practicalai.io/implementing-ocr-using-random-forest-classifier-ruby/
Slide Show (S9) v.4 Update - Write Yr Talks / Slides in Plain Text (w/ Jekyll Themes)
Hello, I’ve updated the Slide Show (S9) command line tool (and library/gem) that lets you write your talks / slides / presentations in plain text w/ markdown conventions. You can use any of the (Jekyll-compatible) theme packs such as reveal.js, bespoke.js, s6blank, etc. As an example, see the Blockchain! Blockchain! Blockchain! talk (source in markdown). Happy publishing & talking. Cheers.
HexaPDF 0.6.0 - Code Refinements
The last release brought some cool new features with respect to advanced text layout. This release builds on that and refines the implementation for future features.
How NOT to zero out your Pusher development quota
In a current project I am doing I was quickly reaching my free development quota over Pusher because all the team and the CI server were using the same account. So we replaced that for a local running Pusher Fake server. Learn how to configure it here
Event-Driven Rails from scratch - Part 1: Motivation
A first part of 4-episode long course about starting a fresh new Rails application with domain events included.
Transactions in Ruby on Rails and Atomic Bugs
A few examples of when transactions in Ruby on Rails don’t work as expected. [more inside]
Moving Databases Across Environments
If you manage several Rails environments and have developers with local environments some examples on how to move tables and full DBs between environments via Rake could be helpful.
Domain-Driven Rails and Rails Event Store news
Hey Rubyflow! I sometimes check our Arkency blog visits and sales stats and I can see that many of you come visit our page and buy our books. Thank you for your support and kind words. I just wanted to tell you that Domain-Driven Rails just got an update and it is now more than 220 pages long. [more inside]
RAILSROOT - CONNECTING RAILS DEVELOPERS
CONNECT WITH PEOPLE WHO SHARE YOUR PASSIONS [more inside]
Why You Should Speak At Meetups and Conferences
This post is for those of you scared or reluctant to present at meetups and conferences: Speak up! We’d like to listen to you. [more inside]
Ruby Hash[key] Showdown :symbol vs “string”
A write-up and a benchmark comparing use of Hash[:symbol] vs Hash[‘string’] for small and large hashes.
How to start a new career as a dev
What Do I Do Now? Some great tips on how to get started in this industry, taking you from your first 15-minute-blog tutorial to finding your first job.
Pleased to announce pry-media
Pleased to announce pry-media. Have you ever got bored while using Pry? Need something to go with a coffee break? A soothing sound? An interesting clip? pry-media is here to help in those situations: $ gem install pry-media.
Turn Rows Into Columns With The Transpose Method
Increase your Array skills by learning about the transpose method! http://www.rubyguides.com/2017/10/ruby-transpose-method/
Creating Configuration Objects in Ruby
This blog post takes a look into several considerations for how you may want to implement a central configuration object for your Ruby projects. Read Article
Hanami v1.1.0
New associations, new CLI with plugins, new custom schema modes, automatic logging of HTTP body, logging filters, minor features, fixes. http://hanamirb.org/blog/2017/10/25/annoucing-hanami-110.html
10 Most Recommended Ruby Programming Books 2017
Today we are going to tell you what our team recommends as top 10 Ruby books. If you are looking for resources to learn Ruby, you found them here. https://blog.active-bridge.com/10-most-recommended-ruby-programming-books-2017#post