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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Take a look at : https://merubygirl.wordpress.com/2017/03/22/spaceship-operator/ , a programming blog for people that already code, wanting to learn Ruby.
Remember there are two layers of your code - Ruby code that you wrote and Ruby’s C engine. Here’s a story of unusual benchmark results that lead to changing Ruby’s internals.
[array].include? often? Do you know that in many cases
Set[array].include? might be faster because it offers a constant look up time when array look up is linear - grows with the size of the array. Check out a simple benchmark results. And compare it to Java (if you’re interested)!
We’re back with the ‘Best Books to Learn Ruby on Rails’ series! This time: RoR books for those with some experience in their background.
A practical example of using Google Spreadsheets as a datastore for a tiny app that take user details. Build a landing page with Sinatra and Google Sheets.
Ruby 2.4.1 has been released. Along with the usual tweaks, Onigmo has been updated (and now supports a new operator), OpenSSL (2.0.2 to 2.0.3), RubyGems (2.6.8 to 2.6.10), a race between read and close has been fixed, fixing including multiple proc blocks as literal hash values, and a lot more besides.
We take modern dependency management solutions for granted these days, but how did it all start? What are the most important ideas and when and where were they introduced?
A quick tip that lets you setup gems that always get installed when using rbenv and ruby-build to install Ruby. Never kick yourself that you don’t have Bundler for this version of Ruby again.
The Rails community thrives on its open source gems. Implementing a well written, well tested and vetted gem can make the difference between days and weeks of development of new features. Read More
Learn how to apply a simple (but powerful) computer science concept to solve problems with Ruby. http://www.blackbytes.info/2017/03/computer-science-in-ruby-stacks/
A majestic monolith works in most cases. But when your Rails app grows multiple apps within, and meets high traffic with large volumes of data — that’s the right time to start thinking about microservices. Read more.
I am Hongli Lai, developer of the Phusion Passenger app server. We think the state of Ruby application delivery & operations can be made easier, faster, more reliable, and better. So we’ve embarked on a mission to do precisely just this (and to improve Passenger while we’re at it). [more inside]
Sometimes you need users to create associated records while filling out a form but it’s hard to do with the built-in Rails forms. Selectize.js gives us a great option for building a select or create field all-in-one to choose associated records or create new ones when filling out a form. https://gorails.com/episodes/select-or-create-with-selectize-js
A gem that backs a “Did you mean firstname.lastname@example.org ?” feature for your registration forms. For common gmai.com hotmil.com yahou.fr and alike typos. Detects burner email addresses too. https://github.com/maximeg/email_inquire