4月1週

土曜:2h

日曜:1h

  • コロナ自粛でモチベーションが全然上がらない・・・
  • git再確認
リベース(コンフリクトが起こったとき)の手順                       
(コンフリクトを解消)                       
↓                     
$ git add {パラメータ}                     
$ git rebase --continue                     
$ git commit {パラメータ}                      
                        
この手順を間違えてしまい、rebaseモードが終わらない時のコマンド(HEADの状態を維持してくれる)                       
$ git rebase --quit                     
  • その他
git  ローカルのブランチ名でリモートへ登録:   git push -u origin 作成したブランチ名
bash    ファイル内の文字列検索:    grep -ril "検索したい文字列" .
git 特定のファイルの変更を取り消す   git checkout <ファイル名>
git 特定のディレクトリ以下の変更を再起的に取り消す   git checkout <ディレクトリ名>
git 全てを元に戻す   git checkout .
git addしたけどcommitしていない変更を取り消す   git reset HEAD <ファイル名>
git 別ブランチの同ファイルの比較  git diff 比較元ブランチ名..比較先ブランチ名 <ファイル名>
bash    ファイル名検索(指定フォルダから再帰検索) find [検索対象フォルダのパス] -type f -name "*[検索したい文字列]*"

月曜:8h

火曜:8h

  • react
useEffect(() => {
  doSomething();  // レンダリング直前に実行される。また、再レンダリング時にwatchVarの値が変わっていれば実行される
  return clearSomething(); // アンマウント直前に実行される
}, [watchVar]); // 再レンダリング時にチェックされる
  • useEffect使い方
  • 第一引数に引数ナシの関数を設定するとレンダリング直前に実行される(ここではdoSomething)
  • 戻り値に関数を設定する(省略可)とコンポーネントのアンマウント直前に実行される(ここではclearSomething
  • useEffect() の第二引数は配列で指定する必要がある(省略可)。任意の変数を入れておくと、その値がレンダリング時と変わらなければ第一引数で渡された関数が実行される。
  • ↑再レンダリング時にwatchVar という変数の中身が確認される。変更されていれば第一引数の関数(doSomething()) が実行されるけど、watchVar が変わっていなければdoSomething() は実行さ れない。

水曜:11h

  • 設計

木曜:11h

  • format on saveでダブルクォートになっちゃう
  • コレで試す
{
  "files.insertFinalNewline": true,
  "git.path": "/Users/takeuchiyosuke/git",
  "terminal.integrated.cwd": "/Users/takeuchiyosuke/",
  "workbench.iconTheme": "vscode-icons",
  "ruby.intellisense": "rubyLocate",
  "ruby.useLanguageServer": true,
  "solargraph.definitions": true,
  "solargraph.diagnostics": true,
  "solargraph.useBundler": true,
  "files.associations": {
    "*.erb": "erb"
  },
  "emmet.includeLanguages": {
    "erb": "html"
  },
  "emmet.triggerExpansionOnTab": true,
  "terminal.integrated.rendererType": "dom",
  "vsicons.dontShowNewVersionMessage": true,
  "eslint.autoFixOnSave": true,
  "eslint.enable": true,
  "vetur.format.defaultFormatter.html": "prettier",
  "editor.formatOnType": true,
  "javascript.format.placeOpenBraceOnNewLineForControlBlocks": true,
  "javascript.format.placeOpenBraceOnNewLineForFunctions": true,
  "typescript.format.placeOpenBraceOnNewLineForControlBlocks": true,
  "typescript.format.placeOpenBraceOnNewLineForFunctions": true,
  "javascript.format.insertSpaceBeforeFunctionParenthesis": true,
  "typescript.format.insertSpaceBeforeFunctionParenthesis": true,
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact",
    {
      "language": "typescript",
      "autoFix": true
    },
    {
      "language": "vue",
      "autoFix": true
    },
    {
      "language": "vue-html",
      "autoFix": true
    }
  ],
  "eslint.run": "onType",
  "vetur.format.defaultFormatter.js": "prettier",
  "vetur.format.defaultFormatter.css": "prettier",
  "vetur.format.defaultFormatter.less": "prettier",
  "vetur.format.defaultFormatter.postcss": "prettier",
  "vetur.format.defaultFormatter.scss": "prettier",
  "vetur.format.defaultFormatter.stylus": "stylus-supremacy",
  "vetur.format.defaultFormatter.ts": "prettier",
  "vetur.validation.style": true,
  "vetur.validation.template": true,
  "javascript.updateImportsOnFileMove.enabled": "always",
  "path-autocomplete.extensionOnImport": true,
  "typescript.updateImportsOnFileMove.enabled": "always",
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "editor.minimap.enabled": false,
  "[go]": {
    "editor.tabSize": 4,
    "editor.insertSpaces": false,
    "editor.formatOnSave": true,
    "editor.formatOnPaste": false,
    "editor.formatOnType": false
  },
  "go.formatTool": "goimports",
  "go.formatFlags": [
    "-w"
  ],
  "go.lintTool": "golint",
  "go.lintOnSave": "package",
  "go.vetOnSave": "package",
  "go.buildOnSave": "package",
  "go.testOnSave": false,
  "go.gocodeAutoBuild": true,
  "go.installDependenciesWhenBuilding": true,
  "go.gopath": "/Users/takeuchiyosuke/go",
  "go.useLanguageServer": true,
  "editor.suggestSelection": "first",
  "vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
  "window.zoomLevel": 0,
  "workbench.editor.showTabs": true,
  "workbench.editor.enablePreview": false,
  "editor.formatOnPaste": true,
  "editor.formatOnSave": true
}

vscodeで特定のフォルダを指定して検索する

  • 検索オプションの含めるファイルにて指定。favoriteとか、正規表現を使える
  • qiita.com
  • f:id:yosuke0517:20200402233423j:plain

金曜:10h

  • ダイアログ

週次報告

  • 年間(2019/8~2020/8)目標時間(業務での設計・実装含む):3380h
  • 今週を含む累積時間:2121.5h
  • 週次目標時間:65h
  • 週次実績時間:50h
  • 何を得たか:Nuxt設計
  • 何が必要か:golang基礎・認証の知見
  • 来週の目標:新機能追加