Railsはおまかせ(Rails is omakase翻訳)
DHHによるおまかせ思想を解説したエッセイ。半分くらいは行儀の悪いユーザーに対する愚痴。
export default function getVideoDuration(src: string): Promise<number> { | |
return new Promise((resolve, reject) => { | |
const video = document.createElement('video') | |
video.src = src | |
video.addEventListener('loadedmetadata', () => { | |
resolve(video.duration) | |
}) | |
video.addEventListener('error', error => { | |
reject(error) | |
}) |
シェアハウスの住人が、そのとき着ていたミリタリージャケットを「殺し屋っぽい」と評したから | |
---- | |
スナイパー空手の師範代だから | |
---- | |
小便器で用を足すときに、一歩下がって、さながら長距離狙撃の如く用を足しても、一滴も零さずに用を足し終えられるから |
class CustomError extends Error { | |
constructor(...args) { | |
super(...args) | |
this.name = 'CustomError' | |
} | |
} | |
const e1 = new CustomError('a custom error') | |
const e2 = new Error('a standard error') |
import React from 'react'; | |
import { LayoutManager, NavigationProvider } from '../../../src'; | |
export default () => ( | |
<NavigationProvider> | |
<LayoutManager | |
globalNavigation={() => null} | |
productNavigation={() => null} | |
containerNavigation={() => null} | |
> |
Process: Google Chrome [620] | |
Path: /Applications/Google Chrome.app/Contents/MacOS/Google Chrome | |
Load Address: 0x10730a000 | |
Identifier: com.google.Chrome | |
Version: 70.0.3538.110 (3538.110) | |
Code Type: X86-64 | |
Parent Process: ??? [1] | |
Date/Time: 2018-12-13 14:10:08.800 +0900 | |
Launch Time: 2018-12-05 10:32:02.894 +0900 |
Railsはおまかせ(Rails is omakase翻訳)
DHHによるおまかせ思想を解説したエッセイ。半分くらいは行儀の悪いユーザーに対する愚痴。
Rails Developers Meetup 2018 Day 4 Nouvelle Vague https://techplay.jp/event/702297
「Rails is omakase」っていう言葉は聞いたことありますか? The Rails Doctrine、日本語だと「Railsの基本理念」っていうドキュメントがあって、
http://david.heinemeierhansson.com/2012/rails-is-omakase.html
IT'S PART OF THE DEFAULT COURSE SETTING
default course settingはデフォルトのコース設定としたが、これでいいのかどうか(わざとソフトウェアっぽい言い回しとごちゃまぜにしているという理解で合ってる?)
a "what can I do to help?" directive
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>EnvironmentVariables</key> | |
<dict> | |
<key>XAPIAN_CJK_NGRAM</key> | |
<string>1</string> | |
<key>TERMINAL_NOTIFIER</key> | |
<string>/Users/tai2/Applications/terminal-notifier.app/Contents/MacOS/terminal-notifier</string> |