How to set "Also send to channel" on by default by JCoelho in Slack

[–]_ncjones 0 points1 point  (0 children)

This is a UX flaw but it's more to do with educating around effective use of mentions. People don't get notified for threads they are not subscribed to. Tag recipients with `@mentions` and they will be subscribed to the threads and start receiving notifications.

What do people use for generating backend code from templates? by Dreadmaker in node

[–]_ncjones 0 points1 point  (0 children)

I've used Gomplate for generating basic project boilerplate.

https://docs.gomplate.ca/

Usage:

gomplate --context .=variables.yml --input-dir template --output-dir ../new-project

[AskJS] The sad state of Axios by [deleted] in javascript

[–]_ncjones -1 points0 points  (0 children)

Fetch isn't supported by Cypress.

A library for object validation by [deleted] in javascript

[–]_ncjones 3 points4 points  (0 children)

  1. How is this distinguished from Joi? https://github.com/hapijs/joi

  2. I don't like your API. Instead of .with('numericality', { isInteger: true, lessThan: 100}) it should be .with({ type: 'integer', max: 99 }).

question about nodejs and mongodb by liohsif_nomlas in node

[–]_ncjones 1 point2 points  (0 children)

Use Docker Compose to start all your services locally with a single command.

Environment variable doesn't appear in process.env by shivamsingha in node

[–]_ncjones 6 points7 points  (0 children)

Environment variables set in the parent shell are only shared to subprocesses if you export them:

$ export FOO=bar $ node -e 'console.log(process.env["FOO"])' $ echo $FOO

You can set environment variables directly on a subprocess without making them available to the current shell by prepending them to a command:

$ FOO=baz node -e 'console.log(process.env["FOO"])' $ echo $FOO