Code with Hugo: JS & Node.js in Prod logo

Code with Hugo: JS & Node.js in Prod

Subscribe
Archives
July 2, 2019

Search With Lunr - Code with Hugo - Jul 2nd 2019

Hot off the press

Add Search to a Hugo site with Lunr.js and Node.js: Hugo “The world’s fastest framework for building websites” is a great option for JAMStack (JavaScript, APIs, prebuild Markup) sites.

If you missed it

An enterprise-style Node.js REST API setup with Docker Compose, Express and Postgres: The why and how of enterprise-style Node.js application.

Jest exclude file/function/statement from test coverage: In computer science, test coverage is a measure used to describe the degree to which the source code of a program is executed when a particular test suite runs.

Jest assert over single or specific argument/parameters with .toHaveBeenCalledWith and expect.anything(): With Jest it’s possible to assert of single or specific arguments/parameters of a mock function call with .toHaveBeenCalled/.toBeCalled and expect.anything().

Avoiding recursion pitfalls: MongoDB nested query clause addition and removal: A case-study on where recursion can be useful for enterprise Node.js applications and how to avoid its common pitfalls like RangeError: Maximum call stack size exceeded.

From the web

Jepsen: MariaDB Galera Cluster by Failed: Previously, on Jepsen, we saw Chronos fail to run jobs after a network partition. In this post, we’ll see MariaDB Galera Cluster allow transactions to read partially committed state.

Moving from Ruby to Rust by Andrii Dmytrenko: In the Logistics Algorithms team, we have a service, called Dispatcher, the main purpose of which is to offer an order to the rider, optimally.

The little legacy code that could: a fable of software ownership by Angel Rivera: In the corner, there’s some code. It’s tired of being called names. It’s tired of being last-picked. After all, this code runs a business. But, for all the transactions it processes, value it enables, and users it helps, it’s made fun of.

Don't miss what's next. Subscribe to Code with Hugo: JS & Node.js in Prod:
Powered by Buttondown, the easiest way to start and grow your newsletter.