勉強日記

チラ裏

2019-12-01から1ヶ月間の記事一覧

【解決】WindowsのlocalhostがWSL2に正常にフォワーディングされない問題

結論 現象 Windowsのバグっぽい 前のビルドに下げたら直った 結論 19536.1000のバグ 19041.1に下げたら直った 現象 例えば、WSL2側でhttpd2を立てる docker container run --rm -d -p 8080:80 httpd:2.4 Windows側のブラウザでhttp://localhost:8080にアクセ…

Clean Code ch1 Clean Code

www.oreilly.com Clean Code プログラミング言語の抽象化がいくら進んでいっても、最低限必要な詳細度は残る コードは無くならない コードこそ仕様 Bad Code 本書は「良いコードというのが重要である」というはかない仮定にもとづき… (Implementation Patter…

The Clean Coder ch14 Mentoring

www.oreilly.com Mentoring, Apprenticeship, And Craftsmanship Degrees of Failure Mentoring Digi-Comp I, My First Computer The ECP-18 in High School Unconventional Mentoring Hard Knocks Apprenticeship Software Apprenticeship Masters Journeym…

The Clean Coder ch10 Estimation

www.oreilly.com Estimation What Is an Estimate? A Commitment An Estimate Implied Commitments PERT Estimating Tasks Wideband Delphi Flying Fingers Planning Poker Affinity Estimation Trivariate Estimates The Law of Large Numbers Conclusion …

The Clean Coder ch13 Teams And Projects

www.oreilly.com Teams And Projects Does It Blend? The Gelled Team Fermentation Which Came First, the Team or the Project? But How Do You Manage That? The Project Owner Dilemma 英語 Teams And Projects 小さなプロジェクトが多数あったら? 巨大…

【没】コントローラアクションでtimetravelするやつ

参考: ミドルウェアでtimetravelするやつ モチベーション つくった 振り返り 12/28追記 セッションが切れちゃうので何らかの対策を講じる必要がある 例: LIFETIMEを1000年くらいにする 参考: ミドルウェアでtimetravelするやつ nextat.co.jp 本格的 というか…

The Clean Coder ch7 Acceptance Testing

www.oreilly.com Acceptance Testing Communicating Requirements Premature Precision The Uncertainty Principle Estimation Anxiety Late Ambiguity Acceptance Tests The Definition of "Done" Communication Automation Extra Work Who Writes Acceptan…

Clean Code ch4 Comments

www.oreilly.com Comments Comments Do Not Make Up for Bad Code Explain Yourself in Code Good Comments Legal Comments Informative Comments Explanation of Intent Clarification Warning of Consequences TODO Comments Amplification Javadocs in Pu…

CI/CDおぼえがき -- AWS CodeDeploy

CodeDeploy ハマったとこ CodeDeploy Agent EC2へのS3アクセス権限付与 プロジェクトのtarballの固め方 これは駄目 これも駄目 正しくはこう CodeDeploy AWS S3の特定のバケットの特定の位置にプロジェクトをtarballに固めて置いておく tarとかtgzとか Deplo…

Clean Code ch3 Functions

www.oreilly.com Functions Small! Block and Indenting Do One Thing Sections within Functions One Level of Abstraction per Function Reading Code from Top to Bottom: The Stepdown Rule Switch Statements Use Descriptive Names Function Arguments…

Paint 3Dで制作した3Dモデルをthree.jsで描画した

Paint 3Dで描く Three.jsで読み込む github.com Paint 3Dで描く www.microsoft.com いつの間にかこんなゴキゲンなアプリが標準搭載されていたんですね~ たのしい あひるbotテクスチャを貼る前のプロジェクトは間違えて消してしまった 一度貼って保存したテ…

The Clean Coder ch12 Collaboration

www.oreilly.com Collaboration Programmers versus People Programmers versus Employers Programmers versus Programmers Owned Code Collective Ownership Pairing Cerebellums 英語 Collaboration チームはプロらしく協力してこそ最高の効果を発揮する …

The Clean Coder ch11 Pressure

www.oreilly.com Pressure Avoiding Pressure Commitments Staying Clean Crisis Discipline Handling Pressure Don't Panic Communicate Rely on Your Disciplines Get Help Conclusion 英語 Pressure 週80時間働き、常にイライラし、深夜2時にCで3000行の…

The Clean Coder ch9 Time Management

www.oreilly.com Time Management Meetings Declining Leaving Have an Agenda and a Goal Stand-Up Meetings Iteration Planning Meetings Iteration Retrospective and Demo Arguments/Disagreements Focus-Manna Sleep Caffeine Recharging Muscle Focus …

はてなブログのコードハイライトをhighlight.jsでオーバライドした

動機 オーバライドするコード やってること こんなのはてなブログに書いたら怒られそうだけど 動機 はてなブログのマークダウン記法モードでは、コードブロック(```で囲むやつ)を構文解析してシンタックスハイライトしてくれる機能がある。 (以下、デフォル…

The Clean Coder ch6 Practicing

www.oreilly.com Practicing Some Background on Practicing Twenty-Two Zeros Turnaround Time The Coding Dojo kata Wasa Randori Broadening Your Experience Open Source Practice Ethics Conclusion 英語 Practicing さまざまな業界で、「プロ」は「練…

Laravelのテストを高速化した話 (Laravelアドベントカレンダー20191217)

速さこそ有能なのが、 文化の基本法則 (ストレイト・クーガー) この記事について DBのテスト高速化: RefreshDatabaseトレイトのハック 対象読者 TL;DR DBテストの開始には時間がかかりがち 理由 -- migrate:fresh で毎回テーブルをdrop/createしている migra…

コースターコンプの期待値計算機を作った

動機 作ったもの ソースコード 技術 ぼくのコースター道の軌跡 動機 udx-akibaichi.jp コラボカフェでよくある 「1品お買い上げごとにコースターを1枚ランダムでプレゼント!」 みたいなやつ 金額ごとだったりポストカードだったりする あれ集めるのが趣味な…

The Clean Coder ch8 Testing Strategies

www.oreilly.com Testing Strategies QA Should Find Nothing QA Is Part of the Team QA as Specifiers QA as Characterizers The Test Automation Pyramid Unit Tests Component Tests Integration Tests System Tests Manual Exploratory Tests Conclusio…

Brainfxxk方言を作った

※身内ネタ注意 12/17追記 精神的にだいぶすり減っていたようでだいぶ頭おかしい MatsuAhiFxxk 直訳 コミットメッセージに想いを込めろ MatsuAhiFxxk github.com thanks to @tadsan 直訳 もち「まつあひはくそ」— hamaco (@hamaco) 2019年12月11日 コミットメ…

Version Control with Git ch14 Patches (1/2)

shop.oreilly.com Patches Why Use Patches? Generating Patches Patches And Topological Sorts 英語 Patches Gitネイティブプロトコル、HTTP以外の方法でもリポジトリの同期をとれる Unix開発黎明期からの"patch and apply"が使える git format-patch eメ…

Version Control with Git ch17 Submodule Best Practices

shop.oreilly.com Submodule Commands Why Submodules? Submodules Preparation Why Read Only? Why Not Read Only? Examining the Hashes of Submodule Commits Credential Reuse Use Cases Multilevel Nesting of Repos Submodules on the Horizen 英語 Su…

Version Control with Git ch15 Hooks

shop.oreilly.com Hooks Column Junio's Overview of Hooks Installing Hooks Example Hooks Creating Your First Hook Available Hooks 英語 Hooks リポジトリローカル cloneで伝播しない 大別 pre アクション満了前に実行 承認/否認、変更反映等に利用 exi…

The Clean Coder ch5 Test Driven Development

www.oreilly.com Test Driven Development The Jury Is In The Three Laws of TDD The Litany of Benefits Certainty Defect Injection Rate Courage Documentation Design The Professional Option What TDD Is Not 英語 Test Driven Development TDDはXP由…

jest + puppetterでE2E自動テスト -- JavaScript無効、Cookie無効のテスト

全体 index.htmlのソース、仕様 JavaScript無効時のテスト Cookie無効時のテスト awaitとPromiseの意識 JavaScirpt無効判定 Cookie無効判定 全体 github.com index.htmlのソース、仕様 <html> <head> <meta charset="utf-8" /> <noscript> <meta http-equiv="refresh" content="0; URL=no-script.html" /> </noscript> <title> index.html </title> </meta></head></html>

【git】masterからトピックを切っていたと思ったら、いつのまにかトピックから切っていた話【origin masterにpushするな】

TL;DR ぜんてい リモートの更新をローカルのトピックブランチに取り込む NG: ローカルでmasterを更新してリモートにpushする 模範解答: Pull Request (Merge Request) を発行する 次点: git merge 時、--no-ffオプションを付ける あ…ありのまま 今 起こった…

【WSL2】PuppeteerでChromeを使う (chrome.exeはうまくいかなかった)

chromiumじゃくてchromeを使う たんなる備忘 chromeインストール puppteer動かす 【ダメだった】WSL2上のpuppeteerからwindowsのchrome.exeを自動操作 chromeインストール 入れる curl https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key ad…

Git ch13 Repository Management (1/x)

shop.oreilly.com Repository Magagement A Word About Servers Publishing Repositories Repositories with Controlled Access 英語 Repository Magagement リポジトリ集中型/分散型 開発モデルとは直交 Gitを用いた開発モデルはあくまで分散型 リポジトリ…

The Clean Coder ch4 Coding

www.oreilly.com Coding Preparedness 3 AM CODE Worry Code The Flow Zone Music Interruptions Writer's Block Creative Input Debugging Debugging Time Pacing Yourself Know Hwn to Walk Away Driving Home The Shower Being Late Hope Rushing Overtim…

Version Control with Git ch12 Remote Repositories (2/2)

shop.oreilly.com Remote Repositories (続き) # Developing in Your Repository Pushing Your Changes Adding a New Developer Getting Repository Updates The fetch step The merge or rebase step Should you merge or rebase? Remote Repository Develo…