@Value // Lombok annotation.
// Generates all private final fields, an all-args-constructor,
// getters (no setters), toString(), etc...
class User {
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface GameRulesInputBoundary | |
void moveSouth() | |
end | |
interface GameRulesOutputBoundary | |
void moveSouthSucceed() | |
end | |
class GameRules implements GameRulesInputBoundary | |
def init(GameRulesOutputBoundary outputBoundary) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tap "adoptopenjdk/openjdk" | |
tap "aws/tap" | |
tap "beeftornado/rmtree" | |
tap "chef/chef" | |
tap "homebrew/bundle" | |
tap "homebrew/cask" | |
tap "homebrew/cask-drivers" | |
tap "homebrew/cask-fonts" | |
tap "homebrew/cask-versions" | |
tap "homebrew/core" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
# | |
# by Siddharth Dushantha 2020 | |
# | |
# Dependencies: jq, curl, w3m | |
# | |
version=1.1.9 | |
# By default 'tmpmail' uses 'w3m' as it's web browser to render |
Notes, comments and errata on Robert C. Martin's Clean Architecture
The book has 34 chapters, with a maximum of 22 pages (chapter 14). Even while involved as a programmer in a project, it should be possible to read one chapter per day, so you can finish the book in about 2 months.
Page 15, just before subchapter "The greater value".
For someone with technical leadership responsibilities in a rapidly scaling product company that’s distributed across multiple time zones, what are the top 3 books you think they should read?
- Flow (Donald G. Reinertsen)
- Flow (Mihaly Csikszentmihalyi)
- Flow (Nonaka, Toyama, Hirata)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import kotlin.math.pow | |
import kotlin.random.Random | |
val digits = listOf(1, 2, 3, 4, 5, 6, 7, 8, 9) | |
fun main() { | |
val random = Random(System.currentTimeMillis()) | |
val validResults = mutableListOf<String>() | |
while (true) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
COMMAND=$1 | |
BRANCH=$2 | |
if [[ "$COMMAND" == "init" ]] | |
then | |
echo "INITIALIZING SESSION '$BRANCH'" | |
git fetch --prune | |
git pull --ff-only |