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.
Proper Regexp Anchoring
In regular expressions, ^ does not match the start of a string. It might in other languages but not Ruby. That’s part of what makes this mistake so common. While we’re on the topic, $ doesn’t match the end of a string. Learn the right way.
What kind of Ruby app should you build if you want to get a job?
So you want to get hired as a Ruby developer, but you don’t have any real-world experience. What do you do? How can you separate yourself from the horde of bootcamp grads and junior developers who have only built Twitter and Reddit clones? Find out best way to impress potential employers with your work
pluck_to_hash: new version released
Released new version of pluck_to_hash gem. Added performance optimizations and ability to specify Hash type or Struct type to return. More details in the Readme. [more inside]
faster_path gem released!
Path handling is a performance bottleneck in web frameworks. This gem is a project that rewrites those costly server time areas in the Rust language to make your Ruby application run more efficiently. This gem is young! Looking for like-minded developers to participate in development! There’s no C code involved and Rust is required for the extension to build. faster_path
Duck-typing with #to_proc
One of the greatest Ruby mysteries for me has always been the idiomatic Symbol#to_proc which is usually used to cast a symbol to a block usually passed to some enumerator. In this post we explore what other powerful uses and potential #to_proc has
Awesome Ruby
Awesome Ruby is a collection of awesome Ruby gems, tools, frameworks and software. Your go-to Ruby Toolbox. Awesome Ruby’s goal is to help you find the software and libraries you need. Made by developers for developers. It is part of the LibHunt network.
Thredded v0.5.0
Thredded, the best Rails forums engine, has just released v0.5.0. This is a major release that adds topic subscriptions and a basic moderation system. Check out the live demo at thredded.org. [more inside]
Solidus eCommerce: Cleaning up the Cart
In this episode we clean up the cart page and add the cart button back into the navigation bar. We work through overriding the views from the solidus codebase and also discuss the ramifications of building a solidus theme with this method.
Jekyll in Action - Build a World Classics Bookshelf w/ Markdown n Ruby
Hello, I’ve added a bookshelf to the World Classics series that collects the world’s greatest (literature) books in Markdown, that is, plain old text with some simple formatting conventions. Using the Octobook Classics Book Theme turns the pages into a single-page (online) book. The first two books in the series include: 1) The Trial by Franz Kafka and 2) Strange Case of Dr. Jekyll and Mr. Hyde by Robert Louis Stevenson. Happy reading. Cheers.
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]