There is nothing like a good " is considered Harmful" essay to exasperate the unwashed masses of anguished software engineers toiling over their keyboards.
????
-
Using direct Programming language structures
-
Embedding configuration
-
Hybrid (overrides)
-
Dynamic configuration
-
Env vars and command-line args
-
Dishonorable mention - JSON as config
When config files shine.
- Small images
- Minimal layers
- CMD and/or ENTRYPOINT
- shell vs. exec
https://www.docker.com/blog/docker-best-practices-choosing-between-run-cmd-and-entrypoint
https://github.com/the-gigi/docker-images
https://github.com/the-gigi/llm-playground-java/
https://github.com/the-gigi/dotfiles/blob/master/components/prompt.sh
https://github.com/the-gigi/dotfiles/blob/master/rcfiles/.p10k.zsh
- kubectl
- aws
- gcloud
- az
- psql
- Python
- Golang
- Rust
Fuzz-emoji in the cloud
- AWS Lambda
- Google Cloud Functions
- Azure Functions
Fuzz-emoji in Kubernetes
Explore the recent innovations like comments, str(), repr() and ascii() and async https://docs.python.org/3/reference/lexical_analysis.html#f-strings
Compare to other languages
Language | Equivalent to Python f-string | Syntax Example | Example Output |
---|---|---|---|
C/C++ | sprintf or std::format (C++20) |
std::format("Hello, {}!", name); |
Hello, Gigi! |
Java | String.format |
String.format("Hello, %s!", name); |
Hello, Gigi! |
JavaScript/TypeScript | Template literals | `Hello, ${name}!` |
Hello, Gigi! |
Go | fmt.Sprintf |
fmt.Sprintf("Hello, %s!", name) |
Hello, Gigi! |
Rust | format! macro |
format!("Hello, {}!", name); |
Hello, Gigi! |
Ruby | String interpolation with #{} |
"Hello, #{name}!" |
Hello, Gigi! |
C# | String interpolation with $ |
$"Hello, {name}!" |
Hello, Gigi! |