18 19 20 21 22 23 24 QGT 6 5 4 3 2 1. Distributed in “Steve McConnell's seminal book Code Complete is one of the most accessible works discuss-. Code Complete 2nd Edition gaulecvebota.ga Pages·· MB·3, Downloads. His books are fun to read, and you never forget that he is speaking from. Code Complete 2nd Edition gaulecvebota.ga Pages · The Detox Miracle Sourcebook: Raw Foods and Herbs for Complete Cellular Regeneration.

    Author:DINA BLASER
    Language:English, Spanish, French
    Country:Thailand
    Genre:Science & Research
    Pages:396
    Published (Last):12.01.2016
    ISBN:286-9-53444-563-8
    Distribution:Free* [*Register to download]
    Uploaded by: NITA

    46572 downloads 130240 Views 40.40MB PDF Size Report


    Code Complete 2 Pdf

    After ten years, there is still no better authority than Code Complete. . 8 2 Metaphors for a Richer Understanding of Software Development The. 2. Metaphors for a Richer Understanding of Software Development 3. Measure Twice, Cut Once: Upstream Prerequisites 4. Code Complete, 2nd Ed. Checklists1. Steven C. McConnell. This material is copied and/or adapted from the Code Complete 2 Website at gaulecvebota.ga

    Since this book is the first entry on my prioritized list of Recommended Reading for Developers , and Steve is the patron saint of this web site, you better believe I just placed an order for it! Also, if you don't own the first five books on that reading list , shame on you, and get your ass over to Amazon immediately. If I was rich enough to buy a copy of those books for every developer on earth, I would. I already own two copies of the original Code Complete; one for work, one for home. There's a list of what changed in the new edition , if you're curious: There are still far more people who talk about good practices than who actually use good practices. I see far too many people using current buzzwords as a cloak for sloppy practices. When the first edition was published, people were claiming, "I don't have to do requirements or design because I'm using object-oriented programming. Most of those people weren't really doing object-oriented programming -- they were hacking, and the results were predictable, and poor. Right now, people are saying "I don't have to do requirements or design because I'm doing agile development. Testing guru Boris Beizer said that his clients ask him, "How can I revolutionize and transform my software development without changing anything except the names and putting some slogans up on the walls?

    Write libraries that will support the programming features you want for the problem at hand. One example McConnell gives writing an assertion library if your language does not support assertions. Conventions, like processes, do not matter in their particulars.

    Some conventions are better than others, but for the most part, conventions tend to be arbitrary. However, having conventions makes code easier to read and modify because a convention can communicate a lot without using much space or requiring much thinking. This is a particular method of managing complexity.

    Higher level code should be supported by lower level code that hides implementation specific details from the higher level code. When done well, this makes the code easier to read and easier to modify.

    Even at the construction level, this can be done by choosing good class names and abstractions, factoring code into methods to maintain a common level of abstraction, and choosing good variable names.

    Code Complete 2: The Revenge

    Look out for warning signs, such as classes with an abnormally high number of defects. These warning signs do not necessarily mean that something is wrong with that part of the program, but they are a good indicator that you should be a little bit suspicious.

    These warning signs could show up after construction error rate or during construction compiler warning, indications from your self or other that your program is hard to understand. In addition to being my favorite section heading in the book, this principle emphasizes that iteration is appropriate at all points of the software development process. Requirements are rarely fixed in stone, bugs are always present, and developers can always find a better way to rewrite code. Iteration gives all of these improvements a chance to actually make it into the product under development.

    No one convention, process, or tool set is the be all and end all of software development. Developers should be wary of absolutes and try to avoid blind faith in the processes they use. Solutions should be adapted to the problem at hand, not vice versa. The key to keeping an open mind and becoming effective and flexible is experimentation. Be willing to try new things, measure the effectiveness of those experiments, and be willing to change based on the results.

    Those are the high level principles. These principles occur over and over again through the seven parts of this book. The first part, titled "Laying the Foundation" discusses the general process of software development and the role of construction a. Construction is important, according to McConnell, because it is the only part of the software development process that absolutely must happen to produce a working software project.

    Construction is also an area that, traditionally, has not has as much attention to it as other areas such as high level design or testing.

    However, McConnell stresses that all parts of the development process are important in creating a successful project and gives pointers throughout the text to resources that discuss other parts of the software development process in more depth.

    He notes that pre-construction planning is particularly important since no amount of good construction and through testing can save a bad design.

    Section two is "Creating High-Quality Code". This section introduces a point emphasized again and again throughout the book. Software's "Primary Technical Imperative" is managing complexity.

    Code Complete, Second Edition [Book]

    High quality code exposes people reading it to consistent levels of abstraction separated by clear boundaries. Complexity is managed by minimizing the essential complexity one has to deal with at any given time and trying to keep accidental complexity from spreading throughout the code base.

    High quality classes and routines provide consistent abstractions, document their assumptions, and check their invariants defensively; they fail sooner rather than later. Even a simple class or routine is worthwhile if it decreases the complexity of reading the code where it is used. One of the most practically useful facts I got out of Code Complete was learning about the "Pseudocode Programming Process".

    This process is a way of developing code by starting with detailed pseudocode. When constructing a program, a developer should iteratively write pseudocode that is high level enough to be in the domain of the problem but low level enough for translation to real code to be nearly mechanical.

    Developing pseudocode ensures that the developer understands the problem at a low enough level for implementation, encourages the programmer to think about error checking before implementing the nominal path through the code, may indicate what when to factor code into separate routines and suggest names for those routines.

    Those parts of the high level pseudocode that the developer decides to leave in provide automatic, high level commenting of code. The third section is entitled "Variables" and discusses the effective use of variables. The chapters in this section discuss data initialization do it close as close to the declaration as possible , variable scope keep it as small as possible , limiting variables to a single purpose, effective variable names keep them specific, use a naming conventions , and tips for using fundamental and more complex data types.

    Statements are covered in section four called, not surprisingly, "Statements". This section discusses methods for effectively organizing and using straight line code, conditionals, and loops as well as more exotic control structures such as exceptions, gotos, and various table driven control structures.

    This section discusses how deep nesting of control structures tends to make code complex.

    If possible, it should be avoided by restructuring the code or factoring the nested code into its own routine. The more paths there are through a code fragment, the more complex it is; the number of paths a developer must consider at a single time should be minimized.

    Section five, "Code Improvements" discusses a mishmash of techniques for improving code. It discusses software quality, collaboration, developer testing, debugging, refactoring, and code tuning.

    One key point of this section is that the goals of a certain construction project should be clear. Some goals are bound to go against each other, and if developers do not know which are most important, they will do a bad job of trying to optimize all of them at once.

    The most obvious example of this tendency is that aggressive optimization may make code less readable and prevent beneficial refactorings. This section also points out that code reviews, testing, debugging, refactoring, and code tuning all have the potential to improve code quality, but it is when they are used thoughtfully in unison that their potential is maximized.

    Section six, "System Considerations" discusses some higher level issues in constructing a system. As project size increases, project quality and development speed tend to go down in a faster than linear manner. This is because as the project increases, more and more overhead gets taken up by managing communication and more details tend to get lost in the cracks. It is for this reason that having a process and conventions becomes more important on large projects; the more that is automatic, the less that quality and and development time will suffer.

    This section also discusses how to manage programmers and essential tools that every developer should know about and use. This section also discusses several integration processes and emphasizes that which process is right depends on the project being developed.

    The final section of Code Complete is "Software Craftsmanship".

    Code Complete

    This section talks about good practices in actually structuring code and how to write good, effective comments and code that documents itself as much as possible. This section also describes the importance of personal character in becoming an excellent developer.

    McConnell posits that intelligence is less important than other personal characteristics such as humility, curiosity, intellectual honesty, communication and cooperation, creativity and discipline, effective laziness, and good habits. Please discuss this issue on the article's talk page. February This section is in list format, but may read better as prose.

    You can help by converting this section , if appropriate. Editing help is available. Retrieved But the most important take-aways are in Chapter 33, Personal Character: The fastest way to do so is to take on the attitudes of master coders humility, curiosity, intellectual honesty, discipline, creativity , while also practicing their habits many good habits are listed in the book, e.

    TechBookReport Reading it means that you enjoy your work, you're serious about what you do, and you want to keep improving. In Code Complete, Steve notes that the average programmer reads less than one technical book per year. The very act of reading this book already sets you apart from probably ninety percent of your fellow developers. In a good way.

    I'm quite disappointed, since I'd heard nothing but praise for this book before picking it up. But it's not for me, and I'm now dubious of its value for any programmer outside of a fairly narrow, large-team, waterfall development process involving large numbers of people writing very large quantities of code in languages that aren't very expressive. And, well, in that situation I think one would get more benefit from changing that environment than reading this book.

    Steven C. Construx Software. Retrieved from " https: Hidden categories:

    Related Posts:


    Copyright © 2019 gaulecvebota.ga.