Effective C#:改善C#代码的50个有效方法(原书第3版)
作者:Bill Wagner
出版社:机械工业出版社
ISBN:9787111597193
VIP会员免费
(仅需0.8元/天)
¥ 40.0
温馨提示: 价值40000元的1000本电子书,VIP会员随意看哦!
电子书推荐
-
Effective Java 3rd edition(Effective Java第三版英文原版)附第二版 评分:
目录如下: 1 Introduction 2 Creating and Destroying Objects Item 1: Consider static factory methods instead of constructors Item 2: Consider a builder when faced with many constructor parameters Item 3: Enforce the singleton property with a private constructor or an enum type Item 4: Enforce noninstantiability with a private constructor Item 5: Prefer dependency injection to hardwiring resources Item 6: Avoid creating unnecessary objects Item 7: Eliminate obsolete object references Item 8: Avoid finalizers and cleaners Item 9: Prefer try-with-resources to try-finally 3 Methods Common to All Objects Item 10: Obey the general contract when overriding equals Item 11: Always override hashCode when you override equals Item 12: Always override toString Item 13: Override clone judiciously Item 14: Consider implementing Comparable 4 Classes and Interfaces Item 15: Minimize the accessibility of classes and members Item 16: In public classes, use accessor methods, not public fields Item 17: Minimize mutability Item 18: Favor composition over inheritance Item 19: Design and document for inheritance or else prohibit it Item 20: Prefer interfaces to abstract classes Item 21: Design interfaces for posterity Item 22: Use interfaces only to define types Item 23: Prefer class hierarchies to tagged classes Item 24: Favor static member classes over nonstatic Item 25: Limit source files to a single top-level class 5 Generics Item 26: Don’t use raw types Item 27: Eliminate unchecked warnings Item 28: Prefer lists to arrays Item 29: Favor generic types Item 30: Favor generic methods Item 31: Use bounded wildcards to increase API flexibility Item 32: Combine generics and varargs judiciously Item 33: Consider typesafe heterogeneous containers 6 Enums and Annotations Item 34: Use enums instead of int constants Item 35: Use instance fields instead of ordinals Item 36: Use EnumSet instead of bit fields Item 37: Use EnumMap instead of ordinal indexing Item 38: Emulate extensible enums with interfaces Item 39: Prefer annotations to naming patterns Item 40: Consistently use the Override annotation Item 41: Use marker interfaces to define types 7 Lambdas and Streams Item 42: Prefer lambdas to anonymous classes Item 43: Prefer method references to lambdas Item 44: Favor the use of standard functional interfaces Item 45: Use streams judiciously Item 46: Prefer side-effect-free functions in streams Item 47: Prefer Collection to Stream as a return type Item 48: Use caution when making streams parallel 8 Methods Item 49: Check parameters for validity Item 50: Make defensive copies when needed Item 51: Design method signatures carefully Item 52: Use overloading judiciously Item 53: Use varargs judiciously Item 54: Return empty collections or arrays, not nulls Item 55: Return optionals judiciously Item 56: Write doc comments for all exposed API elements 9 General Programming Item 57: Minimize the scope of local variables Item 58: Prefer for-each loops to traditional for loops Item 59: Know and use the libraries Item 60: Avoid float and double if exact answers are required Item 61: Prefer primitive types to boxed primitives Item 62: Avoid strings where other types are more appropriate Item 63: Beware the performance of string concatenation Item 64: Refer to objects by their interfaces Item 65: Prefer interfaces to reflection Item 66: Use native methods judiciously Item 67: Optimize judiciously Item 68: Adhere to generally accepted naming conventions 10 Exceptions Item 69: Use exceptions only for exceptional conditions Item 70: Use checked exceptions for recoverable conditions and runtime exceptions for programming errors Item 71: Avoid unnecessary use of checked exceptions Item 72: Favor the use of standard exceptions Item 73: Throw exceptions appropriate to the abstraction Item 74: Document all exceptions thrown by each method Item 75: Include failure-capture information in detail messages Item 76: Strive for failure atomicity Item 77: Don’t ignore exceptions 11 Concurrency Item 78: Synchronize access to shared mutable data Item 79: Avoid excessive synchronization Item 80: Prefer executors, tasks, and streams to threads Item 81: Prefer concurrency utilities to wait and notify Item 82: Document thread safety Item 83: Use lazy initialization judiciously Item 84: Don’t depend on the thread scheduler 12 Serialization Item 85: Prefer alternatives to Java serialization Item 86: Implement Serializable with great caution Item 87: Consider using a custom serialized form Item 88: Write readObject methods defensively Item 89: For instance control, prefer enum types to readResolve Item 90: Consider serialization proxies instead of serialized instances
上传时间:2019-03 大小:77.35MB
- 4.37MB
java翻牌源码-effective-java-3rd-chinese:有效的java-3rd-chinese
2021-06-05java翻牌源码 effective-java-3rd-chinese 前51条:文章翻译来源地址: 现在全部章节已经更新完成 :提供更好的在线阅读版本 : 提供更快的访问速度 写在最前面 本 repo 从来没有授权过任何公众号进行发布转载,所有公众号的引流都是公众号拥有者的自发行动,和本 repo 无关 为什么搞这个项目,本项目初始创建的时候并不知道「effective java 3rd」已经引入翻译。并且 repo 主是一个 true pdf 的狂热爱好者,个人制作这个项目也是因为更喜欢 true pdf 的观感。并且如果出现翻译错漏,迭代更新也是及时生效的。 免责声明:本项目仅为个人学习交流使用,切勿作为商业用途,若将此项目作为商业用途,后果自负,与本项目无关。 about this repository 本来以为只是个直接搬运的活,实际上不是。主要工作如下: 改进排版,原有博文排版不太优秀,根据markdown 排版指北重新排版。 内容修改,原作者在翻译过程中有笔误(可能打字太快了),这里进行修改。 等待内容搬运完成,使用cmd markdown生成 pdf 离线文件 mark
- 17.0MB
effective c# (第三版)
2018-06-19Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals. The author and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein.
- 4.2MB
effective-java-3rd-chinese
2021-05-24effective-java-3rd-chinese 前51条:文章翻译来源地址: about this repository 本来以为只是个直接搬运的活,实际上不是。主要工作如下: 改进排版,原有博文排版不太优秀,根据markdown 排版指北重新排版。 内容修改,原作者在翻译过程中有笔误(可能打字太快了),这里进行修改。 等待内容搬运完成,使用cmd markdown生成 pdf 离线文件 markdown 文件以及英文版原版链接也都放在了 github 上面,希望小伙伴也可以中英文对照,给出一些意见。 友情链接
- 434B
java学习PDF下载地址全 百度云盘下载
2014-05-01java学习最基础的PDF下载地址全
- 164.8MB
effecctivejava 第三版中文
2019-03-22effecctivejava 第三版中文
- 656KB
effective C++ 3rd edition
2008-06-12effective C++ 3rd edition
- 643KB
Effective C++ 3rd Edition
2008-11-20Effective C++ 3rd Edition 英文版 CHM格式 作者: Scott Meyers 副标题: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) (Addison-Wesley Professional Computing Series) ISBN: ...
- 642KB
Effective C++ 3rd Edition英文版
2012-02-15Effective C++ 3rd Edition英文版
- 1.71MB
Effective C++, 3rd Edition
2014-10-07Effective C++, 3rd
- 643KB
Effective C++ 3rd Edition.rar
2011-01-12Effective C++ 第三版、英文版、CHM版本
- 1.24MB
EFFECT JAVA 中文
2013-03-04EFFECT JAVA 中文
- 22.94MB
More Effective C#中文版.pdf
2017-04-22More Effective C#中文版.pdf 个人收集电子书,仅用学习使用,不可用于商业用途,如有版权问题,请联系删除!
- 1.8MB
[免费高清PDF版]Effective_C#_中文版改善C#程序的50种方法.rar
2018-04-04[免费高清PDF版]Effective_C#_中文版改善C#程序的50种方法.rar [免费高清PDF版]Effective_C#_中文版改善C#程序的50种方法.rar
- 1.6MB
Effective C# 中文版改善C#程序 E书
2007-11-19Effective C# 中文版改善C#程序的50种方法
- 1.39MB
Effective_C#中文版_改善C#程序的50种方法.pdf
2012-02-19Effective_C#中文版_改善C#程序的50种方法.pdf
- 4.73MB
Effective C++ 3rd Edition 55 Specific Ways to Improve Your Programs and Designs (PDF)
2010-08-02If you want to really and truly understand C++, you must read Effective C++. After first reading Effective C++, I had a totally new appreciation for and understanding of C++. And it's not just me: ...
- 643KB
Effective C++ 3rd Edition 英文版 CHM格式
2011-02-06副标题: 55 Specific Ways to Improve Your Programs and Designs (3rd Edition) (Addison-Wesley Professional Computing Series) ISBN: 9780321334879 页数: 297 出版社: Addison-Wesley Professional 出版年: ...
- 643KB
effective c++ 3rd英文版
2009-09-21Topics from the second edition have been extensively revised to reflect modern design considerations, including exceptions, design patterns, and multithreading.Important features of Effective C++ ...
- 1.90MB
Effective awk Programming_ 3rd Edition
2008-11-14Effective awk Programming_ 3rd Edition 英文版
- 2.30MB
Effective_C++_3rd_Edition.pdf 英文原版
2015-02-07Effective_C++_3rd_Edition 很棒的C++进阶书 如果能够全部都懂看完 肯定会在语言学习的基础上得到很大的提升
- 4.68MB
Effective C#.pdf
2010-06-07Effective C#.pdf第二版,有需要的朋友可以下载,很清晰,大家可免点下载。
- 16.54MB
Effective+C中文版第三版+高清PDF
2018-09-21Effective+C中文版第三版+高清PDF
- 1.50MB
More Effective C#(2nd) 无水印pdf
2017-10-02More Effective C#(2nd) 英文无水印pdf 第2版 pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
- 17.0MB
Effective C++ 3rd Edition 中文、英文高清pdf.
2009-10-15所有C++程序员必看的书籍,除非你不想做一个优秀的C++程序员。此书无论是对C++新手,还是有着多年经验的老手,此书对你都是有用的。它能帮助你写出高质量的复用性强的代码,帮助你避免一些非常隐蔽的错误。
- 7.53MB
effective c++ 3rd
2016-04-12effective c++ 3rd 高清非影印版 可复制
- 10.0MB
Effective+C+++3rd+Edition+中文版 (侯捷) part1/(共两part)
2009-07-21Effective C++ 3rd Edition 中文版 Effective+C+++3rd+Edition+中文版 (侯捷)
- 6.36MB
Effective+C+++3rd+Edition+中文版 (侯捷) part2/(共两part)
2009-07-21Effective C++ 3rd Edition 中文版 Effective+C+++3rd+Edition+中文版 (侯捷)
- 1.60MB
Effective+C+++3rd+Edition中文版
2015-01-24此文档是Effective C++书籍的pdf版,有学习兴趣的朋友可以参考下载
- 11.29MB
英文原版-Effective Robotics Programming with ROS 3rd Edition
2019-09-23Find out everything you need to know to build powerful robots with the most up-to-date ROSBuilding and programming a robot can be cumbersome and time-consuming, but not when you have the right ...
- 675KB
Java.Threads.3rd.Edition(chm)
2008-10-11Therefore, even if you've written a threaded program in Java, this book can help you to exploit new features of Java to write even more effective programs. The first few chapters of the book deal ...