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

Code with Hugo: JS & Node.js in Prod

Subscribe
Archives
July 30, 2019

Mocking Full and Partial Imports with Jest - Code with Hugo - Jul 30th 2019

Hot off the press

Jest Full and Partial Mock/Spy of CommonJS and ES6 Module Imports: The example repository is available at github.com/HugoDF/mock-spy-module-import.

New repos:

  • github.com/HugoDF/yarn-workspaces-simple-monorepo: Yarn Workspaces basic monorepo management without Lerna for coding examples
  • github.com/HugoDF/node-mit-boilerplate: Node.js starter files with MIT license, gitignore and XO linting, corresponding intro tweet:

https://twitter.com/hugo__df/status/1155568227990290432

If you missed it

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.

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.

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

From the web

In the Defense of Spaghetti Code: Have you ever seen a function that spans 1500 lines of code?

RethinkDB, SageMath, Andreessen-Horowitz, Basecamp and Open Source Software by William Stein: Three weeks ago, I spent the evening of Sept 12, 2016 with Daniel Mewes, who is the lead engineer of RethinkDB (an open source database). I was also supposed to meet with the co-founders, Slava and Michael, but they were too busy fundraising and couldn't join us.

Bezos: A CEO Who Can Write by Jean-Louis Gassee,/@gassee: The more I read Jeff Bezos’ twenty-one annual letters to Amazon shareholders, the more I like his views on growing Amazon’s business, on focusing on constitutionally discontented customers.

Why I Stopped Using Multiple Monitors: Many developers believe multiple monitors improve productivity. Studies have proven it, right? Well, keep in mind, many of those studies are commissioned from monitor manufacturers like Dell and NEC.

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.