@kyanny's blog

My thoughts, my life. Views/opinions are my own.

JavaScript Weekly #493

Table of Contents

  1. JavaScript Weekly #493
    1. Introducing GitHub Super Linter: one linter to rule them all
    2. Puppeteer v4.0.0 Released: The Node API for Chrome
    3. Stop mocking fetch
    4. DOCX: A Declarative API to Generate .docx Files

JavaScript Weekly #493

Introducing GitHub Super Linter: one linter to rule them all

Puppeteer v4.0.0 Released: The Node API for Chrome

Stop mocking fetch

  • 代わりに https://github.com/mswjs/msw を使え、ということらしい、が
  • こういうのあんまり好きじゃないんだよな、大がかりすぎるというか

DOCX: A Declarative API to Generate .docx Files

  • 作るより読む方が需要多そうな気がするが

Ruby Weekly #506

Table of Contents

  1. Ruby Weekly #506
    1. Sadly the Travis Foundation is likely to shut down soon
    2. HEY’s UI is 100% HTML over the wire. We render plain-old HTML pages on the server and send them to your browser encoded as text/html. No JSON APIs, no GraphQL, no React—just form submissions and links.
    3. Taming Legacy Code with Characterization Tests

Ruby Weekly #506

Sadly the Travis Foundation is likely to shut down soon

HEY’s UI is 100% HTML over the wire. We render plain-old HTML pages on the server and send them to your browser encoded as text/html. No JSON APIs, no GraphQL, no React—just form submissions and links.

  • バックエンドは当然 Rails、らしい。

Taming Legacy Code with Characterization Tests

  • 「レガシーコード改善ガイド」で「仕様化テスト」と紹介されていたやつかな。

Golang Weekly #317

Table of Contents

  1. Golang Weekly #317
    1. The Next Step for Generics
    2. Type Parameters - Draft Design
    3. Evaluating Go's Package Management and Module Systems
    4. How to handle errors in Go? [5 rules]​
    5. John Conway, the esteemed mathematician who came up with the eponymous Conway's Game of Life, sadly passed away several weeks ago

Golang Weekly #317

The Next Step for Generics

Type Parameters - Draft Design

  • 今はさっぱりわからない話題なので、深追いしない。

Evaluating Go's Package Management and Module Systems

  • bundler と比べたりしてるので俺は読んでおいた方が良さそう。

How to handle errors in Go? [5 rules]​

  • こういう主張が妥当なのかそうでないのか判別できる程度に早くなりたいものだ。

John Conway, the esteemed mathematician who came up with the eponymous Conway's Game of Life, sadly passed away several weeks ago

https://github.com/xo/xo

github.com

  • データベース定義から Go 言語のコードを生成するコマンドラインツール
  • 各種 RDBMS に対応
  • O/R Mapper ではない
  • テーブルと対応する構造体定義のコードを出力する
  • Insert のようなメソッド、 ActorByActorID のような関数のコードを出力する
    • xo コマンドにテンプレートを指定することで出力されるコードをカスタマイズできる
  • dvdrental データベースに対して実行してコード生成させてみた
    • https://github.com/kyanny/go-xo-practice
    • models/ ディレクトリ
    • そのままではいくつかエラーがでて go build が通らなかった(なぜ?)
    • PostgreSQL 12 に対して実行したらほとんどファイルが出力されなかった(なぜ?)
      • PostgreSQL 11 に対して実行したらうまくいった模様
  • https://github.com/xo/xo/tree/master/examples/booktest に生成されたコードを利用するサンプルコードがある
    • しかしこれと同じような感じに書いても db の型の定義とか、いろいろそのまま動かないような?

AWS training and certificate の AWS Cloud Practitioner Essentials カリキュラムは二種類ある

  1. AWS Cloud Practitioner Essentials (Digital) (Japanese) (デジタル) (日本語版)
    • 音声は日本語だが機械読み上げ。日本語字幕は無し
  2. AWS Cloud Practitioner Essentials (Second Edition) (Japanese)
    • 音声は英語で日本語字幕付き

Second Edition の方を受講した方が良い。

去年改定されたらしい。AWS クラウドプラクティショナーの基礎知識デジタルコースの更新と改善の発表

aws.training サイト内で検索すると Second Edition の方しか出てこないが、 Google 等の検索エンジン経由では古い方もまだヒットする。

気づかず古い方を 30% くらい受講してしまった...。何事もよく調べてから取り組むべし、という教訓。