Docsity

ProgrammingTools - Computer Programming Techniques - Lecture Slides, Slides of Computer Engineering and Programming

Partial preview of the text

Download ProgrammingTools - Computer Programming Techniques - Lecture Slides and more Slides Computer Engineering and Programming in PDF only on Docsity!

1

ProgrammingTools

2

A Quote

A dog might be man’s

best friend,

but a few good tools

are a programmer’s

best friends.

4

Source-code Tools: Editing

 Editors

  • syntax checks, search and replace, multi-level undo, etc.

 Multiple-file string changers

– AWK

 File comparators

 Source-code beautifiers

 Templates

  • automatically creating skeleton of your programs

5

Source-code Tools: Browsing

 Helps you find what you look for more easily

 Multiple-file string searchers

  • grep ”[ [0-9] *]” *.c (Look for magic numbers)

 Cross-reference tools

  • look for variable and routine names in all places at once

 Call-structure generator

  • produce information about how routines call each other
  • useful for packaging a program into modules, debugging.

7

Tools: Restructuring Source Code

 Code translators

  • Translate from one language to another

 Version Control

  • Track different versions of modules, routines

 Data Dictionaries

  • Keeping track of thousands of variable names on a larger project

8

Code Creation Tools

 Linkers

  • links one or more object files with the standard code to make executable programs

 Code Libraries

  • something you can buy (in many cases cheaper and perhaps better-quality than coding them yourself)
  • multimedia application creation, networking, graphics functions, mathematical operations, data compression, etc.

 Code generator

  • esp. on user interface and database
  • the prime examples are Borland Builder Series

10

Debugging Tools

 Compiler warning messages

 File comparators

 Interactive debuggers

  • Watch, Breakpoint, Jump, etc

11

Testing

 Results comparators

 Automated test generators

 Test-case record and playback utilities

 Coverage monitors (logic analyzer, execution

profilers)

 etc.

13

Building your own programming tools

 Project-specific tools

  • An insurance company developed software to calculate its rate increases. Hundreds of computed rate needs to be checked carefully. Checking for errors by hand take a long time. They wrote another software to check the main program’s rates.
  • Microsoft planned to use a new font technology. Software was developed to check whether errors are in the font data or software.

 Scripts

  • automate something repetitive