mosin
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # 14. 設定の設計とベストプラクティス ## 設定の哲学 理想は全く設定がないことであるが、多くのシステムでは実現できないものである。 システムの調整可能な設定の多さは、エラーの発生領域やオペレータの認知負荷に比例する。 Googlerの経験では、 システム対してのコントロールの量を減らすことで、幅広く採用され、内部的なユーザサポートコストの低下を生む結果となった。 ### ユーザに質問する設定 ソフトウェアの設定に関しては主に2つの異なる観点がある - インフラストラクチャ中心の見方 できる限り多くの設定項目の提供を行い、システムは完全にチューニングできるので良いとされる。 - ユーザ中心の見方 設定に答えるのは面倒なので、項目は少ないほど良い。 一般的に、設定の選択肢が限定されているほど、極端に用途の広いソフトウェアより採用されやすくなる。箱から出してそのまま動作するソフトウェアの方がオンボーディングの労力が相当低くなる。 ## 質問はユーザの目標に近いものであるべき ユーザに細かい設定を行わせると、システムは完全にそれに従わなければならなくなる。 代わりに、ユーザが高レベルの目標を述べるなら、システムは時間と共に進化して、それらのゴールの実現方法を改善していくことができる。 このため、システムにとって最初に必要なステップはユーザの目標を事前に理解することである。 ### 必須の質問とオプションの質問 必須の質問は極力減らすべきである 必須の質問を減らす最も簡単な方法はオプションの質問にしてしまい、デフォルト値を設定することである また、デフォルト値はハードコードでなくてもよく、オーバーライドできるとなお良い。 Googlerの経験ではほとんどのユーザがデフォルトの設定を使うことがわかっている。 ユーザを正しい方向に導くことができるが、誤ったデフォルト値の定義は多くの害を生む結果となる e.g. 臓器のドナーがデフォルトでオプトインになっている国は、オプトアウトになっている国に比べドナー比率が劇的に大きくなっている => [Link](http://bit.ly/2kEGp9c) ## 設定の仕組み 設定変更のUXに関するベストプラクティス ### 設定と結果データの分離 設定がコードなのかデータなのかという古くからある疑問への答えとして、Googler の経験はコードとデータの両方であはあるものの、この両者を分離するのが最適であると示している。 まず、システムのインフラストラクチャはプレーンな静的データ上で運用されるべき。 - Protocol Buffers - YAML - JSON しかし、ユーザはこれらを生成する高レベルのインタフェースを扱える - Python - Lua - Jsonnet => JSONのテンプレートエンジン - はたまた、WebUI ![](https://lh3.googleusercontent.com/irCr0_yyGfnRiTEjsJSxIPGQfETc2mzqbnpSS9WQyLqcc6PlSU-2L1484n5SdHJ_xY3NxNtmbtRa-w9_M9zeFN4h3UBBb0wG2YDI8g=s933) ### ツールの重要性 ユーザによる設定の適用に際して、より安全に適用できるようなツールのベストプラクティス #### セマンティクスの検証 [セマンティクスとは](https://developer.mozilla.org/ja/docs/Glossary/Semantics) => 設定内容が持つ意味 - ユーザが存在しないディレクトリを指定していたり - 実際に持っているよりも1000倍の量のRAMを要求していたり セマンティクス的に意味があるかを検証し、設定ミスをsubmitされた後ではなくcommitする前に回避する #### 設定の構文 ユーザが設定を記述する際、障害物を取り除くのも重要である。 構文の観点から見た、提供ツールのベストプラクティス - 構文のハイライト - Linter - 自動構文フォーマッター #### 所有権と変更追跡 設定の変更をGitなどを利用しバージョン管理するベストプラクティス。 - ポストモーテムでの変更タイミングの遡り - 誰が、何を変更したか - ユーザだけでなく、WebUI やリモート API から取り込まれた設定についても管理すべき #### 安全な設定変更の適用 設定変更の適用方法に関するベストプラクティス - All or nothing ではなく徐々にデプロイできること - 危険だとわかった際に変更をロールバックできること - その変更により運用者の制御が失われることにつながる場合、自動的にロールバックされること(あるいは最低限進行を止められること) - モニタの解像度を変更した際に出てくる10秒カウントダウンなど

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully