Program documentation Using the Doxygen tool Program documentation1.

Slides:



Advertisements
Similar presentations
1 Unit 02. Visual Studio Visual Studio.NET Creating Projects Project Anatomy Using the IDE Code Snippets.
Advertisements

Professional Toolkit V2.0 C:\Presentations - SmartCafe_Prof_V2.0 - bsc page 1 Professional Toolkit 2.0.
WeB application development
Web Forms and ASP.NET Programming Right from the Start with Visual Basic.NET 1/e 12.
Documentation Generators: Internals of Doxygen John Tully.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
ASP Tutorial. What is ASP? ASP (Active Server Pages) is a Microsoft technology that enables you to make dynamic and interactive web pages. –ASP usually.
Object-Oriented Enterprise Application Development Javadoc Last Updated: 06/30/2001.
1 Web Wizards Guide To PHP David Lash Chapter 1 Introduction to PHP.
Tutorial 10 Programming with JavaScript
1 CA201 Word Application Creating Document for the Web Week # 9 By Tariq Ibn Aziz Dammam Community college.
Thinking inside the box 26 June 2003 Soar Workshop - Slide 1 © 2003 Soar Technology, Inc. Thinking… …inside the box SoarDoc Presented on Thursday, 26 June.
Understanding the Mainline Logical Flow Through a Program (continued)
Developing a Basic Web Page Posting Files on UMBC
Doxygen and Javadoc By Derzsy Noemi.
Concordia University Department of Computer Science and Software Engineering Click to edit Master title style ADVANCED PROGRAMING PRACTICES API documentation.
A First Program Using C#
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Web Design & Development PHP.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Making an HTML Document Notepad Group Bo Kim Dan Carter Han Chong Justin Weaver Kris Lamont.
Module 1: Introduction to C# Module 2: Variables and Data Types
WORKING WITH XSLT AND XPATH
Introducing Dreamweaver MX 2004
NetTech Solutions Working with Web Elements Lesson 6.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. WORD 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 21 Fields and Forms.
Introduction to Applets CS 3505 Client Side Scripting with applets.
JavaDoc1 JavaDoc DEPARTMENT OF COMPUTER SCIENCE AND SOFTWARE ENGINEERING CONCORDIA UNIVERSITY July 24, 2006 by Emil Vassev & Joey Paquet revision 1.2 –
Program documentation using the Javadoc tool 1 Program documentation Using the Javadoc tool.
Microsoft Visual Basic 2005 ENRICHMENT CHAPTER Visual Studio Tools for Office.
XP Tutorial 10New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with JavaScript Creating a Programmable Web Page for North Pole.
Tutorial 10 Programming with JavaScript. XP Objectives Learn the history of JavaScript Create a script element Understand basic JavaScript syntax Write.
Tutorial 10 Programming with JavaScript
Done by: Hanadi Muhsen1 Tutorial 1.  Learn the history of JavaScript  Create a script element  Write text to a Web page with JavaScript  Understand.
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Javadoc A very short tutorial. What is it A program that automatically generates documentation of your Java classes in a standard format For each X.java.
Sahar Mosleh California State University San MarcosPage 1 JavaScript Basic.
JavaDoc and Contracts Spring Documenting Contracts with JavaDoc Contract model for methods Preconditions Postconditions JavaDoc Industry standard.
1 Programming Environment and Tools VS.Net 2012 First project MSDN Library.
CSE IntroductiontoDoxygen. Contents Introduction Main Steps for creating documentation Examples.
JavaScript Introduction.  JavaScript is a scripting language  A scripting language is a lightweight programming language  A JavaScript can be inserted.
A brief introduction to javadoc and doxygen. What’s in a program file? 1. Comments 2. Code.
Doxygen Documentation
Chapter 12© copyright Janson Industries Java Server Faces ▮ Explain the JSF framework ▮ SDO (service data objects) ▮ Facelets ▮ Pagecode classes.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
Documentation Javadocs. Design/Documentation An essential ingredient of good Object Oriented programming is known as design by contract. This means that.
Invitation to Computer Science 6 th Edition Chapter 10 The Tower of Babel.
Tutorial 10 Programming with JavaScript. 2New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition Objectives Learn the history of JavaScript.
CHAPTER 7 LESSON C Creating Database Reports. Lesson C Objectives  Display image data in a report  Manually create queries and data links  Create summary.
1 CSC160 Chapter 1: Introduction to JavaScript Chapter 2: Placing JavaScript in an HTML File.
JavaScript and AJAX 2nd Edition Tutorial 1 Programming with JavaScript.
XP Tutorial 10New Perspectives on HTML, XHTML, and DHTML, Comprehensive 1 Working with JavaScript Creating a Programmable Web Page for North Pole Novelties.
Today Javadoc. Packages and static import. Viewing API source code. Upcoming Topics: –protected access modifier –Using the debugger in Eclipse –JUnit testing.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Problem Solving With C++ Doxygen Oct/Nov Introduction Doxygen is a documentation generator, a tool for writing software reference documentation.
Automatic Documentation Systems
Getting Started with CSS
Advanced Programing practices
Tutorial 10 Programming with JavaScript
Documentation Generators
Guide To UNIX Using Linux Third Edition
Program documentation
Doxygen Documentation
Introduction to javadoc
Decisions, repetition, Code Snippets, Comments, and Intellisense
Documentation Comments in C#.
JavaDoc and Contracts Fall 2008.
Advanced Programing practices
Tutorial 10 Programming with JavaScript
Introduction to javadoc
Tutorial 10: Programming with javascript
Presentation transcript:

