Articles
-
Counting word frequency in vim
vim does not have a method to count word frequency by default, but it is easily added in a function.
-
Failing fast when running PostgreSQL scripts
When running scripts against Postgres with the
psqlclient, errors will accumulate by default. This is good from the perspective of resiliency, but may not always be desirable behavior, especially with a long-running script. -
How to create deprecation warnings in Rails
Sometimes it is necessary to override inbuilt functionality of Rails (or other dependencies) by creating a monkey patch. However this may only be intended as a temporary solution, waiting on some future fix or upgrade to the framework.
-
Counting lines of code at the command line
Here is a solution for counting lines of code using command line utilities:
-
Testing thrown exceptions with Jest
Here’s a tip for testing asynchronous JavaScript functions that should throw exceptions with Jest.
