Jake Trent

Debug.log in Elm Pipes

There aren’t many functions in the standard lib for elm that create side effects. Elm’s Debug.log is one of those exceptions. It logs to the console. Here’s how it’s setup to make console logging whilst piping easier that patting your head whilst rubbing your tummy.

Read more

Handle Errors in a Node App

As with any software, here you can expect the unexpected. Node apps experience errors as well. Let’s say that an error crops in our Node API – what should we do about it?

Read more

Return an Array in GraphQL

GraphQL provides a query language to define the shape of data you’d like returned from an HTTP API on a server and a library to help make it happen. It’s easy to return a single item or multiple items.

Read more

Testing es2015 Riot Tags

Getting riot.js setup for development isn’t too bad. But the combo of language features, testing tools, and riot templates made setting up the test environment a bit trickier than I expected. Here are some of the details.

Read more

react-dnd With Text Drag Preview

react-dnd is a fantastic library for implementing drag and drop features in a React application. In browsers, you have the ability to specify a drag preview for the thing your dragging. Images are easy. Text takes more work – because you need to generate an image.

Read more

Change Default NPM License

Npm has a fantastic init tool for creating the descriptor for your project. It will gladly provide defaults for you. These are sometimes helpful. Wouldn’t it be more better to define your own defaults?

Read more

Selecting a Directory in Electron

Electron will help you make some sweet native desktop apps using web tech. Now that you’re on the desktop, one of the cool things you can do is access the filesystem. There are a couple ways to access the filesystem via the file open dialog using user input events.

Read more

Console.log Deep Objects

With deep object structures, console.log can leave you wondering what’s down in the depths of the objects you’re printing out. Here’s a quick help from Node stdlib.

Read more
Older