Bash Say Command In CI

April 8, 2019

Sometimes you just need to say it from a bash script and some times your CI provider won’t be OK with that. Today I learned of one such provider, CircleCI who didn’t want to play nicely with using say ... Read more

Momentjs Date Mutation

March 14, 2019

If you’ve ever had to work with a lot of date logic in javascript you’ve likely used or at least seen Momentjs. It can be convenient for moving dates to other timezones or date math. I ran into another today I learned moment trying to write some tests in Jest while using moment to handle dates in test setup and fixtures. ... Read more

Ruby 2.6 Endless Range

March 8, 2019

For a today I learned moment I ran into the new endless range feature in ruby 2.6 by coming across some code that triggered this error message: RangeError (cannot get the last element of endless range) The code that was updated to the latest ruby 2.6 release had a dynamic range that was pulling fields from a database and doing something like this: ... Read more

mtchavez All rights reserved.