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.
101: Actual refactoring - real life story
This blog note is next in our cycle aimed at less-experienced developers. This time we will start with real-life code, that I’ve found in one of our projects. Through a series of steps, we will refactor it to excellent object structure, separated from other parts of the application. Read more…
Statistics - Build Yourself An Up-to-Date Cattributes Rarity & Popularity Cheatsheet
Hello, I’ve added a new chapter to the (free online) book “Programming Crypto Collectibles with Ruby” titled “Statistics, Statistics, Statistics - Build Yourself An Up-to-Date Cattributes Rarity & Popularity Cheatsheet from the (Unofficial) CryptoKitties Web Service @ api.cryptokitties.co/cattributes”. Happy data wrangling with ruby. Cheers. Prost.
How to use the Ruby 2.6 JIT
Ruby 2.6 was just released and includes a new experimental just-in-time (JIT) compiler. Here’s a quick screencast to learn How to use the Ruby 2.6 JIT.
Ruby in AWS Lambda with PostgreSQL / Nokogiri
Running Ruby-based Lambda functions with binary dependencies can be a bit tricky, so I wrote something to document how I got this working smoothly. [more inside]
Why RSpec users should care about Rails system tests
RSpec has had feature tests for a long time, so what’s the big deal with Rails system tests?
Programming Crypto Collectibiles Step-by-Step Guide. Let's start w/ CryptoKitties...
I’ve started a new (free online) book on github titled “Programming Crypto Collectibiles Step-by-Step Book / Guide”. Let’s start with CryptoKitties & Copycats. Inside Unique Bits & Bytes on the Blockchain…
Tests as Must Have for Complex Projects
Development in its pure form is not only writing code, but also a number of manipulations that are necessary for its correct and timely work. Testing in development takes the lion’s share of both time and resources, but proper testing will bring only time savings and the best result for the client. Read More.
Function composition >> Ruby
Last week Proc#« and Proc#» got merged into Ruby 2.6. This opens the door for function composition. Here’s my opinion as to why this is a great leap forward for Ruby and what needs to improve. Read more
Rails 5 API + JWT Setup : Easy familiar way with Devise
Supercharge your next application with a solid setup of Rails 5 API & Devise JWT authentication: [more inside]
Using to_enum with methods that take a block
This post describes how to turn methods that use blocks into enumerators using the to_enum method and why this would be useful.
2018 - A Year of Ruby Conferences & Camps ++ 2019 - What's Upcoming?
Hello, you can find all ruby conferences & camps from around the world of the year 2018 @ https://planetruby.github.io/calendar/2018 What was your favorite? Any highlights? ++ For the upcoming year 2019 you can find all ruby conferences & camps @ https://planetruby.github.io/calendar/2019 What’re looking forward too? Any recommendations?
2018: Review of a year o blogging about Ruby
2018 was my first year as a tech blogger. [more inside]
Setting up Ruby on Rails Development Environment on Mojave 10.14.2
Sometimes we have to configure a new development machine, whether it is for ourselves or a friend. We often find that there are some little pieces of our environment that we have forgotten about or have neglected to document. This is my documentation for a ready-to-work development environment for Ruby on Rails. [more inside]
Ruby Quiz - Challenge #9 - Tally Up the Standings Table for English Premier League
It’s Friday. Ruby Quiz time! Join us. Let’s keep going with a new Ruby Quiz every fortnight. Ruby Quiz - Challenge #9 - Tally Up / Calculate the Standings Table for the English Premier League 2018/19 Season - And the Winner is… Liverpool? Manchester City? Send your code snippets to ruby-talk. Happy data wrangling and keeping scores with ruby.
Ruby 2.6
Christmas is around the corner, but I couldn’t wait and I have already been trying the new Ruby release! Ruby 2.6, apart from efficient improvements, which include the initial implementation of a just-in-time compiler, brings us many new cool features (including my Array#union and Array#difference methods). Taking advance of the cold outside, let’s discover some of them! [more inside]
The Three Ghosts of FizzBuzz: A Christmas Story
A Christmas-y journey to three different programming paradigms, all using Ruby. [more inside]
Maily v0.8.2 release
A new version of Maily (https://github.com/markets/maily) v0.8.2 has been published. Mainly, includes fixes for incompatibilities with last mail gem (released last month and internal Rails dep), which causes HTML emails renders always as text. So if you are using that mail version, please upgrade.
Ruby 2.6 JIT - Progress and Future
Over 10 months, Ruby’s JIT has evolved for the following focuses: Performance Portability Stability Security Let me show you what we’ve achieved for each of them in Ruby 2.6.
base32-alphabets gem v1.0 Update - encode/decode bits & bytes in 5bit groups (2^5=32)
Encode / decode (big) numbers in 5-bit groups (2^5=32) with Kai, Crockford or Electrologica notation / alphabet with the updated base32-alphabets library / gem. Happy bits & bytes slicing with ruby (or deciphering the CryptoKitties genome / genes / 240-bit integer number). Cheers. Prost.
What are Value Objects and benefits of using them
Value object is an immutable object without any history or distinct identity. It is represented and compared by value (combination of its attributes). Value objects are very handy for several reasons. This post explores them: [more inside]
Elixir vs. Ruby and Phoenix vs. Rails: What to Choose and Why
Now a new programming language called Elixir and its the most popular Phoenix framework have been discussed by web developers for a couple of years. The most favorite topics are Elixir vs. Ruby and Phoenix vs. Rails because Elixir has caused the greatest interest in the community of Ruby developers. [more inside]