软件工程课件:06-CodingStyle.pptx

Outline;Code Craft;;Defensive programming;The lessons of Ariane;The lessons of Ariane;;The Murphy’s Law;Defensive Programming;Defensive Programming;Defensive Programming;For and Against;Contracting Software;Elements of Contracts;Design by Contract (DbC) with Eiffel;An Example;Programming with Assertions;18;19;Candidate Assertions;Error-Handling ;Error-Handling Techniques;Error-Handling Techniques;In a Nutshell;The layout and presentation of source code;Know Your Audience;The Big Deal;Good Presentation;29;Common Coding Standards;31;In a Nutshell;Naming;34;The Power of a Name ;What do we name;How do we name;The Nuts and Bolts;The Nuts and Bolts;General DON’Ts;In a Nutshell;Self-Documenting Code;From handmade to self-assembly;Code Documentation ;Self-Documenting Code;46;Techniques;48;Techniques;Techniques;;login21;In a Nutshell;Code Comments;55;56;To Comment or Not to Comment;Commenting Techniques ;59;Commenting Techniques ;Commenting Techniques ;Commenting Techniques ;In a Nutshell;A Few More Words…… ;;Checklist: Major Construction Practices;References;Thank you!;One More Thing…..;A Foolish Consistency is the Hobgoblin of Little Minds

文档评论(0)

1亿VIP精品文档

相关文档