Fallacies are fake or deceptive arguments, "junk cognition," that is, arguments that seem irrefutable but prove nothing. Fallacies often seem superficially sound and they far too often retain immense persuasive power even after being clearly exposed as false. Like epidemics, fallacies sometimes "burn through" entire populations, often with the most tragic results, before their power is diminished or lost. Fallacies are not always deliberate, but a good scholar’s purpose is always to identify and unmask fallacies in arguments. Note that many of these definitions overlap, but the goal here is to identify contemporary and classic fallacies as they are used in today's discourse. Effort has been made to avoid mere word-games (e.g., "The Fallacist's Fallacy," or the famous "Crocodile's Paradox" of classic times), or the so-called "fallacies" of purely formal and symbolic, business and financia
- date: 2021-02-25
- author: Kent C. Dodds
- description: The syntax for various functions and function types in TypeScript with simple examples.
- original_article: https://kentcdodds.com/blog/typescript-function-syntaxes
In JavaScript itself, there are lots of ways to write functions. Add TypeScript to the mix and all of a sudden it's a lot to think about. So with the help of some
This guide is based on my own experience, but also draws on other guides. It is primarily oriented towards those doing code-related stuff (e.g., I'm mostly an SDET, but is also applicable to those doing either Python or Web-based development).
A couple of other examples:
Most of the setup will use the terminal. For more details on how to setup an awesome terminal experience on the Mac, see my guide Steps to Terminal Enlightenment on a Mac (tweaking your terminal for fun and profit), which in fact includes some of these steps (you're welcome!).
The following is derived from the article Use Touch ID for sudo on Mac:
- Open the sudo utility:
sudo nano /etc/pam.d/sudo
- If needed, create a
.dockerignore
file to exclude files/paths you don't want. Matching rules are from Golang's filepath rules, as well as some unique exceptions.
A Dozen Dockerfile Instructions to Know
FROM
— specifies the base (parent) image; typically you specify both the image name as well as the label. 🍰RUN
— runs a command and creates an image layer. Used to install packages into containers. 🍰
Hopefully you'll Live Long and Prosper, so I don't mean terminal as in "you gonna die". This is a somewhat opinionated article on configuring a macOS machine with:
- iTerm2
- Z-shell
- Oh My ZSH! (mostly obsolete now)
- Powerlevel9k
- Nerd Fonts, which are Powerline-derived fonts, particularly my favorite - Hack Nerd
# zmodload zsh/zprof # <-- enable for shell profiling | |
# Note: for more options info, see: | |
# https://gist.github.com/geeknam/4423298046c4383d36a91c404ff049b1 | |
# Autoload info: | |
# With the -U flag, alias expansion is suppressed when the function is loaded. | |
# -z mark the function to be autoloaded using the zsh style | |
autoload -Uz compinit |
# It is assumed that $HOME is already defined and exported... | |
# Assuming within our home directory, | |
# we have a hidden directory called '.env' | |
envvarsdir="/.env/" | |
# ...and within that directory we had a file named 'secret_vars.ini'... | |
envvarsfile=secret_vars.ini | |
# ...we'd build the path | |
envvarspath=$HOME$envvarsdir$envvarsfile |