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.
You need acceptance tests for your app, check why
While unit tests are focused on a low level of interaction, acceptance tests are focused on a high level of interaction. What does it mean? http://pdabrowski.com/blog/ruby-on-rails/testing/acceptance-tests/
Using Kiba ETL & Sidekiq (or Faktory) together
I’ve been using Kiba ETL (Ruby data processing framework) and Sidekiq together in production for a while now, to write flexible data synchronisation jobs. [more inside]
Rails: do you know 4 most important reasons to write code tests?
When I was starting my programming journey I didn’t care about tests. I launched my first startup and it was a maintenance nightmare. Verify if you know the most important reasons for writing code tests - http://pdabrowski.com/blog/ruby-on-rails/testing/4-reasons-why-you-should-test-code/
Awesome Ruby News & Stat(istic)s Page incl. (3x3, Conferences, Best Gems, and More)
Hello, I’ve started a new Awesome News Page @ Planet Ruby that collects ruby news incl. 3x3, 2.6, etc., conferences & camps, libraries, stats & benchmarks and more. How do you get your ruby news? How do you find libraries / gems? Anything missing. Updates welcome. Cheers. Prosit 2018!
Rails belongs_to association - refactor queries like you never did before
Since belongs_to relation is one of the most common association in each Rails application I bet that you deal with it many times in your application. I will show you how to refactor your queries and make them reusable - http://pdabrowski.com/blog/ruby-on-rails/rails-belongs-to-association-refactoring/
Shoes Is Alive
Do you remember Shoes? It is a simple cross platform GUI for Ruby created by the mythical _why_the_lucky_stiff. Did you know it is still maintained? Shoes 3.3.4 runs on Windows, OSX, and Linux plus a few more variations like Raspberry Pi and FreeBSD. There are new widgets and features among the bug fixes. There is also a jRuby reimplementation of the original Shoes known as Shoes4. Start your exploration here and join the community on Facebook and Github.
simple-admin v0.1.1-alpha released
simple-admin is an efficient and convenient framework for creating admin dashboards in an instant. Is a new way to customize your admin panel, demo.
Questions to ask a freelance Rails developer
Qualifying freelance developers as a non-technical person can be challenging. These questions can help you make sure you pick the right partner. https://blog.planetargon.com/entries/questions-to-ask-when-hiring-a-freelance-rails-developer
Privacy and Exposure, Gatekeepers and Privileged Consumers
Exploring the boundaries of encapsulation using protected methods and refinements: https://sonnym.github.io/2018/01/03/privacy-and-exposure-gatekeeprs-and-privileged-consumers/
Deploying to AWS: Dockerizing a Rails app [VIDEO]
What’s the 2018 approach to deploying a Rails app to AWS? We’ll be covering how to Dockerize a Rails app, AWS Fargate, logging, monitoring, and CDN support. [more inside]
Hacklines - The Google of all things Ruby
Discover the latest Ruby & Rails articles, tutorials, libraries, and code snippets from around the web to keep your programming skills sharp: https://hacklines.com
The essence of queries encapsulation in a Rails model
Check what is the proper way of encapsulating queries in a Rails model - http://pdabrowski.com/blog/ruby-on-rails/encapsulating-queries-in-a-rails-model/
Rearmed-JS - A library inspired by Ruby to make your JS code readable & relaxing
While working with some basic constructs in Javascript, I always get choked up trying to do something that should have been a dead simple iteration method or string method in Ruby, yet it ends up being the most disgusting code ever. Well I have written a library Rearmed-JS that solves a large part of this problem by taking inspiration from Ruby. This library is a collection of helpful methods and monkey patches for Arrays, Objects, Numbers, and Strings that will make your code more relaxing and more readable by taking inspiration from Ruby. Works in the browser and NodeJS. https://github.com/westonganger/rearmed-js
Should You Always Start with a Monolith?
Should You Always Start with a Monolith? - Conventional wisdom says start with a monolith but are there exceptions? This article will help you choose the right path based on your own situation.
Gem Series ++ Web Services (HTTP JSON APIs) the Modern Micro Way - Free Book
Hello, I added another free (online) book to the Yuki & Moto bookshelf. Let’s welcome the second volume to the new Gem Series: Web Services (HTTP JSON APIs) the Modern Micro Way - almost-sinatra • webservice • worlddb • beerdb • sportdb • feedparser • json-next • feedtxt and more. Happy new year. Prosit 2018. Cheers.
Memery: a minimalistic gem for memoization
Memery is a new small Ruby gem based on Module.prepend feature. Check it out if you like to memoize method call results in your code.
Everything You Need to Know About Nil
Happy new year! Today I bring you a new article about NIL. What is it? Where does it come from? https://www.rubyguides.com/2018/01/ruby-nil/
Kafka on Rails: Using Kafka with Ruby on Rails - Getting started with Ruby a
Second part of my multi-part tutorial on building scalable systems with Ruby, Rails, Apache Kafka, Karafka and couple other tools. https://medium.com/@maciejmensfeld/kafka-on-rails-using-kafka-with-ruby-on-rails-part-2-getting-started-with-ruby-and-kafka-44535c6edb26
Navigating the Ruby Standard Library
Ruby’s standard library is divided into three parts: Default gems, bundled gems, and standard libraries which are no gems (yet). On stdgems.org, there is now a commented list of standard libraries not-yet-turned-gems in addition to the standard gems overview.
Gem Series ++ Ruby Project Automation & Database Documentation Tools - Free Book
Hello, I added another free (online) book to the Yuki & Moto bookshelf. Let’s welcome the new Gem Series. First volume: Project Automation & Database Documentation Tools - quik • hoe • schemadoc • erd • annotate • and more. Happy new year. Prosit 2018. Cheers.
2 Easy Ways to Check Code Coverage
If you find yourself reviewing code (your own or a teammate’s) you’ll probably want to know about the code coverage any changes. This post walks through a couple ways to easily find out which parts of changed code are covered.
5 Ways to Deal with Nil in Ruby
This article suggests some ways to prevent, or at least mitigate, the occurrence of nil values from causing problems.