Image for post
Image for post
In ES2015, we find ourselves writing this type of thing an insane amount of times throughout each day.

Disclaimer: I’m a devoted fan of the JetBrains IDEs and this is specific to them. I use IntelliJ but this would apply to any variation that supports JavaScript. I’m sure you can do similar tricks in other editors, if you know how — please share!

The Problem

The new import syntax is great for a variety of reasons but one of my biggest complaints has been that my IDE is helpless when it comes to autocompletion of named exports. It’s simply a matter of the order in which the import statement is written. Example:

Image for post
Image for post

If you’re anything like me, the repetition of writing the above code had been maddening on some deep level but also something you deal with because it doesn’t seem worth the effort to do anything about. …


Image for post
Image for post

I’ve been doing some general exploration of core Node.js modules lately and recently took a look at the util module. I had seen it used here and there in the past but never really explored it further. What I found are several special use case but handy functions. Here’s a quick rundown of each, along with some explanation and examples. As usual, the official docs are great as well.

The docs note that util is maintained for internal use however the tools within it are generic enough that they could also benefit application and module developers. …


So you’ve set up an Elasticsearch instance on your AWS account. You got through all the various IAM policy stuff and it’s all doing what you want. Hooray! Once you want to expose your hosted Kibana dashboard to a limited public, you realize that there’s no way to restrict access aside from IP whitelists and signed requests using your AWS tokens. Where do you go from here?

Backstory

At 352 Inc., we recently deployed a product on AWS Lambda, DynamoDB, and Elasticsearch. …


If you’re like me, you spend plenty of time in Chrome DevTools, you might even consider yourself pretty proficient with it. If you’re even more like me, you probably tolerate a whole bunch of little things that you might be able to do more efficiently but because they are individually so miniscule, you just deal with it.

I picked up a new technique today that seemed worth sharing, the topic pertains to debugging requests in the Network tab. …

About

Eran Schoellhorn

Occasional JavaScripter

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store