Posts tagged ruby
174 posts
How do I know whether my Rails app is thread-safe or not?
simple full text search using postgres on rails (Example)
How to Choose Your Ruby Interpreters and Runtimes | Toptal
textacular/textacular: Textacular exposes full text search capabilities from PostgreSQL, and allows you to declare full text indexes. Textacularwill extend ActiveRecord with named_scope methods making searching easy and fun!
Need faster code? Try Multithreading – Hacker Noon
Untangling Ruby Threads
Understanding a fundamental Ruby abstraction for concurrency | via @codeship
Introduction to Concurrency Models with Ruby. Part I
Useful things you can do with Rails console
Discover essential tips and tricks to boost your productivity with Ruby on Rails console commands and features.
The Ruby Toolbox - Know your options!
Explore and compare open source Ruby libraries
The Thread API : Concurrent, colorless Ruby
👋🏼 This is part of series on concurrency, parallelism and asynchronous programming in Ruby. It’s a deep dive, so it’s divided into 12 main parts:
Your Ruby programs are always multi-threaded: Part 1 Your Ruby programs are always multi-threaded: Part 2 Consistent, request-local state Ruby methods are colorless The Thread API: Concurrent, colorless Ruby Interrupting Threads: Concurrent, colorless Ruby Thread and its MaNy friends: Concurrent, colorless Ruby Fibers: Concurrent, colorless Ruby Processes, Ractors and alternative runtimes: Parallel Ruby Scaling concurrency: Streaming Ruby Abstracted, concurrent Ruby Closing thoughts, kicking the tires and tangents How I dive into CRuby concurrency You’re reading “The Thread API: Concurrent, colorless Ruby”.
Understanding Hash Value Omission in Ruby
Learn about hash value omission in Ruby, their benefits, examples, and implementation guidelines for more concise code
Twirp: Make serving a Twirp RPC Services as easy and familiar as Rails controllers.
Make serving a Twirp RPC Services as easy and familiar as Rails controllers. - collectiveidea/twirp-rails
ankane/ahoy: Simple, powerful, first-party analytics for Rails
Simple, powerful, first-party analytics for Rails. Contribute to ankane/ahoy development by creating an account on GitHub.
Debugbar For Ruby on Rails
Rails debugging dev tools for faster development. Inspect your request details (queries, logs, cache, jobs and more).
Introduction - Ruby Science by thoughtbot
Service Objects | Jared Norman
Service Objects are a popular software design pattern in the Ruby on Rails community. They are used to extract procedural logic away from models and controllers and into their own objects.
Shale - Ruby object mapper and serializer for XML, JSON, TOML and YAML
Shale - Ruby object mapper and serializer for XML, JSON and YAML
Akshay's Blog
I am a Ruby on Rails developer based in Victoria, BC. This blog is my attempt to spread the joy of building web applications in Ruby on Rails with the world.
File: Advanced I/O with Polyphony — Documentation for polyphony (1.1.1)
The Ruby on Rails SaaS Template | Bullet Train
Bullet Train is a Ruby on Rails SaaS-in-a-Box that saves developers months of effort and new founders tens of thousands of dollars.
Phlex — fast, object-oriented view framework for Ruby
If youve done a bit of Rails, you might have written some helpers like this. This package seems like a more complete and comprehensive implementation of this idea.
Runno
It has some similarities with things like JSFiddle or CodePen, but can run Ruby (as well as Python, C and C++). It can even act interactively and accept user input (such as with gets). You can then take these sandboxes and use them on your own pages/blog posts, etc.
Ruby Style Guide
This is a very reasonable, rational, practical style guide. “Shopify's Ruby Style Guide. Always useful to see how the ruby experts do it!”
Glimmer
DSL Framework consisting of a DSL Engine and a Data-Binding Library used in Glimmer DSL for SWT (JRuby Desktop Development GUI Framework), Glimmer DSL for Opal (Pure Ruby Web GUI), Glimmer DSL for ...
Rails Extension Power Pack - Visual Studio Marketplace
Extension for Visual Studio Code - Andrew Mason's favorite extensions for Rails development in Visual Studio Code
Getting Started · mperham/sidekiq Wiki
Simple, efficient background processing for Ruby. Contribute to mperham/sidekiq development by creating an account on GitHub.
brandonhilkert/sucker_punch: Sucker Punch is a Ruby asynchronous processing library using concurrent-ruby, heavily influenced by Sidekiq and girl_friday.
Sucker Punch is a Ruby asynchronous processing library using concurrent-ruby, heavily influenced by Sidekiq and girl_friday. - brandonhilkert/sucker_punch: Sucker Punch is a Ruby asynchronous proce...
Comparing Ruby Background Processing Libraries: Delayed Job - SitePoint
This article will teach you how background processing works as well as the alternatives the Ruby community offers to implement it in your application.
flyerhzm/bullet: help to kill N+1 queries and unused eager loading
help to kill N+1 queries and unused eager loading. Contribute to flyerhzm/bullet development by creating an account on GitHub.
Release 2.5.0 · Shopify/ruby-style-guide
What's Changed
Enable Layout/EmptyLineAfterGuardClause cop by @sambostock in #348
Enable Style/GlobalStdStream by @casperisfine in #350
Allow 'webmaster' for Naming/InclusiveLanguage b...
The 3 Tenets of Service Objects in Ruby on Rails | HackerNoon
Ruby 3.1 - Pattern Matching - Lee Jarvis
AWK-ward Ruby
From AWK to Ruby
Refactoring and Design Patterns
Refactoring is a controllable process of improving code without creating new functionality. Design Patterns are typical solutions to the commonly occurring problems in software design.
Ruby2JS
Ruby2JS is an extensible Ruby to modern JavaScript transpiler you can use in production today.
Noteflakes: Embracing Infinite Loops with Ruby and Polyphony
OpenSourceRails.org
A comprehensive, curated list of open-source Ruby on Rails applications.
red-data-tools/YouPlot
A command line tool that draw plots on the terminal. - red-data-tools/YouPlot
rubysolo/dentaku
math and logic formula parser and evaluator. Contribute to rubysolo/dentaku development by creating an account on GitHub.
Camping, the Documentation » File: README
Try Ruby - Code School
This is a famous course written by a really cool quirky Ruby celebrity (known as _why -- the underscore is part of the name). You might find it useful!
Rails for Zombies - Code School
Codeschool courses are supposed to be excellent. This is another resource that is available if you want to accelerate your learning even more!
RubyIdioms - tokland - Ruby conventions and idioms - My personal repository for code and documentation - Google Project Hosting
Very nice list of idioms
RubyMotion - Ruby for iOS
Ruby for iOS
Seth Ladd's Blog: Ruby, Rails, OpenID, and Google Integration for the Busy Developer
Useful info about how to authenticate from Rails to Google
Rubygame: The Blog | From the guy who brought you Rubygame: The Library
sferik/rails_admin - GitHub
RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data - sferik/rails_admin
Ruby QuickRef | zenspider.com by ryan davis
Ruby facts, opinions, source code, links, and stuff.
Rake Task for Database Population
Rake Task for Database Population · GitHub
Integrity | Continuous Integration server
Our digital forensics service expert team provides digital evidence and support for any forensic need. We service data breach emergencies, intellectual property theft suspicions, cyber security concerns, and personal forensic investigations. Protect your
Continuous Integration for Everybody — TeamCity
Pricing · drone.io
Drone is a self-service Continuous Delivery platform for busy development teams
Pricing · drone.io
Drone is a self-service Continuous Delivery platform for busy development teams
Hosted Continuous Integration Service for Ruby and Rails Applications - Semaphore
The Secret to Rails OO Design - Literate Programming
Yep, that's right. A Ruby class that inherets from nothing. It's so simple that it hides in plain sight. Loved by those who've mastered Rails, Plain Old Ruby Objects, or "POROs" as some like to call them, are a hidden weapon against complexity. Here's what I mean. Examine this 'simple' model:
Better Ruby Presenters - Literate Programming
But I digress: objects > functions. At least in the context of getting stuff done in Ruby. This pretty much applies to most of the rest of the points in this post, so just keep that in the back of your brain.
Get started with Sinatra | Tutorial | .net magazine
Sinatra applications are often a single file that contain just enough to get the job done. The framework is best suited for smaller web applications, but if a large web app requires an API or web interface for some secondary functionality, then Sinatra is ideal.
Contracts.ruby by egonSchiele
contracts.ruby brings code contracts to the Ruby language. Code contracts allow you make some assertions about your code, and then checks them to make sure they hold.
SciRuby
Ruby scientific library
kschiess/parslet
Beautiful parser generator for ruby. Gem
Rails Tutorials · RailsApps
Another set of tutorials
jgaskins/perpetuity
Persistence gem for Ruby objects using the Data Mapper pattern - jgaskins/perpetuity
Ruby Documentation Search - Omniref
Tim Robertson has a website.
typhoeus/typhoeus
gem for http
Thor | Plataformatec Blog
By Thor’s Hammer! « Katz Got Your Tongue?
For the past few months, I've become more and more disillusioned by the current state of Ruby's scripting support. Sure, we have optparse, and a gamut of other solutions, but there's no full-stack package for writing robust binaries. Enter thor. The idea behind thor initially came from my work on
Byebug Cheatsheet | Fleeblewidget
Apipie/apipie-rails
Ruby on Rails API documentation tool. Contribute to Apipie/apipie-rails development by creating an account on GitHub.
Awesome Ruby
A collection of awesome Ruby libraries, tools, frameworks and software. The essential Ruby to build modern Apps and Web Apps.
ruby-prof/ruby-prof
A ruby profiler. See https://ruby-prof.github.io for more information. - ruby-prof/ruby-prof
How do I use Ruby for shell scripting? - Stack Overflow
I have some simple shell scripting tasks that I want to do For example: Selecting a file in the working directory from a list of the files matching some regular expression. I know that I can d...
Pricing | Appneta Application Performance Management
AppNeta's award-winning suite of network monitoring tools allow unparalleled SaaS-based application end-user performance monitoring for 100% delivery confidence. Request a free demo!
Nobody understands the GIL
Rails 2.3.8
Scintilla basics in WxRuby | ProDevTips - dev notes and tutorials
WxRuby Documentation: Class Reference
Introduction | Crystal Programming Language
A compiled language with Ruby like syntax and type inference
Command-line-text-processing/ruby_one_liners.md at master · learnbyexample/Command-line-text-processing
If you’re a ruby fan person like me, you will love just reading these!
Ruby concurrency: in praise of condition variables · vaneyckt.io
Awesome Ruby
A collection of awesome Ruby libraries, tools, frameworks and software. The essential Ruby to build modern Apps and Web Apps.
File Handling -- IM v6 Examples
The wxPython tutorial
This is wxPython tutorial. In this tutorial, we will learn the basics of GUI programming in wxPython.
ImageMagick v6 Examples
Use ImageMagick® to create, edit, compose, and convert bitmap images. Resize an image, crop it, change its shades and colors, add captions, and more.
Ruby on Rails Tutorial: Learn Rails by Example book and screencasts by Michael Hartl
Newly updated for Rails 6, the Ruby on Rails Tutorial book and screencast series teach you how to develop and deploy real, industrial-strength web applications with Ruby on Rails, the open-source web framework that powers top websites such as GitHub, Hulu, Shopify, and Airbnb. The Ruby on Rails Tutorial book is available for purchase as an ebook (PDF, EPUB, and MOBI formats). The companion screencast series includes 14 individual lessons, one for each chapter of the Ruby on Rails Tutorial book.
The Ruby Toolbox - Know your options!
Explore and compare open source Ruby libraries
Module: Spec::Matchers
RubyPulse: 9 Screencasts On Different Ruby Libraries (So Far)
RubyDoc.info - Library Listing
MacRuby: The Definitive Guide
Introducing Koi - A language that teaches the basics of language implementation
Getting started with Autotest - Continuous Testing
Home — JRuby.org
JRuby is a high performance, stable, fully threaded Java implementation of the Ruby programming language.
The Ruby Toolbox - Know your options!
Explore and compare open source Ruby libraries
The Ruby Toolbox - Know your options!
Explore and compare open source Ruby libraries
Hottest 'ruby' Questions - Stack Overflow
Stack Overflow | The World’s Largest Online Community for Developers
Front page - APIdock
Rails Inside: Rails Blog Featuring News, Tips and Links
Ruby on Rails related news, tips and reviews.
Rubular: a Ruby regular expression editor and tester
Ruby-based regular expression editor/tester
Rubular: a Ruby regular expression editor and tester
Ruby-based regular expression editor/tester
RSpec-1.1.0: Overview
Rubular: a Ruby regular expression editor
Ruby-based regular expression editor/tester
RailsBrain.com
wxWidgets
WxRubyWiki: WxRuby
Ruby Core doc
Algorithmist
Ruby on Rails Documentation
ImageMagick: Convert, Edit, and Compose Images
Create, Edit, Compose, or Convert Digital Images
Rails Refactoring Techniques - Concerns | Best Practice on Ruby on Rails | Hire Ruby on Rails developers
yield_self is more awesome than you could think
…the name still sucks, tho
GitHub - learnbyexample/Command-line-text-processing: From finding text to search and replace, from sorting to beautifying text and more
:zap: From finding text to search and replace, from sorting to beautifying text and more :art: - learnbyexample/Command-line-text-processing
GitHub - learnbyexample/Command-line-text-processing: From finding text to search and replace, from sorting to beautifying text and more
:zap: From finding text to search and replace, from sorting to beautifying text and more :art: - learnbyexample/Command-line-text-processing
A series of pipes: Our Path to Services - Synchronous Events
A series of pipes: Our Path to Services - Synchronous vs Asynchronous
Comparison of Ruby and Python's Pandas for Data refinement | Zonov.me
Not sure if it's any good. I was just looking for a Ruby counterpart to Pandas. So far I found this and the other link I posted.
Elapsed time with Ruby, the right way
Esoteric details about time in ruby!
The easiest way to handle displaying bad data — Saturn Flyer
Good ruby rails and other tips
Ruby’s New Infinite Range Syntax: (0..) – Square Corner Blog – Medium
This Christmas, Ruby 2.6 will be released with support for a new syntax denoting an infinite range!
Use "barewords" to embrace the true power of late-binding in Ruby – RubyTapas
Hidden jewels of Ruby stdlib
Ruby comes distributed with a vast standard library. We only use a fraction of it, usually. Everyone knows date, set, json, maybe even csv. But there are man...
Arel with Wharel
Wharel is a tiny little gem that uses the empty room pattern to make Arel queries easier to build.
SciRuby/rubex
rubex - A Ruby-like language for writing Ruby C extensions. - SciRuby/rubex
Using GraphQL with Rails
Until recently whenever I had to implement an API in Ruby/Rails I would go for the typical REST i...
Active Job Basics — Ruby on Rails Guides
Active Job BasicsThis guide provides you with all you need to get started in creating, enqueuing and executing background jobs.After reading this guide, you will know: How to create jobs. How to enqueue jobs. How to run jobs in the background. How to send emails from your application asynchronously.
[EN][Keynote] Parallel and Thread-Safe Ruby at High-Speed with TruffleRuby / Benoit Daloze @eregontp
Editors | Drifting Ruby
One question that I get asked most often is what editor, theme and extensions am I using for my editor. In this episode, we take a look at the different extensions and settings that I use.
How to configure RSpec in Ruby on Rails
I’m not personally an rspec fan, but lots of people are
iridakos - Creating a Linux Desktop application with Ruby
A really nice tutorial explaining how to write a gui app on Linux using Ruby.
westonganger (Weston Ganger)
A gem containing functionality to represent, import and export spreadsheets
Ruby one-liners
The Ruby Bibliography
Fun list of papers, reports, and dissertations related to ruby from academia.
FREE Tutorials on React.js, Ruby on Rails, JavaScript
This has just been made free! I think these tutorials will contain some gems.
rpush/rpush
Getting mobiles to display notifications is a tricky business. Especially because there are several and each one is different. This gem tries to solve this.
ebobby/has-many-with-set
An interesting variation on how to represent a many to many relationship in rails.
The Problems With Validating ActiveRecord Models And Why State Validation Is a Bad Idea - Karol Galanciak - Ruby on Rails and Ember.js consultant
Really interesting advanced thoughts about rails ActiveRecord validations.
Ruby goes Serverless! - Apache OpenWhisk adds native support for Ruby
Title says it all.
A collection of awesome Ruby libraries, tools, frameworks and software
Always looking for the best possible rub tools? Here you go!
Concurrent Ruby with Tasks
Posted in r/ruby by u/drewolson • 27 points and 8 comments
How we halved our memory consumption in Rails with jemalloc
Excellent detailed article about benchmarking a rails app and then introducing a tool that replaces malloc and purports to provide a 2x improvement
Hyperstack.org
Writing ruby to generate js and html!
Learn Enough Action Cable to Be Dangerous | Learn Enough to Be Dangerous
Another actioncable resource
Introduction - Ruby Reference
Great, if complete and accurate
Using Ruby in 2019 - Jason Charnes
Slightly apologetic rundown of Why Ruby
The autoload method in ruby
Never new this existed. Looks interesting.
How to tell the difference between a default and a provided value for optional arguments in Ruby? - Karol Galanciak - Ruby on Rails and Ember.js consultant
A nice little tip for handling arguments in Ruby
40 Best Ruby Gems We Can’t Live Without
It’s always welcome to see what the latest most useful gems are.
Ruby tricks for junior developers | Drivy Engineering
Nice review of some more advanced ruby features.
The simplicity and power of Ruby Struct - usage, performance, alternatives
Interesting esoteric info about ruby, structs, hashes and more!
ruby - Is a global variable defined inside a Sinatra route shared between requests? - Stack Overflow
Say I've got: get '/' do $random = Random.rand() response.body = $random end If I have thousands of requests per second coming to /, will the $random be shared and 'leak' outside the context or...
David Dollar
A tool to allow me to launch multiple apps locally to get a new SOA service going for debugging.
Scaling a Ruby on Rails app on Heroku
You know I’m into scalability right now. Here’s a short article with lots of the basics.
Need faster code? Try Multithreading – Hacker Noon
More nice information about multithreading and concurrency in Ruby
Don’t confuse Ruby’s ‘throw’ statement with ‘raise’ (Example)
Wow this is a really good one. I didn't know and have to make sure I clear this up in my mind!
How do I know whether my Rails app is thread-safe or not?
Quite good explanation of thread safety in Ruby apps
The "DRM" method of Ruby performance
Excellent performance tips
strong_password v0.0.7 rubygem hijacked
Interesting description of how a public library or gem can be taken over, and modified to create an all powerful backdoor.
styd/apexcharts.rb
This is an AMAZING collection of graphs. Great to have a ruby binding. Haven’t tried it yet but looks very worth while.
Scripting and automating git processes
This one is pretty eclectic but if you find yourself writing a script in ruby or python or bash and you need to respond in the logic to what's going on in git, then you will find some very useful tips here.
tom-lord/regexp-examples
This is very cool and useful too!
Leaky constants
Good to know!
The GVL and C Extensions - a cooperative partnership
very interesting way to embed C in ruby, if you’re into that kind of thing!
Writing Pretty Code — Ruby Style
You may or may not agree with these formatting ideas.
Understanding Zeitwerk in Rails 6
Super useful new gem that lets you get rails like auto loading in any ruby program
Rails Performance Tips
Super useful modern rundown of low hanging fruit performance tips for rails.
The Minitest Style Guide
Very useful tool for ruby programmers.
Ruby Literals You May Not Know - citizen428.net
Useful little details. Ruby is better than python. There I said it.
Ruby From Other Languages
If you are coming to Ruby from another programming language there are a lot of good tips here!
Library for stubbing and setting expectations on HTTP requests in Ruby.
There are many of these building blocks. Use this to mock a web service that your system depends on. That way you can test your system without incurring the costs (in money and time) of calling the service.
Noticed Gem: Notifications for Ruby on Rails applications
very useful gem to send all kinds of notification from Rails. Haven't tested it myself.
Rodauth: A Refreshing Authentication Solution for Ruby | Janko's Blog
Always nice to see alternatives to devise but this is just as complicated. I haven’t used it but my question is how much of the user facing UI does it provide and how do you customize it?
Ruby style guide from Shopify.
Great, I think I agree with all of it. We should all be able to live with these!
One-liner introduction - Ruby one-liners cookbook
One liners are always fun to learn.