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.
HOWTO parse HTML with Ruby and Nokogiri
Parse and extract data from HTML documents with Ruby and Nokogiri: http://readysteadycode.com/howto-parse-html-with-ruby-and-nokogiri
OpenCommerce Conf – the first Spree-community event since SpreeConf 2014
Join us in New York City on the 28-29th of June: http://opencommerceconf.org/ [more inside]
[Manga-Downloadr] Improving the Crystal/Ruby from bursts to pool stream
Yesterday I implemented and benchmarked a new version of my Manga Downloader (use case for a crawler/scrapper) in Crystal, MRI Ruby and JRuby against by more efficient Elixir version. Today I improved the algorithm to use ThreadPool in Ruby/JRuby and a “Fiber Pool” in Crystal. Check out if we got closer to Elixir this time.
Do you get production error page in development?
Short story about me not reading error message AKA what happens if you create an empty translation file in you config/locales/ directory. http://masa331.github.io/2016/06/07/are_you_getting_production_error_page_in_development.html
geo_coord -- simple useful "geographic coordinates" abstraction
Geo::Coord is a basic class representing [latitude, longitude] pair and incapsulating related concepts and calculations. It tries to create most reasonable and useful interface while having no dependencies and very small amount of clean code.
Exploring Cryptography Fundamentals in Ruby
My first guest post on Sitepoint explains the basics of cryptography with Ruby examples. https://www.sitepoint.com/exploring-cryptography-fundamentals-in-ruby/
The Penguin That Can't Fly
A short story about OOP, interfaces and (Ruby) soft typing. https://lucaguidi.com/2016/06/07/the-penguin-that-cannot-fly.html
KISSing on Rails
My opinion to the current discussions about Rails: [more inside]
Get your gem as RPM easily
Have you ever wanted to get your gem packaged as RPM? It is now pretty easy with Copr! [more inside]
[Manga-Downloadr] Porting from Crystal to Ruby (and a bit of JRuby)
In my path to learn more about Crystal I wrote yet-another-MangaReader-downloader. The code is over here. And then I decided to port it over to Ruby to see how Crystal and Ruby compare. The new Ruby version of the downloader is here. And I wrote a detailed analysis of this experience. I also benchmarked the Crystal, MRI Ruby and JRuby with this scrapper/crawler use case. Check out my new post about it.
A Quest for Better Specs: Prefer Self-Containment
Join me as I walk you through potential problems with the RSpec mindset, and what we should do to make our specs more readable and maintainable. [more inside]
[Screencast] Client Side Validations
Give early warning to users of form errors before they submit. With client side validations, the user can correct any errors prior to submitting the form. https://www.driftingruby.com/episodes/client-side-validations
The problem with your large Rails app isn't Rails
It pains me to see the blame Rails gets for messy large codebases. This post provides a somewhat alternative idea of how we got into this state, and how we may prevent our mistakes from occurring again – https://www.twnsnd.com/posts/the_problem_with_rails_isnt_rails_itself.html
Integrate Brakeman in your workflow
How to integrate Brakeman into your daily workflow: https://buildtoship.com/integrate-brakeman-in-your-workflow/
Active Record vs Ecto: A Tale of 2 ORMs (video)
Great RailsConf 2016 video on ORM design, Elixir / Phoenix and Rails. Enojy! http://confreaks.tv/videos/railsconf2016-activerecord-vs-ecto-a-tale-of-two-orms
Extending Vault CLI with some Ruby love
Extending the basic Vault CLI using Ruby with Thor/Hirb When using Vault you only have access to basic commands, I wrote a CLI tool that extends the Vault CLI to include some useful commands. Ever wanted to show a tree representation of your secret structure? Or just add a secret?
Hyde Press - New (Free) Book - Octopod - Radio Show Podcast Publishing w/ Jekyll
Hello, I’ve added the Octopod User’s Guide by Stefan Haslinger et al to the Hyde Press Bookshelf. Happy Podcasting w/ Octopod (and Ruby). Cheers.
4 Ways To Avoid Monkey Patching
If you’re considering monkey patching but you know it’s a bad idea, here are four alternatives, in order from most preferable to least preferable.
A conversational introduction to rom-rb
Good intro with a preview of the upcoming features. Check it out!
Ruby Podcast Episode 6
Listen to the latest Ruby and Rails related news, checkout the Ruby podcast episode 6.