Java编程风格 英文非扫描版

所需积分/C币:16 2015-08-11 11:40:44 2.23MB PDF
收藏 收藏

SIGS Reference library 1.Object Methodology Overview CD-ROM. Doug Rosenberg 2. Directory of Object Technology edited by dale. gaumer 3. Dictionary of object Technology: The Definitive Desk reference Donald g Firesmith and Edward M. Eykholt 4. Next Generation Computing: Distributed Objects for Business edited by peter Fingar, Dennis Read, and im Stikeleather 5. C++ Gems.edited by Stanley B. Lippman 6. OMT Insights: Perspectives on Modeling from the Journal of Object-Oriented Programming. James Rumbaugh 7. Best of Booch: Designing Strategies for Object Technology Grady Booch(Edited by Ed Eykholt) 8. Wisdom of the gurus: A Vision for Object Technology selected and edited by Charles F bowman 9. Open Modeling Language(OML) Reference manual Donald firesmith, Brian Henderson-Sellers, and Jan graham 10. JavaTM Gems: Jewels from Java"M Report collected and introduced by dwight deugo, Ph. D 11. The Netscape Programmer's Guide: Using OlE to Build Componentware Apps. Richard B Lam 12. Advanced Object-Oriented Analysis and design UML·/mesJ.Ol 13. The Patterns Handbook: Techniques, Strategies, and Applications edited by Linda rising 14. Kent becks guide to better smalltalk A Sorted Collection Kent beck 15. The Elements of Java Style. Al Vermeulen, et al 16. More Java"M Gems.edited by dwight deugo, Ph. D 17. More C++ Gems edited by robert C. martin Additional Volumes in Preparation rogue Wave SOFTWARE The elements Java Style Al vermeulen Scot w. ambler Greg Bumgardner Eldon metz Trevor Misfeldt Jim Shur Patrick Thompson CAMBRIDGE UNIVERSITY PRESS BOOK CAMBRIDGE UNIVERSITY PRESS Cambridge, New York, Melbourne, Madrid, Cape Town, Singapore, Sao Paulo Cambridge University Press 32 Avenue of the americas New york ny 10013-2473 USA Published in association with Sigs books C Cambridge University Press 2000 Al rights reserved This publication is in copyright. Subject to statutory exception and to the provisions of relevant collective licensing agreements, no reproduction of any part may take place withou the written permission of Cambridge university press Any product mentioned in this book may be a trademark of its company First published 2000 9th printing, 2007 Design and Composition by david Van Ness Cover design by Andrea Cammarata Printed in the United States of America A catalog record for this publication is available from the British library isBn 978-0-521-77768-I paperback Cambridge University Press has bility fo the persistence or accuracy of URls for extemal or third-party Internet Web sites referred to in this publication and does not guarantee that any content on such Web sites is, or will remain, accurate or appropriate The authors would like to thank our loved ones for enduring us while we toiled away on this book Table of contents eface Audience Acknowledgments X Introduction 1. General Principles 2. Formatting C。 venti。ns 3. Naming C。 nventions 15 Package Names 18 pe Names 20 Class names Interface Names 22 Method Names 23 Variable names 25 Field names 27 Parameter names 28 Constant Names 29 THE ELEMENTS OF JAVA STYLE 。D。 cementation Conventions 3 Comment Types 32 Documentation Comments 36 ommen sty dle 38 Comment Content 49 nternal comments 52 5. Programming Conventions 57 pe Watery Statements and Expressions Construction Exception Handling 72 Assertions 5 Concurrency 79 Synchronization 80 Efficiency 85 6. Packaging Conventions .89 Summary 95 Glossary 105 Bibliography 119 Index 123 Preface T ROGUE WAVE, we sell C+t and java software compo nents. We have always included source code with our products. Customers often browse through the code to get a feeling, not just for how it works, but for how to write good software. As a result, we have always felt pressure--maybe more pressure than most companies-to have good, consis- tent style throughout our source code the company grew, making sure programmers were all fol- ing he same rules became difficult. To address this, our founder and first programmer, Tom Keffer, wrote 35 pages that explained how we write C++ code at rogue Wave. We passed the document around and made sure new hires got a copy. It worked. When customers asked how we maintained consistency in our coding, we told them about Toms"C++ Design, Implementation, and Style Guide, and sent them a copy. Word spread and we turned Toms document into a technical report. We sent out thousands of copies and received terrific positive feedback When Java came along, we decided we needed a document like the C++ guide a note went out to our internal javadev@roguewave com mailing list soliciting rules for Java use that we should be using. The resulting list of rules became the first draft of the Rogue Wave Java Style Guide As the list of rules grew, the style gu uide began to look more and more like a real book. This time, we decided to publish our guide instead of simply issuing another rogue wave tech nical report To our amazement the folks at Cambridge uni- versity Press thought this was a great idea, and The elements ofjava Style was born

试读 127P Java编程风格 英文非扫描版
立即下载 身份认证后 购VIP低至7折
关注 私信
Java编程风格 英文非扫描版 16积分/C币 立即下载
Java编程风格 英文非扫描版第1页
Java编程风格 英文非扫描版第2页
Java编程风格 英文非扫描版第3页
Java编程风格 英文非扫描版第4页
Java编程风格 英文非扫描版第5页
Java编程风格 英文非扫描版第6页
Java编程风格 英文非扫描版第7页
Java编程风格 英文非扫描版第8页
Java编程风格 英文非扫描版第9页
Java编程风格 英文非扫描版第10页
Java编程风格 英文非扫描版第11页
Java编程风格 英文非扫描版第12页
Java编程风格 英文非扫描版第13页
Java编程风格 英文非扫描版第14页
Java编程风格 英文非扫描版第15页
Java编程风格 英文非扫描版第16页
Java编程风格 英文非扫描版第17页
Java编程风格 英文非扫描版第18页
Java编程风格 英文非扫描版第19页
Java编程风格 英文非扫描版第20页

试读结束, 可继续阅读

16积分/C币 立即下载