プログラミング

プログラミング

Enumの値をビットマスク可能な値で定義しておくことはありか?

Enumの値を定義する場合、自然数の連番(1, 2, 3, ...)で定義することが多いのではなかろうか。言語によっては値を定義しない場合に勝手にこの値が割り当てられる。この値を1, 2, 4, 8といったようにビットシフトを行った値で定義...
プログラミング

GraphQLのスキーマが難しい

構文ではなく設計の話。現在はブロックチェーンに関連する情報を取得するAPIをGraphQLで実装しているが、そのデータ構造の設計でどうするのが正解かわからずに進めている部分がある。それは設定関連。具体的にはチェーンに対するデータ構造なのだが...

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny