Demystifying SQL Queries

Let’s look at an average, everyday SQL query:

1
2
3
SELECT something
FROM table
WHERE conditions

Not hard to draw parallels to other known concepts: Read on →

Comments

Consuming HTTP APIs in Ruby

What is your favourite technique for consuming HTTP APIs in Ruby? I like using HTTParty!

  • It offers a simple, intuitive API.
  • It makes it easy to support a whole bunch of standard API authentication mechanisms. Read on →

Postgres Text Search: Simple, Adequate

Searching for text within your data is a frequently requested feature, and often leads to excellent UX. Gmail’s web interface is entirely built on top of search. No wonder databases have supported basic text search operators like ~, LIKE, ILIKE etc for a long time. But they often fall short or give inaccurate results, as we try to evolve the feature. Say, searching in multiple languages, or searching for different variants of the same word: consider realistically, realistic, and realist, or searching one word, but not the other.

This is where full-text search comes in. Read on →

10 Actions You Must Internalize in Your Editor

We love our Emacs vs Vim vs <others> debates. In one argument Emacs rocks, in another Vim wins the day and in some other, TextMate takes the cake. However, more than we love our editors, we love being productive; after all that is all what this is about. By now, we know that the joy of writing code is well augmented by a good editor. It acts like a great force multiplier. We go to great lengths to curate the editor & its configuration to what suits us.

What happens when you want to use a different editor? Read on →

Comments

Console Your Gems: Add REPL to Them

When you are working on a Ruby gem or a Ruby library ( why you would have a Ruby library that isn’t a gem is beyond me ), it is always often desirable to have a Pry session loaded with the gem your working on. In fact, I’ll go out on a limb and say that REPL driven development is a a must-do when writing libraries. REPLs are like ice added to your beer when it isn’t cold anymore, except this ice is made from the same beer.

Read on →
Comments

I Am Speaking at RubyConf India

India’s premier Ruby conference is happening at Goa this year, in the third week of March. This year, my talk proposal got accepted and I am up on day 1 at 2.30pm.

Read on →
Comments

Hello, World!

Wikipedia tells us:

A “Hello World” program has become the traditional first program that many people learn. In general, it is simple enough so that people who have no experience with computer programming can easily understand it, especially with the guidance of a teacher or a written guide. Using this simple program as a basis, computer science principles or elements of a specific programming language can be explained to novice programmers. Experienced programmers learning new languages can also gain a lot of information about a given language’s syntax and structure from a hello world program.

Comments