Codemod Tips and Tricks

August 31, 2019

Alternatively:


Raw notes

gd | diff-locs | multi-sed - 's/T.any.TrueClass, FalseClass./Boolean/'

sorbet/scripts/typecheck_devel | onlyloclines | vim -

ag -l '< Opus::APICore::AbstractAPIResource' | \
  xargs grep --no-filename '^# typed:' | \
  sort | \
  uniq -c
Read More

Surgery on Code from the Command Line

One problem that comes up all the time for me is needing to manipulate files only on specific lines. Like, “find and replace this pattern, but only on specific lines.” In this post, I’ll introduce the CLI tools I’ve made to solve this class of problems with some examples. Continue reading

On Programming Language Choice

Published on June 21, 2019

Notes on Continuations

Published on June 18, 2019