See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
Magic words:
psql -U postgresSome interesting flags (to see all, use -h or --help depending on your psql version):
-E: will describe the underlaying queries of the \ commands (cool for learning!)-l: psql will list all databases and then exit (useful if the user you connect with doesn't has a default database, like at AWS RDS)| // https://lazau.com/articles/good_commit_messages.html | |
| Short summary of 50 chars or less. | |
| Detailed text which can span multiple paragraphs. Each paragraph | |
| should be line wrapped at 72 chars. | |
| Relevant Links: | |
| - https://myco.atlassian.net/browse/TICKET-32138 |
| export class Statistics { | |
| /** | |
| * Returns the average of two numbers. | |
| * | |
| * @remarks | |
| * This method is part of the {@link core-library#Statistics | Statistics subsystem}. | |
| * | |
| * @param x - The first input number | |
| * @param y - The second input number | |
| * @returns The arithmetic mean of `x` and `y` |
Kubernetes terminology:
| import { performance } from 'perf_hooks' | |
| const start = performance.now(); | |
| doSomething(); // <---- The function you're measuring time for | |
| const end = performance.now(); | |
| console.log("Call to doSomething took " + (end - start) + " milliseconds.") |
| type MenuConfig = {title?: string, body?: string, buttonText?: string, cancellable?: boolean}; | |
| function createMenu(config: MenuConfig) { | |
| const menuConfig = Object.assign({ | |
| title: 'Foo', | |
| body: 'Bar', | |
| buttonText: 'Baz', | |
| cancellable: true | |
| }, config); | |
| } |