Posts tagged under "ruby"

Ruby 2.6 KeyError#initialize accepts message, receiver, and key as arguments

By Atul Bhosale on August 14, 2018
Learn about KeyError#initialize method which accepts :message, :receiver and :key as options to set message, receiver and key on KeyError object.
Tagged under: ruby

Ruby 2.5 adds KeyError#receiver and KeyError#key

By Atul Bhosale on August 6, 2018
Learn about KeyError#receiver which returns receiver associated with the KeyError object & KeyError#key returns the key which caused the exception
Tagged under: ruby

Ruby 2.6 added options to Exception#full_message

By Atul Bhosale on July 30, 2018
Learn about options which Expection#full_message accepts
Tagged under: ruby

Frozen middleware with Rack freeze

By Atul Bhosale on June 7, 2018
Learn about freezing middleware with rack-freeze
Tagged under: ruby

RubySpec for Tracepoint

By Atul Bhosale on February 26, 2018
Learn more about ruby by contributing to RubySpec
Tagged under: ruby

DIY Ruby CPU profiling - Part IV

By Emil Soman on July 18, 2015
Ruby's TracePoint API is very powerful for building custom profilers. As the final post of the DIY CPU profiler series, this post will introduce how to get method runtime statistics and generate relevant graphs.
Tagged under: ruby, cpu, profiler

DIY Ruby CPU profiling - Part III

By Emil Soman on April 15, 2015
Ruby's TracePoint API is very powerful for building custom profilers. In this post I will talk about hooking into Ruby code execution life cycle using this API
Tagged under: ruby, cpu, profiler

DIY Ruby CPU profiling - Part II

By Emil Soman on March 12, 2015
Ruby's TracePoint API is very powerful for building custom profilers. In this post I will talk about Wall time and CPU time, and how to measure them for Ruby programs.
Tagged under: ruby, cpu, profiler

DIY Ruby CPU profiling - Part I

By Emil Soman on March 6, 2015
Ruby's TracePoint API is very powerful and allows us to write custom profiling code without slowing down the execution of programs. In this post, I will introduce CPU profiling and 2 strategies to write one.
Tagged under: ruby, cpu, profiler

An Introduction to JSON Schema

By Kashyap on April 5, 2014
JSON schema can help bring order to handling complex JSON interactions in APIs. For instance, you can avoid checking the types of incoming JSON and rely on JSON schema to do the validation. This post talks about similar usecases.
Tagged under: json, api, ruby

Random Ruby tips from trenches #1

By Hemant on January 7, 2014
Tagged under: ruby, rails, tips

Setting up Emacs as Ruby development environment on OSX

By Hemant on October 17, 2013
Tagged under: emacs, osx, ruby, rails

Introducing Invoker - Manage processes in development envionment

By Hemant on June 8, 2013
Invoker is a utility we wrote to ease setting up of local development environments and top level .dev domains. Read on to know how to use it.
Tagged under: ruby, productivity, gems

Profile Ruby 2.0 apps using DTrace - part 2

By Hemant on May 27, 2013
Ruby 2.0 and above has in-built support for DTrace hooks. This lets us profile Ruby programs. In this post, I'll go into the details of the features of DTrace.
Tagged under: ruby, dtrace, profiling, rails

Profile Ruby 2.0 apps using DTrace - Part 1

By Hemant on April 16, 2013
Ruby 2.0 and above has in-built support for DTrace hooks. This lets us profile Ruby programs. In this post, I'll introduce DTrace and how to add DTrace probes to a Ruby program.
Tagged under: ruby, dtrace, profiling, rails

Bundler: Cleanup old unused gems

By Yuva on March 27, 2013
Tagged under: bundler, rails, ruby

Upgrading to Mountain Lion and your development environment

By Hemant on July 27, 2012
A nearly step-by-step guide to upgrade to Mountain Lion, and setting up a Ruby development environment
Tagged under: osx, rvm, ruby, mountain_lion

The kitchen sink libraries

By Hemant on May 8, 2012
The problem with kitchen sink libraries is feature creep. Sometimes all we need are small libraries that are easily readable.
Tagged under: ruby, rails, gems