Joe Gornick

  • How to test and wait for React async events

    If you are trying to simulate an event on a React component, and that event’s handler is an async method, it’s not clear how to wait for the handler to finish before making any assertions.

    Read more…
  • Publish a scoped package to a custom registry

    When publishing a npm package, npm will use your configuration sources for a destination registry. npm also provides an ability to override configuration via the publishConfig field in package.json.

    Read more…
  • yarn with private npm registries and authentication

    We recently switched over a project from npm to yarn. Our existing project npm configuration (i.e. npmrc) specified private registries with authentication. I assumed that yarn would use existing npm configurations.

    Read more…
  • Let's try this again, with Hugo

    Yes, I still have a blog. But in my defense, the last time I published something, it was a few months before my first daughter (Aria) was born. We moved to a new home and had our second daughter (Ellie) in less than 2 years after that.

    Read more…
  • MongoDB Unique Indexes on Single/Embedded Documents

    MongoDB doesn’t support unique indexes on embedded documents in the same document. However, it does support some scenarios for adding unique indexes on embedded documents. When you apply a unique index to an embedded document, MongoDB treats it as unique in the collection.

    Read more…
  • Setting up multiple browsers on Mac OS X

    When doing web development, you need to test your work on many operating systems and browsers. Depending on your host operating system, you will also need to run virtual machines to test other operating systems and browsers.

    Read more…
  • Announcing Reserved Word Search. Find reserved words instantly as you type!

    To keep things rolling, I’ve released another project called Reserved Word Search. With Reserved Word Search you can instantly find reserved words as you type. This is extremely useful when doing database design and/or designing an API.

    Read more…
  • MySQL: Created and Modified Date Fields

    I’ve been searching for an efficient way to set created and modified date fields in MySQL. Of course, this can be done in the application you’re writing, however, I wanted to find a way to automatically do this on the database layer.

    Read more…
  • Zend Framework Best Practices – Part 2: I18n

    For the second part of my Zend Framework Best Practices series, I’d like to show you what I’ve found to be a simple and solid implementation of internationalizing your website.

    Read more…
  • Zend Framework Best Practices – Part 1: Getting Started

    Welcome to part one of my Zend Framework Best Practices series. When I started using Zend Framework a little over two years ago, I found it very difficult to find definitive methods to use when building your application.

    Read more…