Patrick Bacon

Code Generation for Rails Utility Scripts


over 1 year ago by Patrick Bacon on Atomic Spin.
It seems that on every Rails project I work on, I end up writing utility scripts that make changes to the production data in some way or another. Perhaps...

Running Tests from MacVim in iTerm2 Version 3


~1 year ago by Patrick Bacon on Atomic Spin.
Way back in 2011, I wrote a blog post showing how to Run Tests from MacVim via Terminal.app or iTerm.app. I’ve been using that setup for years without...

DateStr – A Strongly-Typed Date String for TypeScript


~1 year ago by Patrick Bacon on Atomic Spin.
Nearly every project I have ever worked on has had to deal with dates in one way or another. For example, there might be a need to generate a report for...

Running the Current Test File in VS Code


11 months ago by Patrick Bacon on Atomic Spin.
For the last few months, I’ve been using Visual Studio Code on a Node.js project. It’s a pretty great editor, and its support for TypeScript...

Importing with Absolute Paths using webpack in JavaScript/TypeScript


10 months ago by Patrick Bacon on Atomic Spin.
Using relative paths in your import statements is great for “Hello World” examples and blog posts. But when used in large projects with hundreds...

Five Chrome DevTools Tips for Troubleshooting Web Apps


8 months ago by Patrick Bacon on Atomic Spin.
I recently needed to find and fix a bug in a web app I’ve been working on. The bug had something to do with code that was updating the dimensions...

Pattern Matching in C# with Switch Statements


6 months ago by Patrick Bacon on Atomic Spin.
While trying to figure out the best way to structure my “reducer” functions in a Redux-style Xamarin app, I found out that C# 7.0 introduced...

TIME_WAIT and Your Test Suite


5 months ago by Patrick Bacon on Atomic Spin.
I ran into an issue where I was unable to run more than one system test at a time without the second (and all other tests) failing. These particular tests...

Redux: Re-Rendering Caused by mapDispatchToProps


4 months ago by Patrick Bacon on Atomic Spin.
I’ve worked on a couple of React/Redux projects now, and it was only recently that I realized some of the re-rendering issues I’ve run into...