Ruby Icon

Ruby

Ruby is a scripting language designed for simplified object-oriented programming.
275 Stories
All Topics

Rails medium.com

Powering your Ruby & Rails development with Pry

I use Pry (a runtime developer console) all the time and I still learned a few tricks from this post. Here's a doozy for working in Rails apps: there’s show-routes , which does what the name implies, and also takes a -G flag for grepping. No more starting up a new shell to execute rake routes | grep login and wait for it to boot up Rails just to give us the routes on the side! This is the one and only tool that i miss when working with Elixir and Phoenix. Yes, I know there's IEX.pry built in, but it doesn't offer as smooth a workflow as Ruby's pry. Maybe someday...

read more...

Lyndsey github.com

🎯 The best fastlane plugin to understand and tame misbehaving iOS tests

Lyndsey Ferguson: Unit testing and the tests themselves are written by humans. Humans are prone to error. Unit tests and the testing infrastructure can be imperfect. The test_center plugin includes tools that remove (or alleviate) the effects of an imperfect test infrastructure. (fastlane is a popular way to automate building/releasing iOS and Android apps.)

read more...

Joseph Emmanuel DL Dayo github.com

A pure Ruby implementation of a TensorFlow-like library with provisions for hardware acceleration

A reimplementation of TensorFlow for Ruby. This is a ground up implementation with no dependency on TensorFlow. Effort has been made to make the programming style as near to TensorFlow as possible, comes with a pure Ruby evaluator by default with support for an opencl evaluator for large models and datasets.

read more...

Mauricio Gomes github.com

Stealth – a Ruby framework for creating conversational bots

This is a lot like Ruby on Rails (even with ActiveSupport & ActiveRecord built-in), but instead of views you have replies. It works for both voice-based and text-based bots and has NLP offerings baked in too. 🍰 The only bummer is that service integrations are currently limited to Facebook Messenger and Twilio SMS. That's pretty normal for a new open source offering, though, and it's a great place to hop in and contribute. ✊

read more...

Tom Black blacktm.com

A guide to getting started with Ruby on WebAssembly

Tom Black: With the advent of WebAssembly, the race is on to bring new languages to the web. This is the first example (I think!) of a Ruby interpreter running in the browser. The path to get there is circuitous. Ruby script → MRuby bytecode → C → emcc → LLVM → Binaryen → WebAssembly The good news is access to that path is just a gem install wasm away. Read the entire post for some great context and history around these efforts.

read more...

Rails rollbar.com

Top 10 errors from 1000+ Ruby on Rails projects (and how to avoid them)

Nice post by our friends at Rollbar: We looked at our database of thousands of projects and found the top 10 errors in Ruby on Rails projects. 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. I know many of these like the back of my hand. 🤣...😭

read more...

Chris Frank github.com

Dynamically filter and sort data via URL params in any Rack app

If your Ruby/Rack app renders a list of database records, and you want those records to be filterable via URL params, Rack::Reducer can help. I like that this is Rack-focused, since Rails already has plenty of solutions in this space. The README includes examples of use with Sinatra, Hanami, Roda, and other commonly used Ruby web libraries.

read more...

David Heinemeier Hansson Avatar The Changelog #286

JavaScript sprinkles in Basecamp turned Stimulus

David Heinemeier Hansson (DHH) shares the story of how JavaScript sprinkles in Basecamp evolved into a full-fledged framework called Stimulus. We talked about ins and outs of Basecamp as it is today, Ruby, JavaScript, David's somewhat new found love for JavaScript, how they open source because they can, and David's new YouTube series called "On Writing Software Well".

read more...

Ruby github.com

A lightning fast JSON:API serializer for Ruby objects

The Netflix team managed to squeeze out some huge performance improvements over Active Model Serializers: We want to ensure that with every change on this library, serialization time is at least 25 times faster than Active Model Serializers on up to current benchmark of 1000 records. At first glance I thought this was a drop-in replacement for AMS, which would've been epic, but it has its own API. That being said, its API is pretty similar and looks easy to use. Exactly how much faster is this library? It can serialize 250 records in 3.01 ms vs AMS's 138.71 ms!

read more...

Linux jvns.ca

How do you spy on a program running in a container?

Julia Evans: Yesterday I added Linux container support to rbspy, so that an instance of rbspy running on the host machine can profile Ruby programs running in containers... I thought it would be fun to explain what adding “container support” involves in practice! (rbspy is her sampling profiler for Ruby.) This bit is interesting, and why this post isn't tagged with the Docker topic: We didn’t need to care about Docker or anything like that – it’s irrelevant what container runtime our containers are using, and we certainly don’t interact with Docker at all. I guess a few simple syscalls is all it takes!

read more...

Mike Perham Avatar The Changelog #274

Faktory and the future of background jobs

Mike Perham is back for his 4th appearance to talk about his new project Faktory, a new background job system that's aiming to bring the best practices developed over the last five years in Sidekiq to every programming language. We catch up with Mike on the continued success and model of Sidekiq, the future of background jobs, his thoughts on RocksDB in Faktory vs BoltDB, Redis, or SQLite, how he plans to support Sidekiq for the next 10 years, and his thoughts on Faktory being a SaaS option in the future.

read more...

Sean Griffin Avatar The Changelog #270

Rails as a Day Job, Diesel on the Side with Sean Griffin

Sean Griffin joins the show to talk about doing Rails full-time, his love of Rust. and his project Diesel - a safe, extensible ORM and query builder for Rust. We discuss Sean’s path to working full-time on Rails, what he works on specifically, why Rust, why Diesel, and how much of Diesel’s design and featureset is a product of his experience with ActiveRecord and Rails.

read more...
0:00 / 0:00