[其他] Five Lnes of Code

[复制链接]
发表于 2021-8-20 20:22:11
简要内容
1 简介
2 了解重构;什么、为什么和为什么现在?
第 1 部分:通过重构计算机游戏来学习
3 使用函数,分解长函数
4 使用对象来消除复杂的 if 语句
5 统一代码以简化和实现重用
6 封装,本地化不变量
第 2 部分:将您学到的知识带入现实世界
7 使用编译器
8 避免评论
9 爱删码
10 永远不要害怕添加代码
11 避免优化和通用性
12 遵循代码中的结构
13 糟糕的代码应该看起来很糟糕
14 总结

(brief contents
1 Introduction
2 Getting to Know Refactoring; the What, Why, and Why Now?
PART 1: LEARN BY REFACTORING A COMPUTER GAME
3 Using Functions, to Break Up Long Functions
4 Using Objects, to Eliminate Complex if Statements
5 Unifying code to simplify and enable reuse
6 Encapsulate, to Localize Invariants
PART 2: TAKING WHAT YOU HAVE LEARNED INTO THE REAL WORLD
7 Work With the Compiler
8 Avoid Comments
9 Love Deleting Code
10 Never be Afraid to Add Code
11 Avoid Optimizations and Generality
12 Follow the Structure in the Code
13 Bad Code Should Look Bad
14 Wrapping Up)

Five Lnes of Code.pdf


上一篇:The Coder Habits_ The #39# habits of the professional programmer
下一篇:Probabilistic Deep Learning With Python, Keras and TensorFlow Probability + c...

使用道具 举报

Archiver|手机版|小黑屋|吾爱开源 |网站地图

Copyright 2011 - 2012 Lnqq.NET.All Rights Reserved( ICP备案粤ICP备14042591号-1粤ICP14042591号 )

关于本站 - 版权申明 - 侵删联系 - Ln Studio! - 广告联系

本站资源来自互联网,仅供用户测试使用,相关版权归原作者所有

快速回复 返回顶部 返回列表