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.
Symbol to_proc Hack
Learn how to bind variables to a block variable at run-time by studying the Symbol to_proc Hack
Introducing URN gem
Ruby library to validate and normalize URNs according to RFC 2141. https://github.com/altmetric/urn
My New Favorite Enumerable Method
In this post I share some of my favorite Enumerable methods with examples. http://www.blackbytes.info/2016/03/enumerable-methods/
The Case Against Dynamic Typing
http://blog.debugme.eu/dynamic-typing/ An argument for dynamic typing is that by not enforcing the types of a function’s parameters, the function becomes more generalized, and thus more flexible and reusable. The author argues that this flexibility versus automatically-verifiable correctness of the system is not a trade-off we need to make. [more inside]
PostgreSQL and Rails, sitting in a tree: working with huge datasets
A post on working with large hierarchical structures in a Ruby on Rails + PostgreSQL application. The author does an overview of the most popular patterns, benchmarks them, and proves why the Closure Tree pattern, while not being very popular, sometimes outperforms the competition by far. [more inside]
Denshobato Gem Released! + Tutorial
Denshobato - is a Rails gem that helps models communicate with each other. It gives simple api for creating a complete conversation system. [more inside]
Building a microservice in Ruby
How can we build a microservice in Ruby? In this post I describe the way we built a simple mailer service with RabbitMQ and sneakers.
New aruba release - v0.14.0
I just released a new version of aruba 0.14.0. See our History.md. Alternatively have a look at the diff on Github.
Surrogate WebSockets Alongside Rails
Parker Selbert is showing how to leverage Elixir’s productive tooling to build out a WebSocket microservice. Read the article here.
Dependency Inversion Principle
Learn Dependency Inversion Principle by examples.
Java for Rubyists
Mark Phelps approaches Java from a Rubyist’s view. Why learn this less enjoyable-looking language and how do you get started?
Easy and active-record-like interface to deal with http json services
Master microservice architectures! Access data provided by http json services with ease. Just like using Active-Record: https://github.com/local-ch/lhs
Refactoring in Ruby: Primitive Obsession
How to refactor your way out of the primitive obsession code smell, with extensive examples in Ruby. Check it out here.
Ruby Developer - Essential Bash commands
Most of us, Ruby programmers, know Ruby pretty well, but how well do you know your console. In this series we dive into improving your bash skills. https://www.zmwolski.com/Ruby-developer-essential-bash-commands
How to upgrade to Rails 5
Ruby on Rails version 5 is just around the corner, with 5.0.0.beta3 released in late February. Is your app ready? Follow these best practices to make your upgrade go as smoothly as possible.
Make the Impossible Possible
Great things are buried where you don’t expect them. Like jewels buried in the earth a mistake can lead to great possibilities. When you choose not to hear the naysayers you may just Make the Impossible Possible
Wye Tech News #13
A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
markdownlint (mdl) tool (gem)- document style/rules checker - new docu (book edition)
Hello, if anybody is using markdown - I’ve put together an online book edition (using the manuscripts format) of the markdownlint documentation and style rules by Mark Harrison. Again thousands thanks to Mark Harrison for the great tool and documentation. See Markdown Lint Tool Documentation (Book Edition). Cheers. PS: Interested in more docs as books? See the Hyde Press Bookshelf.
Structuring Models
Here’s a good way to structure models that you can extend to any object. [MORE INSIDE]
Upload multiple files using Dropzonejs in Ruby on Rails
You can read more in: http://goo.gl/nLJxVQ
Simple signup and login in your app (Part 2)
This is part 2 of my blog post series about creating a simple signup and sign in flow using Rails’ built-in has_secure_password features.