Effective Kotlin 中文翻译

白天 夜间 首页 下载 阅读记录
  我的书签   添加书签   移除书签

Item 11 Design For Readability

来源 MaxzMeng 浏览 115 扫码 分享 2022-05-13 16:27:13

若有收获,就点个赞吧

0 人点赞

上一篇:
下一篇:
  • 书签
  • 添加书签 移除书签
  • 空标题文档
  • 第1条:限制可变性
  • Item 10: Write unit tests
  • 第2条:最小化变量作用域
  • 第3条:尽快消除平台类型
  • 第4条:不要把推断类型暴露给外部
  • Item 5: Specify your expectations on arguments and state
  • 第6条:尽可能使用标准库中提供的异常
  • Item 8: Handle nulls properly
  • 第9条:使用 use关闭资源
  • Chapter 2: Readability
  • Item 11: Design for readability
  • Item 13: Avoid returning or operating on Unit?
  • Item 14: Specify the variable type when it is not clear
  • Item 15: Consider referencing receivers explicitly
  • Item 16: Properties should represent state, not behavior
  • Item 17: Consider naming arguments
  • Item 18: Respect coding conventions
  • Chapter 3: Reusability
  • Item 19: Do not repeat knowledge
  • Item 20: Do not repeat common algorithms
  • Item 22: Use generics when implementing common algorithms
  • Item 23: Avoid shadowing type parameters
  • Item 24: Consider variance for generic types
  • Chapter 4: Abstraction design
  • Item 28: Specify API stability
  • Item 29: Consider wrapping external API
  • Item 30: Minimize elements visibility
  • Item 31: Define contract with documentation
  • Item 32: Respect abstraction contracts
  • Chapter 5: Object creation
  • Chapter 6: Class design
  • Item 36: Prefer composition over inheritance
  • Item 39: Prefer class hierarchies to tagged classes
  • Item 40: Respect the contract of equals
  • Item 41: Respect the contract of hashCode
  • Item 42: Respect the contract of compareTo
  • Item 44: Avoid member extensions
  • Chapter 7: Make it cheap
  • Item 45: Avoid unnecessary object creation
  • Item 47: Consider using inline classes
  • Item 48: Eliminate obsolete object references
  • Chapter 8: Efficient collection processing
  • Effective-Kotlin-zh-CN
  • Effective Kotlin
  • 引言
  • 第1条:限制可变性
  • Item 10 Write Unit Tests
  • 第2条:最小化变量作用域
  • 第3条:尽快消除平台类型
  • 第4条:不要把推断类型暴露给外部
  • Item 5 Specify Your Expectations On Arguments And State
  • 第6条:尽可能使用标准库中提供的异常
  • Item 8 Handle Nulls Properly
  • 第9条:使用use关闭资源
  • Introduction
  • Item 11 Design For Readability
  • Item 13: Avoid returning or operating on Unit?
  • Item 15 Consider Referencing Receivers Explicitly
  • Item 17 Consider Naming Arguments
  • Item 18 Respect Coding Conventions
  • Introduction
  • Item 19 Do Not Repeat Knowledge
  • Item 20 Do Not Repeat Common Algorithms
  • Item 23 Avoid Shadowing Type Parameters
  • Item 24 Consider Variance For Generic Types
  • Introduction
  • Item 28 Specify API Stability
  • Item 29 Consider Wrapping External API
  • Item 30 Minimize Elements Visibility
  • Item 31 Define Contract With Documentation
  • Item 32 Respect Abstraction Contracts
  • Introduction
  • Introduction
  • Item 36 Prefer Composition Over Inheritance
  • Item 40 Respect The Contract Of Equals
  • Item 41 Respect The Contract Of Hash Code
  • Item 42 Respect The Contract Of Compare To
  • Item 44 Avoid Member Extensions
  • Introduction
  • Item 45 Avoid Unnecessary Object Creation
  • Item 47 Consider Using Inline Classes
  • Item 48 Eliminate Obsolete Object References
  • Introduction
  • Introduction
暂无相关搜索结果!

    让时间为你证明

    展开/收起文章目录

    分享,让知识传承更久远

    文章二维码

    手机扫一扫,轻松掌上读

    文档下载

    请下载您需要的格式的文档,随时随地,享受汲取知识的乐趣!
    PDF文档 EPUB文档 MOBI文档

    书签列表

      阅读记录

      阅读进度: 0.00% ( 0/0 ) 重置阅读进度

        思维导图备注