Skip to content

Instantly share code, notes, and snippets.

@euske
euske / dip.md
Last active March 13, 2023 08:26
依存性逆転の原則 (Dependency Inversion Principle) と interface

依存性逆転の原則 (Dependency Inversion Principle) と interface

依存性逆転の原則とは

身近な例で考えてみよう。 あなたの会社は家庭用コンセントにつなぐ電気製品を開発している。 たまたま開発現場に Panasonic製のコンセントがあったので、 その差し込み口の寸法に合わせてプラグを設計した。 しかしこの方法には問題がある。Panasonic製のコンセントには ぴったり合っていたとしても、他社製のコンセントに対してはどうだろうか?

@euske
euske / retrospective.md
Last active March 6, 2023 09:36
How to do Retrospective

レトロ (Retrospective) のやりかた

cf. https://tanzu.vmware.com/developer/practices/3-column-retro/

意義:

  • メンバーに一息ついてもらい、今週起こったことと今後の見通しを考えてもらう。
  • 毎週1回やる(週の途中にやるという手もある)。
  • メンバー全員の意見を聞く機会を設ける (心理的安全性の確認)。

準備:

@euske
euske / openssh-is-written-by-monkeys.md
Last active January 13, 2023 05:35
OpenSSL はサルが書いたに決まってる (OpenSSL is written by monkeys, by Marco Peereboom)
@euske
euske / howlearningworks.md
Last active November 20, 2022 01:06
Summary of Ambrose, Bridges, DiPietro, Lovett and Normal. "How Learning Works - 7 Research-Based Principles for Smart Teaching", Wiley, 2020.

NFTって何?

人々の無理解にもとづく投資ビジネス。

ブロックチェーンとは何か

  • 全世界で共有しているgitリポジトリのようなもの。
  • 「誰が何を誰に渡した」という履歴が記録される。
  • Gitとの違い:
  • commitするのに手数料が必要。

アホな(おすすめ)サイト

@euske
euske / dategen.html
Last active May 19, 2022 01:07
Date Generator
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>日程表生成君</title>
<script>
function split(v) {
return v.split(",").map(x => x.trim());
}

ゲームジャム (game jam) のすすめ

  • 与えられたお題に従って時間内にゲームを1本開発する:
    • "Small world"
    • "You're the villain"
    • "10 seconds"
  • もっとも有名な Ludum Dareの場合:
    • 年2回開催、参加者は数千人。制限時間は 48時間。
    • すべて(プログラム、絵、音)一人で製作せねばならない。
  • 完成したゲームを参加者どうしで評価し、勝者を決定する。
@euske
euske / download_slack.py
Created March 8, 2020 07:19
Download Slack channel histories.
#!/usr/bin/env python
#
# Download Slack channel histories.
#
# Prerequisites:
# 1. Create a Slack app.
# 2. Give the app the following OAuth & Permissions:
# channels:read, channels:history, users.profile:read
# 3. Install the app & get OAuth token:
# "xoxp-..."
@euske
euske / are-you-an-expert.md
Last active January 27, 2022 10:14
Japanese Translation of "Are You An Expert?" by Jeff Atwood

あなたは専門家か? (Are You An Expert?)

(Original article: https://blog.codinghorror.com/are-you-an-expert/ )

ぼくは権威というものが嫌いらしい。 まず自分自身の過去から始めよう。

ぼくは、人々からアマチュア仲間としてではなく、 何らかの専門家や権威だとみなされることがひどく嫌いである。