タグ

2020年2月26日のブックマーク (2件)

  • Levels of Seniority - roadmap.sh

    Levels of Seniority Kamran Ahmed · Improve this Guide I have been working on redoing the roadmaps – splitting the skillset based on the seniority levels to make them easier to follow and not scare the new developers away. Since the roadmaps are going to be just about the technical knowledge, I thought it would be a good idea to reiterate and have an article on what I think of different seniority r

    Levels of Seniority - roadmap.sh
    tri-star
    tri-star 2020/02/26
    junior/mid/seniorそれぞれのレベルのあるべき姿や何を考えるべきかについて。読みきれてないけどいつか振り返りたい
  • WHERE id=? AND owner_id=? に天罰を - Qiita

    $item = $query->fetch(); if (!$item) { throw new NotFoundException(); } owner_id と一致しない者がアクセスしたときは 403 Forbidden にして欲しいと顧客が求める可能性はないのか。拡張に対してオープンであろうとする配慮をなぜできないのか。 そもそも、プライマリキーで十分高速にレコードを特定できている時点で、データベースの責務は終わっているのだ。なぜ貴様らは SQL などというモデリング言語外の文字列 にユースケースを実装するのか。 正しいコードを示そう。

    WHERE id=? AND owner_id=? に天罰を - Qiita
    tri-star
    tri-star 2020/02/26
    DBがどこまでロジックを握るかの考え方。基本的にロジックはシステム側で握る。DBは必要なデータを効率よく取得することを意識する。