Sponsored Content
Full Discussion: Do you draw flowcharts
The Lounge What is on Your Mind? Do you draw flowcharts Post 302492216 by methyl on Sunday 30th of January 2011 01:02:31 PM
Old 01-30-2011
Though I was taught from "day one" to use detailed Program Flowcharts and Decision Tables, in hindsight this was really just a teaching aid.

Btw. The only time I ever used Decision Tables in earnest was when programming in RPG.

I have use Program Flowcharts in earnest.

Once you can visualise a whole program module-by-module in your head you are a programmer and are unlikely to need detailed Program Flowcharts to produce working code. However a simple "main route" Flowchart should be documented as part of the program specification and maintained with the filed program documentation. This should include an introductary overview of the function of the program and the function of each main module without going into fine detail. This documentation should be verified by the System Analyst and a Senior Programmer before the program is allowed to "go live".
I you ever work on a site long-term this sort of documentation could save your life. Everybody expects you to remember every line of code you wrote in every program. For a while this is easy but once you reach the 100,000 lines mark you won't even remember the name of the System.


I have made much use of overview Flow Diagrams at a System and Network design level to show visually how the individual components fit together. I cannot stress how important Flow Diagrams are in a large scale commercial environment where is is quite possible to get a cold call to a fault where there is nobody to ask.

Footnote: Yes, I have spent two months retro-documenting a dubiously designed and sparsely documented System ready for the next (inevitable) obscure failure. Try to avoid this sort of situation folks!
 

10 More Discussions You Might Find Interesting

1. Solaris

draw graphics to stdout in solaris

Hi all.. I am trying to draw a line on the monitor on sun platform machine. I tried a simple program. #include<stdio.h> #include<plot.h> int main() { openpl(); linemod("dotted"); line(1000,1000,2000,2000); closepl(); return 0; } It doesn't produce the desired result. If one... (0 Replies)
Discussion started by: shivamasam
0 Replies

2. Shell Programming and Scripting

Draw a Horizontal and Vertical line on UNIX

I want to draw a horizontal and vertical line on Unix. Please suggest some solution. (11 Replies)
Discussion started by: allways4u21
11 Replies

3. Shell Programming and Scripting

Is it possible to draw table/matrix using shell script?

Hi all, I need to create a matrix of variable rows and columns. Right now i have 3 rows and two columns and following values. Output something like TypeA TypeB TestCase1 Pass Fail TestCase2 Pass ... (2 Replies)
Discussion started by: jakSun8
2 Replies

4. UNIX and Linux Applications

Corel Draw like software for Ubuntu

Hi guys, I need a software for Ubuntu *which has the capabilities of Corel Draw *which can open/import and use a .cdr template, i.e., template created by Corel Draw. *which has the same color codes, i.e., names for colors I have looked through Google, some suggested ones are Inkscape,... (7 Replies)
Discussion started by: apprentice
7 Replies

5. Ubuntu

How to draw cylinder using openGL

Hi Sir, i am new to openGL, i want to know how to draw cylinder using openGL code in C or C++.. And i have to insert bitmap images on cylinder.. How to do this .. please guide me ... Thanking You in advance .. (0 Replies)
Discussion started by: Ravikishore
0 Replies

6. Programming

Draw a 3D cylinder using openGL.

Hi, please give me, how to code to draw 3D cylinder in openGL, that should be rotated in x-direction. waiting for your reply .. (2 Replies)
Discussion started by: Ravikishore
2 Replies

7. Programming

Draw multicolor line

Hello. I need to draw many lines with multicolor (color is set by some pixmap (xpm)) on C++ with standart libs. Horizontal lines are drawing succsessfully with GC and XSetTile. But non-horizontal - no good. I rotate pixmap for all lines and then XSetTile for each line with own pixmap, but it's... (1 Reply)
Discussion started by: Yuriy
1 Replies

8. Programming

Draw Bar Graph for GNUPLOT

