Learnlog

Learnlog

1151 bookmarks
Custom sorting
What are "orthogonal" environment variables? [12-factor app]
What are "orthogonal" environment variables? [12-factor app]
Another aspect of config management is grouping. Sometimes apps batch config into named groups (often called “environments”) named after specific deploys, such as the development, test, and production environments
·softwareengineering.stackexchange.com·
What are "orthogonal" environment variables? [12-factor app]
An illustrated guide to 12 Factor Apps | Enable Architect
An illustrated guide to 12 Factor Apps | Enable Architect
The principle of Port Binding asserts that a service or application is identifiable to the network by port number, not a domain name. The reasoning is that domain names and associated IP addresses can be assigned on-the-fly by manual manipulation and automated service discovery mechanisms. Thus, using them as a point of reference is unreliable. However, exposing a service or application to the network according to port number is more reliable and easier to manage
·redhat.com·
An illustrated guide to 12 Factor Apps | Enable Architect
12 factor app configuration vs leaking environment variables
12 factor app configuration vs leaking environment variables
they are are easy to change between deploys without changing any code
because the key and value both have to be plain text, it discourages adding more complicated things as config settings when they really ought not to need to be.
can be easily and reliably read using any of a variety of languages (including shell scripts and the like) without complicated parsing code or library dependencies
·gist.github.com·
12 factor app configuration vs leaking environment variables
useEffect – React
useEffect – React
setup: The function with your Effect’s logic. Your setup function may also optionally return a cleanup function. When your component is added to the DOM, React will run your setup function. After every re-render with changed dependencies, React will first run the cleanup function (if you provided it) with the old values, and then run your setup function with the new values. After your component is removed from the DOM, React will run your cleanup function.
·react.dev·
useEffect – React
Using React Context for State Management with Next.js
Using React Context for State Management with Next.js
Context is a feature of React, a popular JavaScript library for building user interfaces, that enables components to share data without passing props down manually at every level of the component tree.
You can use all the context APIs, such as createContext, useContext, and Provider, in your Client Components.
·vercel.com·
Using React Context for State Management with Next.js
createContext – React
createContext – React
createContext lets you create a context that components can provide or read.
·react.dev·
createContext – React