Frontendrails logo Front End Rails

No puddle of piranhas (SIGAVDI #31)

No puddle of piranhas (SIGAVDI #31)

Avdi Grimm Avdi Grimm 26 February 2017

Radical vulnerability, blue-collar programming, and catchy acronyms.

A random selection of marketing, business, and personal development resources

A random selection of marketing, business, and personal development resources

Avdi Grimm Avdi Grimm 22 February 2017

As I’ve mentioned before, my current study focus is marketing. Marketing naturally drags along with it a penumbra of related topics, including business models and work on personal focus and productivity. When I’m studying a new topic, where I don’t even have a lay of the land,  the first phase of my research typically takes […]

Having the appearance of good design (SIGAVDI #30)

Having the appearance of good design (SIGAVDI #30)

Avdi Grimm Avdi Grimm 30 January 2017

Hello friends, It’s been another chilly week here in the foothills. I managed to sneak out for a Friday morning hike, and ran across some of the fire damage from November. David McIver writes, in a post from a couple years back: Ruby is full of people who think they’re doing good API design, but they’re […]

Tuesday25: Keeping an automation notebook

Tuesday25: Keeping an automation notebook

Avdi Grimm Avdi Grimm 10 January 2017

In today’s pomodoro, I step through a series of actions I want to automate. In the process, I write a live, executable notebook of shell commands using Emacs Org-Mode.

Tuesday 25: Writing a RubyTapas episode (with voice dictation)

Tuesday 25: Writing a RubyTapas episode (with voice dictation)

Avdi Grimm Avdi Grimm 27 December 2016

Tuesday25 screencasts are 25 minutes of barely-edited coding, design, deployment, marketing automation, or whatever else I feel like recording. May contain boneheaded mistakes, general bafflement, and surprise keyboard cats.
Looking for a donor RoR app

Looking for a donor RoR app

Avdi Grimm Avdi Grimm 06 December 2016

Hi, folks. I’m in the market for a hand-me-down app. Specifically: Open-source or public domain Smallish, but real. Not just a “hello world” app. Does something that most people would understand without a ton of domain-specific background. Built with Ruby on Rails 3 or later Working (if there are bugs that’s OK) Doesn’t have to have […]

Minimal CSS frameworks for coding demos

Minimal CSS frameworks for coding demos

Avdi Grimm Avdi Grimm 10 July 2016

On RubyTapas, I occasionally need to demonstrate web application code. I often use little Sinatra apps for this purpose, because it allows me to illustrate a web app programming concept with all the usual features like routing, sessions, and templates without switching between lots of different files. When I do this, I also like the […]

Preserving session with Mechanize

Preserving session with Mechanize

Avdi Grimm Avdi Grimm 17 June 2016

A write-up of a tricky aspect of saving Mechanize agent cookies.

Some quick thoughts on input validation

Some quick thoughts on input validation

Avdi Grimm Avdi Grimm 21 April 2016

The Hanami project is looking at upgrading and/or replacing their input validation system. I had some thoughts on this topic, but I don’t want to excessively clutter up their thread with discussion which may be out of scope. The present system is vaguely Rails-ish, in that the API uses keyword arguments to specify constraints: [crayon-571943915c6bc836717760/] […]

About the Ruby squiggly heredoc syntax

About the Ruby squiggly heredoc syntax

Avdi Grimm Avdi Grimm 06 January 2016

To my list of Ruby achievements, I can now add the dubious distinction of having come up with the syntax for the new “squiggly heredoc” introduced in version 2.3. Thus playing my part in making the Ruby grammar just a little bit more chaotic. For reference, the syntax looks like this: Using this syntax intelligently strips […]

ActiveSupport’s #try might not be doing what you think it’s doing

ActiveSupport’s #try might not be doing what you think it’s doing

Avdi Grimm Avdi Grimm 30 October 2015

Today I had reason to verify the exact semantics of ActiveSupport’s Object#try extension for an upcoming RubyTapas episode. #try is usually used to paper over nil values. Unfortunately, #try does more than this, and as a result it can easily hide defects. Consider: we have a variable with a number in it. We want to […]

Results of Ruby HTTP Client Library Survey

Results of Ruby HTTP Client Library Survey

Avdi Grimm Avdi Grimm 16 October 2015

A few weeks back I asked what ruby HTTP client library folks preferred. I’ve since collected over 700 responses, which seems like a pretty decent sample. You can check out the results for yourself, or look at the full list of responses, but here are some highlights. And the winner is… Actually, there are no […]

An alternative to `puts` in Ruby

An alternative to `puts` in Ruby

Avdi Grimm Avdi Grimm 02 October 2015

As you know, I like to talk about idioms on this blog. A carefully chosen idiom can convey a lot in a few lines of code. Today I realized there’s an idiom I commonly use in my code that I haven’t really talked about before. Typically, in Ruby, when we want to put a line […]

Poll: What’s your favorite Ruby HTTP client library?

Poll: What’s your favorite Ruby HTTP client library?

Avdi Grimm Avdi Grimm 04 September 2015

We all know that Ruby’s built-in HTTP client library is a bit… wonky. As a result, there are a plethora of substitutes for it, each with unique features and boasting their own idea of a good HTTP client API. I’m curious: what HTTP client library do you reach for when you have a choice? And […]

More talks about less code!

More talks about less code!

Avdi Grimm Avdi Grimm 28 August 2015

Hey you! Yes you. Do you cringe when you see a Ruby project with hundreds of gem dependencies? Do you enjoy finding minimal solutions to software problems? Do you have a great story about improving a program by reducing it to a tenth of its former size? Do you maintain a Ruby gem that’s just a […]