Planet Ruby Flow

Updated Thursday, 21 February 2019 07:30
{}
Ruby Flow ( Feed )
Friday, 20 April 2018
Ruby’s New Infinite Range Syntax: (0..)
Ruby 2.6 will be released with support for a new syntax denoting an endless, infinite range: medium.com/square-corner-blog/rubys-new-infinite-range-syntax-0-97777cf06270
Ruby 2.6 will be released with support for a new syntax denoting an endless, infinite range: https://medium.com/square-corner-blog/rubys-new-infinite-range-syntax-0-97777cf06270
Get the profile information from Github, Twitter or Instagram without the API
Have you ever tried to pull the information from the social profile using given URL? Configuring the API access may be a time-consuming and difficult thing to do. On the other hand, scraping a profile may be not as easy as it seems to be. To solve that kind of problems I created the Hawker gem. READ
Have you ever tried to pull the information from the social profile using given URL? Configuring the API access may be a time-consuming and difficult thing to do. On the other hand, scraping a profile may be not as easy as it seems to be. To solve that kind of problems I created the Hawker gem. READ MORE
Ruby 2.5.1 Rails 5.2 Bootstrap Heroku starter app
github.com/diowa/ruby2-rails5-bootstrap-heroku
Two levels deep Service Objects
I personally prefer small classes, short, single purpose methods over the one big piece of code. Having said that I have to admit that this approach has a significant downside - methods are short quite often because internally they call other methods, which call other methods, which call other method
I personally prefer small classes, short, single purpose methods over the one big piece of code. Having said that I have to admit that this approach has a significant downside - methods are short quite often because internally they call other methods, which call other methods, which call other methods… Let’s look at another approach to writing your Service Objects https://bpohoriletz.github.io/2018/04/20/two-levels-deep-service-objects.html
Working Effectively with Data Factories Using FactoryBot
Learn about patterns that can help you use factories more effectively with examples based on Ruby’s FactoryBot: semaphoreci.com/community/tutorials/working-effectively-with-data-factories-using-factorybot
Learn about patterns that can help you use factories more effectively with examples based on Ruby’s FactoryBot: https://semaphoreci.com/community/tutorials/working-effectively-with-data-factories-using-factorybot
Rails 5.2 added Date#prev_occurring and Date#next_occurring to return specified next
blog.bigbinary.com/2018/04/17/rails-5-2-adds-date-methods-to-return-specified-next-or-previous-occurring-day-of-week.html
{}
Ruby Flow ( Feed )
Thursday, 19 April 2018
Using Webpacker in Ruby on Rails applications
Walkthrough on using ES6 in Ruby on Rails applications today with Webpacker: with Bootstrap, Turbolinks, fonts, and other images.
Walkthrough on using ES6 in Ruby on Rails applications today with Webpacker: with Bootstrap, Turbolinks, fonts, and other images.
Linear regression in Ruby
want to get into machine learning? Follow along in this short post on how to implement linear regression in ruby. Expect some math, a few terminators and most importantly, ruby code: medium.com/@oem_83498/linear-regression-in-ruby-a170f9a892e5?source=linkShare-c59519c86fc7-1524163748
want to get into machine learning? Follow along in this short post on how to implement linear regression in ruby. Expect some math, a few terminators and most importantly, ruby code: https://medium.com/@oem_83498/linear-regression-in-ruby-a170f9a892e5?source=linkShare-c59519c86fc7-1524163748
Top 10 errors from 1000+ Ruby on Rails projects (and how to avoid them)
We’ve compiled a list of the top 10 errors from more than 1000 Ruby on Rails projects in production. We’re going to show you what causes them and how to prevent them from happening. If you avoid these “gotchas,” it’ll make you a better developer.
We’ve compiled a list of the top 10 errors from more than 1000 Ruby on Rails projects in production. We’re going to show you what causes them and how to prevent them from happening. If you avoid these “gotchas,” it’ll make you a better developer.
Ruby's NameError has approximate knowledge of many things.
NameError is raised when you reference a constant or a variable which isn’t defined in the current context. See code examples and learn how Ruby 2.3+ helps you debug NameError.
NameError is raised when you reference a constant or a variable which isn’t defined in the current context. See code examples and learn how Ruby 2.3+ helps you debug NameError.
The best code editors for remote pair programming
This article looks at the strengths and areas for improvement of some of the best code editors out there for collaborative work
This article looks at the strengths and areas for improvement of some of the best code editors out there for collaborative work
Who’s responsible for the software we build?
Turns out running a company isn’t just about money, fame or even cool products and happy customers. We have a social responsibility towards our employees and society at large: blog.phusion.nl/2018/04/19/whos-responsible-for-the-software-we-build/
Turns out running a company isn’t just about money, fame or even cool products and happy customers. We have a social responsibility towards our employees and society at large: https://blog.phusion.nl/2018/04/19/whos-responsible-for-the-software-we-build/
{}
Ruby Flow ( Feed )
Wednesday, 18 April 2018
How To Create A Memory Leak in Ruby
There are a few articles out there about how to find memory leaks. But do you know what a memory leak looks like? www.rubyguides.com/2018/04/ruby-memory-leak/
There are a few articles out there about how to find memory leaks. But do you know what a memory leak looks like? http://www.rubyguides.com/2018/04/ruby-memory-leak/
Running a Government Department on Ruby for over 12 Years - Jeremy Evans
Great talk from Jeremy Evans at Isle of Ruby this last week: www.youtube.com/watch?v=2Rm7wLNmsco
Great talk from Jeremy Evans at Isle of Ruby this last week: https://www.youtube.com/watch?v=2Rm7wLNmsco
Executing Python code with Ruby
Useful for accessing Python standard libraries, and re-using code already written in Python without having to port it to Ruby: readysteadycode.com/howto-execute-python-code-with-ruby
Useful for accessing Python standard libraries, and re-using code already written in Python without having to port it to Ruby: https://readysteadycode.com/howto-execute-python-code-with-ruby
Microservices for Startups: An Interview with Julien Lemoine of Algolia
In this interview with Julien Lemoine of Algolia, he discusses how his team uses microservices to provide product teams with the resources & tools they need to create fast, relevant search using a powerful hosted search engine API.
In this interview with Julien Lemoine of Algolia, he discusses how his team uses microservices to provide product teams with the resources & tools they need to create fast, relevant search using a powerful hosted search engine API.
Ruby 2.5 enables Thread.report_on_exception by default
Threads are hard to work because when they die then , by default, we don’t get much info. This new feature in ruby 2.5 would provide us more info when threads die due to an uncaught exception. Originally this feature was discussed 6 years ago. Read on to see why it took so long.
Threads are hard to work because when they die then , by default, we don’t get much info. This new feature in ruby 2.5 would provide us more info when threads die due to an uncaught exception. Originally this feature was discussed 6 years ago. Read on to see why it took so long.
Handling CORS issues in your Rails API
Anyone who has ever attempted to write an API will at some point come across a CORS error when an attempting to make a CRUD request to a server. Read More
Anyone who has ever attempted to write an API will at some point come across a CORS error when an attempting to make a CRUD request to a server. Read More
First Steps with Sinatra as a Rails Developer - Part 1
The first part of a quick guide how to build a full-stack app in Sinatra from Rails developer’s perspective: READ MORE
The first part of a quick guide how to build a full-stack app in Sinatra from Rails developer’s perspective: READ MORE
{}
Ruby Flow ( Feed )
Tuesday, 17 April 2018
Isle of Ruby 2018 - Measuring Chronic Pain Outcomes with Ruby and Twilio
Several of the Isle of Ruby talks were sneakily recorded unofficially by yours truly - the first here is my talk (intro starts at 1:50) www.youtube.com/watch?v=Qf0S29bJbPg
Several of the Isle of Ruby talks were sneakily recorded unofficially by yours truly - the first here is my talk (intro starts at 1:50) https://www.youtube.com/watch?v=Qf0S29bJbPg
Embedded 0.4, a plugin for Rails/ActiveRecord
With embedded you can create Value Objects (simple POROs) with multiple attributes from your ActiveRecord models using a simple syntactic sugar.
With embedded you can create Value Objects (simple POROs) with multiple attributes from your ActiveRecord models using a simple syntactic sugar.
Ruby instance_eval
Adding methods to an instance “on-the-fly” is a pretty common pattern in Ruby (activerecord, activesupport, etc..).
Adding methods to an instance “on-the-fly” is a pretty common pattern in Ruby (activerecord, activesupport, etc..).
{}
Ruby Flow ( Feed )
Monday, 16 April 2018
Better sessions with JWT
Have you ever had issues building an authentication microservice or an API for your SPA using JWT? If so then today is your lucky day!
Have you ever had issues building an authentication microservice or an API for your SPA using JWT? If so then today is your lucky day!

pluto.models/1.4.0, feed.parser/1.0.0, feed.filter/1.1.1 - Ruby/2.0.0 (2014-11-13/x86_64-linux) on Rails/4.2.0 (production)