Java For Small Teams(英文)
首页
白天
夜间
下载
阅读记录
书签管理
我的书签
添加书签
移除书签
编辑文档
Bad advice
来源 1
浏览
783
扫码
打印
2018-04-28 06:33:18
Bad Advice
上一篇:
下一篇:
发布点评
Bad advice
Single Exit Point Rules
Always Use A StringBuffer
Hungarian Notation
Contributors
GLOSSARY
Process
Build Fast Feedback Loops
Instant Feedback
Fast Feedback
Slower Feedback
Agree The Language You Use For Tests
Use Coverage As A Tool Not A Target
Introduction
Specifics
Do Not Use Reflection
Know How To Implement Hashcode And Equals
Know The JDK One Liners
Do Not Reassign Parameters
Limit Scope
Prefer For Each Loops To For Loops
Prefer Maps And Filters To Imperative Loops
Avoid Apis From Prehistory
Beware Casts And Generics Warnings
Do Not Use Magic Numbers
Do Not Use The Assert Keyword
Avoid Floats And Doubles
Style
Use A Consistent Code Layout
Optimise For Readability
Group Methods For Easy Comprehension
Prefer Readable Code To Comments
Keep Methods Small And Simple
Javadoc Judiciously
Methods Should Do One Thing
Remember Kiss And Yagni
Prefer Composition
Consider Code Generators Carefully
Avoid Null
Keep It Solid
Keep Your Code Dry
Use Final Liberally
Prefer Reversible Decisions
Provide No More Than One Worker Constructor
Make Dependencies Explicit
Avoid Checked Exceptions
Prefer Immutable Objects
Tests
Write Specifications Not Tests
Think Units Not Methods
Name Tests With A Specification Style
Pick Examples Carefully
Make Tests Easy To Understand
Understand How To Use Mocks And Stubs
Understand Your Options For Code Reuse
Write Repeatable Tests
Only Unit Test Code It Makes Sense To Unit Test
Testing FAQS
暂无相关搜索结果!
本文档使用
全库网
构建
×
思维导图备注
×
文章二维码
手机扫一扫,轻松掌上读
×
文档下载
请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
PDF
文档
EPUB
文档
MOBI
文档
×
书签列表
×
阅读记录
阅读进度:
0.00%
(
0/0
)
重置阅读进度