Program documentation Using the Doxygen tool Program documentation1

C# comment styles The C# compiler recognizes a number of comment styles, including // the rest of the line is a comment /* this is a comment */ /// the rest of the line is a comment, XML style The 3-slash comment style is the most interesting. Program documentation2

What to document All public and protected parts of a program should be documented using /// comments Private parts are not that important to document since they are only for internal use Classes Write a /// comment in front of the class declaration. Mention class invariants, if any. Thread safety, etc. Methods Write a /// comment in from of the method declaration. Document parameters, returned values, and exceptions thrown Program documentation3

Documenting methods Document the contract between the method and its callers Focus on what the method does, not how The how might change in the future, while the what should remain constant over time Preconditions Post-conditions Side effects Thread safety Program documentation4

Assistance from Visual Studio Visual Studio can help you write 3-slash comments for methods. Just in front of the method declaration, write the 3 slashes and press ‘return’ Visual Studio will now generate a comment template to document parameters, return values, etc. This is a template! You have to fill out the template!! Program documentation5

Tags for documentation comments The 3-slash comments can include some special tags, like description of class or method description property description Properties should have summary + value text, code, single word text code, multiple lines Program documentation6

Doxygen Doxygen is a tool to extract comments, declarations, etc. from C# files and generate HTML pages. Doxygen can be used with other languages than C#. Doxygen can has other output formats than HTML Doxygen can be run from the from the command line Doxygen comes in a free and a paid edition Program documentation7

Doxygen XML commands Doxygen recognizes the standard tags for documentation comments and adds at least one extra commands insert the documentation from the base class method Program documentation8

Doxygen configuration scripts To run Doxygen on more than the very simple cases you must make a configuration file Syntax is MAKE like ComandLine:>doxygen confFile Doxygen comes with a wizard that can help make a configuration file Doxywizard Go through the wizard, press “save” and you have a configuration file Program documentation9

Other special comments: TODO and HACK Visual Studio recognizes a few other special comments, like // TODO some comment // HACK some comment Note: 2 slashes, not 3 slashes Theses special comments can be viewed in Visual Studio Menu View -> Task List Used for internal developer comments Reference Program documentation10

Technical writers vs. programmers Programmers are supposed to writhe the program code and the comments Programmers are usually better writing code than comments. Some companies employ technical writers who write program documentation Comments in the source code Reference documentation User manuals Tutorials etc. Program documentation11

References and further reading MSDN Recommended Tags for Documentation Comments Doxygen Program documentation12