For example, I have a file called data.txt. And the content is: Iker_Casillas 181 Raphael_Varane 182 Sergio_Ramos 182May I know how to write a script for gnuplot, so I can have a bar graph as the column 1 will be the x and column 2 will be the y? And I hope that the x value can be seen clearly.... (0 Replies)
Discussion started by: Tzeronone
0 Replies

9. Shell Programming and Scripting

How can draw line on Ubuntu, shell programming?

https://www.unix.com/attachment.php?attachmentid=6304&d=1432179166 how can draw line like this? on ubuntu, shell programming. i tried "-" , " l " but it's failed.. (2 Replies)
Discussion started by: gotit
2 Replies

10. What is on Your Mind?

Football / Soccer World Cup 2018 draw.

What is on Your Mind? 2018 FIFA World Cup - Wikipedia I'm hoping that England are drawn into positions B2, D3, G3 or G4 so that all their games will be outside usual UK office hours and people will not desert the office with mystery illnesses to watch the games. Expecting failure, so I... (1 Reply)
Discussion started by: rbatte1
1 Replies
Diagrams(3tk)							    Tk Diagrams 						     Diagrams(3tk)

__________________________________________________________________________________________________________________________________________________

NAME
Diagrams - User documentation of the Diagrams package SYNOPSIS
package require Tcl 8.4 package require Tk 8.4 package require Diagrams 0.2 ::Diagrams::drawin canvas ::Diagrams::saveps filename ::Diagrams::direction newdir ::Diagrams::currentpos pos ::Diagrams::getpos anchor obj ::Diagrams::position xcoord ycoord ::Diagrams::box text width height ::Diagrams::plaintext text width height ::Diagrams::circle text radius ::Diagrams::slanted text width height angle ::Diagrams::diamond text width height ::Diagrams::drum text width height ::Diagrams::arrow text length heads ::Diagrams::line args ::Diagrams::attach anchor ::Diagrams::color name ::Diagrams::fillcolor name ::Diagrams::textcolor name ::Diagrams::usegap use ::Diagrams::xgap value ::Diagrams::ygap value ::Diagrams::textfont name ::Diagrams::linewidth pixels ::Diagrams::linestyle style ::Diagrams::pushstate ::Diagrams::popstate ::Diagrams::computepos ::Diagrams::boxcoords x1 y1 x2 y2 ::Diagrams::moveobject obj _________________________________________________________________ DESCRIPTION
The Diagrams package is meant to help drawing diagrams, like flowcharts. The philosophy is that you should be concentrating on the contents of the diagram, rather than the exact positioning and sizing of all items within it. The Diagrams package uses a few simple rules to layout the items: o Each item (or object) in the diagram has a number of "anchors" - places where arrows and lines can be connected to. o You can draw an arrow or a line from an object in a preset direction o Sizing and positioning should be done as automatic as possible: this is achieved for instance by drawing boxes and circles with text, rather than first drawing a rectangle and then drawing the text inside it or vice versa. The commands within this package can be split up in several categories. Each category is described in a separate section. GENERAL COMMANDS FOR POSITIONING AND SETUP
::Diagrams::drawin canvas Set the canvas widget in which to draw widget canvas Widget to draw in ::Diagrams::saveps filename Save the drawing in a PostScript file filename string Name of the file to save the drawing in ::Diagrams::direction newdir Set the direction for moving the current position. The direction is one of: north northeast east southeast south southwest west northwest N NE E SE S SW W NW up up-right left down-right down down-left left up-left centre center C newdir string New direction ::Diagrams::currentpos pos Set the current position explicitly (argument must be a position "object") pos list New position (retrieve via getpos for instance) ::Diagrams::getpos anchor obj Get the position of a particular "anchor" point of an object anchor should be one of the direction strings anchor string Name of the anchor (one of the directions - see the direction command obj list The object in question ::Diagrams::position xcoord ycoord Create a position "object" xcoord float X-coordinate of the position ycoord float Y-coordinate of the position DRAWING OBJECTS
::Diagrams::box text width height Draw a box from the current position (width and height are both optional; if not given, the text determines the width and height) string text Text to be shown inside the box float width Width (if any) of the box in pixels float height Height (if any) of the box in pixels ::Diagrams::plaintext text width height Draw plain text from the current position (width and height are both optional; if not given, the text determines the width and height) string text Text to be shown float width Width (if any) of the (invisible) box in which to position the text float height Height (if any) of the box ::Diagrams::circle text radius Draw a circle from the current position (the radius is optional) string text Text to be shown inside the circle float radius Radius (if any) of the circle in pixels ::Diagrams::slanted text width height angle Draw a slanted box from the current position (width, height and angle are optional) string text Text to be shown inside the box float width Width (if any) of the box in pixels float height Height (if any) of the box in pixels float angle Angle of the slanted box ::Diagrams::diamond text width height Draw a diamond-shaped box from the current position (width and height are both optional; if not given, the text determines the width and height) string text Text to be shown inside the diamond float width Width (if any) of the diamond in pixels float height Height (if any) of the diamond in pixels ::Diagrams::drum text width height Draw a drumshaped item from th ecurrent position (width and height are both optional; if not given, the text determines the width and height) string text Text to be shown inside the drum float width Width (if any) of the drum in pixels float height Height (if any) of the drum in pixels ::Diagrams::arrow text length heads Draw an arrow from the current position to the next. The text is drawn next to the arrow, the length (in pixels) is optional. If not given the gap parameters are used. string text Text to be shown along the arrow float length Length of the arrow in pixels float heads Which arrow heads to draw (first, last or both - defaults to last) ::Diagrams::line args Draw a line specified via positions or via line segments The arguments are either position or length-angle pairs list args List of positions or of length-angle pairs ATTRIBUTES
(Note: attributes are persistent) ::Diagrams::attach anchor Set the anchor point for attaching arrows to string anchor Any one of the valid anchor (e.g. N or North) ::Diagrams::color name Set the color for the outline of a box etc. color name Name of the colour to be used ::Diagrams::fillcolor name Set the color to fill the objects color name Name of the colour to be used ::Diagrams::textcolor name Set the color to draw the text in color name Name of the colour to be used ::Diagrams::usegap use Turn the gap on(1) or off(0). Note: usually a small gap is used when positioning objects. boolean use Use the gap to compute the position of the next object or not ::Diagrams::xgap value Size of the gap in horizontal direction (in pixels) integer value Gap width in pixels ::Diagrams::ygap value Size of the gap in vertical direction (in pixels) integer value Gap height in pixels ::Diagrams::textfont name Set the name of the font to use string name Name of a text font ::Diagrams::linewidth pixels Set the width of the lines (in line objects and arrows and the outline of boxes and other objects) integer pixels Number of pixels the lines are wide ::Diagrams::linestyle style Set the style of the lines and arrows and of the outline of boxes and other objects. The predefined line styles are: solid, dot, dash, dash-dot, dash-dot-dot (these are the distinguishable line styles on Windows). You can also use the style patterns from the canvas directly. string style Name of a valid line style COMMANDS FOR IMPLEMENTING NEW OBJECTS
Note: it is best to study how for instance box objects are implemented first. ::Diagrams::pushstate Save the current global settings Used when defining an object that is composed of other objects ::Diagrams::popstate Restore the previously saved global settings ::Diagrams::computepos Compute the current position ::Diagrams::boxcoords x1 y1 x2 y2 Compute the anchor coordinates for a box-like object (this is merely a convenience routine. In general, you will have to compute the list of coordinates yourself - see for instance the diamond object) float x1 X coordinate of upper-left corner float y1 Y coordinate of upper-left corner float x2 X coordinate of lower-right corner float y2 Y coordinate of lower-right corner ::Diagrams::moveobject obj Move the object to the right position and return the new information list obj List of data representing the object KEYWORDS
diagrams, drawing diagrams 0.2 Diagrams(3tk)
All times are GMT -4. The time now is 06:51 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy