O’REILLY Learning「The Programmer’s Brain」9 Avoiding bad code and cognitive load: Two frameworks
https://learning.oreilly.com/library/view/the-programmers-brain/9781617298677/
興味のある方は日本語訳が2/16に発売されます。
9 Avoiding bad code and cognitive load: Two frameworks
This chapter covers
・Explaining the connection between code smells and cognitive processes, especially cognitive load
・Surveying the connection between bad names and cognitive load
Code smells were coined by Martin Fowler in his 1999 book Refactoring: Improving the Design of Existing Code [Addison-Wesley Professional].
・Long method
・Long parameter list
・Switch statements
・Alternative classes with different interfaces
・Primitive obsession
・Incomplete library class
・Large class
・Lazy class
・Data class
・Temporary field
・Data clumps
・Divergent change
・Feature envy
・Inappropriate intimacy
・Duplicated code or code clones
・Comments
・Message chains
・Middle man
・Parallel inheritance
・Refused bequest
・Shotgun surgery
・Speculative generality
経験済みだらけ。