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.
On sustainable testing
This investigation of RSpec styles and practices also raises a question of sustainable tests, e.g. tests which would be maintained and update as the system grows.
How we switched from Sprockets to Webpack
We recently added Webpack to our Rails 4.2 app using the new Webpacker gem. In this post, I’ll share some challenges and lessons we learned along the way. https://rossta.net/blog/from-sprockets-to-webpack.html
An Introduction to Travis CI
Before you start in to our CI, one must understand what is CI and why the CI is going to help us the development and what is a DevOps. [more inside]
WebSocket Director
Command line tool for testing websocket servers using scenarios.
Understanding the basic of functional programming with ruby
Learn some of the aspects of functional programing language with Ruby. And see how useful is to use it in your daily tasks.
DuckRails docker image available (v2.0.0)
DuckRails v2.0.0 docker image is now available at docker hub. The Dockerfile is available also in the project’s repo at GitHub.
Useful advice on how to approach writing tests in Rails (or any language/framework)
Frameworks, TDD, what to test/what not to test: What constitutes good testing in Rails?
Ruby's Exception Class (Rails rescues Exception how many times?)
Learn all about Ruby’s Exception class in this week’s Exceptional Creatures profile.
An unorthodox approach to Ruby performance profiling when everything else fails
I had to follow an unconventional approach to understand why and where our Ruby app is so slow, more here: https://blog.kollegorna.se/ruby-performance-profiling-an-unorthodox-approach-69c549e3293b [more inside]
Scout introduces database monitoring for Rails apps
The database - not Ruby 😮 - is the most common performance bottleneck for Rails apps. Scout adds database monitoring to its app monitoring product to make it easier to identify expensive queries and resource issues.
[Screencast] Speeding Up Tests
Slow tests can slow down your development process. Using parallel_tests, you can speed up your test suite by multiple threads and running the tests in groups. https://www.driftingruby.com/episodes/speeding-up-tests
A pitfall of the &. operator in Ruby
A story about changed behaviour when I refactored to use &. operator. [more inside]
Wannabe Bool gem updated
If string, numeric, symbol and nil values wanna be a boolean value, they can with the new to_b method. For sake of readability (and personal choice), version 0.7.0 adds two aliases methods: [more inside]
🎧 Rails as a Day Job, Diesel on the Side
Sean Griffin joins The Changelog to talk about doing Rails full-time, his love of Rust. and his project Diesel - a safe, extensible ORM and query builder for Rust.
Angular 4 with Rails 5
Angular is a framework for building client applications in HTML and either JavaScript or a language like TypeScript that compiles to JavaScript. [more inside]
Slideshow (S9) Template Gallery - Alternative to PowerPoint n Keynote in Ruby
Hello, I’ve updated the Slideshow (S9) Template Gallery. Write your slides / presentations / talks in plain text with markdown formatting conventions (eg kramdown) and use the ruby slideshow (s9) tool to generate an all-in-one (static) webpage using any of the templates e.g. s6, reveal.js, impress.js, bespoke.js, deck.js, shower, and some more or build / use your very own. Cheers.
Arbolito 0.3.0 released
I’ve released a new version of Arbolito, a gem to fetch currency rates. As Yahoo Finance API is not working, I’ve introduced a new API. Check the README and send your feedback.
Interactors in Ruby — easy as cake, simple as pie
Ever heard of Interactor? It hasn’t heard about you either. That’s because it only has one responsibility in life. Learn what it does, how it works and a couple of no-no’s in this opinionated article: https://goiabada.blog/interactors-in-ruby-easy-as-cake-simple-as-pie-33f66de2eb78
Form Core - A demo that building dynamic form model based on virtual model technique
form_core is a quiet complete demo to show a form application, that can define a complex form (many kinds of data types, nested form, refer to other model in physics), render it with Rails form builder, and support serialize its instance (you can write your own serializer). [more inside]
Understanding why and how to add idempotent requests to your APIs
I explored a bit the idea of how to add a idempotent requests mechanism to an API, and wrote about three possible solutions here. Check it out and drop a comment!
Transactions in Rails and Atomic Bugs
“Transactions in Ruby on Rails can be deceptively tricky to master. The following illustrates a few examples of when using simple transactions can go awry and inadvertently fail to provide atomicity.”