Jack the Ripper and legacy codebases have more in common than you'd think. Inspired by forensic psychology methods, you'll learn strategies to predict the future of your codebase, assess refactoring direction, and understand how your team influences the design. With its unique blend of forensic psychology and code analysis, this book arms you with the strategies you need, no matter what programming language you use.
Software is a living entity that's constantly changing. To understand software systems, we need to know where they came from and how they evolved. By mining commit data and analyzing the history of your code, you can start fixes ahead of time to eliminate broken designs, maintenance issues, and team productivity bottlenecks.
In this book, you'll learn forensic psychology techniques to successfully maintain your software. You'll create a geographic profile from your commit data to find hotspots, and apply temporal coupling concepts to uncover hidden relationships between unrelated areas in your code. You'll also measure the effectiveness of your code improvements. You'll learn how to apply these techniques on projects both large and small. For small projects, you'll get new insights into your design and how well the code fits your ideas. For large projects, you'll identify the good and the fragile parts.
Large-scale development is also a social activity, and the team's dynamics influence code quality. That's why this book shows you how to uncover social biases when analyzing the evolution of your system. You'll use commit messages as eyewitness accounts to what is really happening in your code. Finally, you'll put it all together by tracking organizational problems in the code and finding out how to fix them. Come join the hunt for better code!
0 有用 laogao 2015-09-16 11:13:14
立意很好,但讲得太肤浅。
0 有用 al_lea 2015-10-27 06:27:50
事后分析,玩具例子
0 有用 時雨 2019-03-15 09:58:50
架构师必读,对质量有追求者必读
0 有用 momo 2025-03-24 17:56:52 北京
https://github.com/islomar/your-code-as-a-crime-scene?tab=readme-ov-file 实践 大致读了读,感觉这个书名起得很有水平哈哈,把软件工程和法证分析结合,把codebase当成犯罪现场去查hotspot等等问题代码,感觉可实用性不太强,感觉codebase把一些静态分析做好就行了,这些git控制量化代码质量其实远不如招靠谱的人加入... https://github.com/islomar/your-code-as-a-crime-scene?tab=readme-ov-file 实践 大致读了读,感觉这个书名起得很有水平哈哈,把软件工程和法证分析结合,把codebase当成犯罪现场去查hotspot等等问题代码,感觉可实用性不太强,感觉codebase把一些静态分析做好就行了,这些git控制量化代码质量其实远不如招靠谱的人加入团队更有意义 (展开)
0 有用 梅雪松 2021-03-21 22:41:15
通过代码提交记录分析架构。是一种新思路,有一定的借鉴意义。但是不如静态代码分析来的直接。