Learnlog

Learnlog

1126 bookmarks
Custom sorting
Speed up Django Nested Foreign Key Serializers w/ prefetch_related
Speed up Django Nested Foreign Key Serializers w/ prefetch_related
Works beautifully, but the only problem? We’re making *tons* of DB calls like this. For every module we have, we’ll make one extra DB call with obj.lessons.all() , and for every lesson we have, we’ll make one extra DB call with obj.exercises.all() .
·medium.com·
Speed up Django Nested Foreign Key Serializers w/ prefetch_related
Utilizing docstrings
Utilizing docstrings
When your file is correctly documented, just use the jsdoc CLI to create your documentation.
·stackoverflow.com·
Utilizing docstrings
Integrate MDX with a single tool and less boilerplate. Manage content with type-safe data and helper functions. | delba.dev
Integrate MDX with a single tool and less boilerplate. Manage content with type-safe data and helper functions. | delba.dev
The ability to use React.js components inside markdown is the main motivation for using MDX. You can use the useMDXComponent() hook to render the current posts "MDX enriched" markdown
Which Contentlayer (using a bundler under the hood) transformed into JSX and cached as static json
·delba.dev·
Integrate MDX with a single tool and less boilerplate. Manage content with type-safe data and helper functions. | delba.dev
Use an environment file in Docker Compose
Use an environment file in Docker Compose
Single-quoted (') values are used literally
Compose supports parameter expansion in environment files. Parameter expansion is applied for unquoted and double-quoted values. Both braced (${VAR}) and unbraced ($VAR) expressions are supported.
·docs.docker.com·
Use an environment file in Docker Compose
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