タグ

ブックマーク / copyconstruct.medium.com (1)

  • Small Functions considered Harmful

    In this post, I aim to: — Shed light on some of the presumed benefits of small functions — Explain why I personally think some of the benefits don’t really pan out as well as advertised — Explain why small functions can actually prove counterproductive sometimes — Explain the times when I do think smaller functions truly shine General programming advice doled out invariably seems to extoll the ele

    Small Functions considered Harmful
    ite
    ite 2017/08/13
    大量の一度しか使われない一行の関数で作られたプログラムを読んだときは殺意を憶えた。DRYも良い指針だと思うけど、良く練られた標準的な関数が整備された現代のプログラム言語で厳守すべきとは思えない。
  • 1