TweetFollow Us on Twitter

Prograph 1.2
Volume Number:6
Issue Number:3
Column Tag:Kelly's Corner

Prograph 1.2

By Dave Kelly, MacTutor Editorial Board

Prograph™ 1.2, An OOP Primer

Prograph is a new pictorial programming language and software development environment. offered by TGS Systems of Halifax, Nova Scotia. Prograph started out as a research project by Drs. T. Pietrzykowski and P. Cox, professors of Computer Science at the Technical University of Nova Scotia. They then implemented Prograph on the Macintosh at TGS Systems, turning it into a next generation development environment and Computer-Aided Software Engineering (CASE) tool.

At the heart of Prograph is a completely pictorial, object-oriented, dataflow style language with a built in source code debugger. The combination of a pictorial, OOP language and integrated development environment makes Prograph a great way to learn about Object Oriented Programming. The pictorial environment of Prograph is a platform which is perfectly suited for the Macintosh. The complete Prograph language development system is made up of three major parts the language, the Application Builder, and the Environment.

Language

Class hierarchy is pictorially represented in the Classes window. A class is an abstract description of a collection of similar objects. Objects have two components, their attributes and their methods. For example, if we were to define a class for humans, we might call the class Person since a group of people is made up of persons. Each person has similar attributes such as arms, legs, hands, feet, etc. The individual people are referred to as instances of class Person. The features that the people have are called their attributes and the things they to are called methods.

Clicking on the left side of the class icon opens up an Attributes window which contains the sequence of attributes of a class. Clicking on the right side of the class icon (in the class window) opens up the Methods window.

There are two ways to retain values. Either they may be stored in class attributes or in persistents. Persistents are universally accessible and are saved with the program between executions.

Clicking on a method icon opens up the cases window which displays the cases which define the method. Another type of methods window called the Universal Methods contains methods which are not specific to any class. A method consists of a sequence of cases. The execution of a method proceeds by dataflow; that is, the operations in the cases window are executed as soon as all their input data is available. The operations which may be used may be 1) Primitives, which represent calls to predefined system methods, 2) calls to Universal Methods, 3) calls to methods in classes, 4) calls to Macintosh Toolbox routines, 5) constants, 6) Matching, which compares inputs and channels the dataflow depending if the match succeeds or fails, 7) Get Persistent, which accesses the value of a persistent, 8) Set Persistent, modifies the value of a persistent, 9) Multiplexes, which are used to repeat an operation, 10) Instance generators, 11) Get Attribute, which is used to access the value of an instance or class attribute, and 12) Set Attribute, which modifies the value of an instance or class attribute. Cases of a method are executed in order and according to the dataflow structure. Operations may be synchronized and controls may be used in various ways to control the flow of execution from one case to the next.

There are several datatypes supported by Prograph in addition to user defined classes:

• Numbers (integers or strings as appropriate)

• Lists, represented in Lisp notation.

• Strings

• Booleans

• Special types, NULL and NONE

• Mac types, used in toolbox calls

• System classes

Application Builder

Prograph’s Application Builder has two major components:

• A set of about 20 System Classes which provide the framework for building a complete Macintosh application.

• A set of interactive, WYSIWYG editors for creating graphic components such as menus, windows and window items. The editors support the basic Macintosh environment with no frills. Hierarchical menus are not supported with the editor, however, toolbox calls are available to achieve nearly every Mac toolbox effect. I counted about 573 calls in the Macintosh Toolbox list in the reference manual. Primitives may also be defined in Lightspeed C using a utility that is provided with Prograph. MacTutor will try to cover this in a future issue.

Environment

Prograph has a unique environment which enables you to run an application or method and observe each step as the program executes. Persistents and classes may be examined at each step by clicking on input or output terminals and roots (the circles which connect all of the case sequences together). If a method has not been defined, Prograph asks if you would like to define it. If not you may even artificially create inputs to “help” the program proceed. This allows you to get specific functions of a method working properly before moving on.

Icons in the editor are created by merely clicking in the window (class, method, attribute). This can be annoying if you click anywhere in the window where there is no icon (creating icons by mistake). Clicking on an icon selects it and double clicking opens a window to its structure,if it is a user-created object or onto a help window if it is a system provided object. Icons may be cut, copy and pasted or selected and dragged.

Prograph is indeed a great way to program the Macintosh. If you aren’t familiar with object-oriented programming, the tutorial that comes with Prograph is great. It is a bit hard to follow at times, but does a great job of actually teaching you what to do. It takes time though. The tutorial introduces several programming “challenges” which you should work to get the full benefit and to understand the programming concepts better.

Documentation comes as two manuals (approx 7" X 11"). The odd size makes it difficult to set on my desk without it flopping closed all the time (in my opinion). The reference manual thoroughly covers the primitives, Macintosh Toolbox support, Prograph’s menus/windows etc., but the index isn’t as extensive as it could be. The tutorial manual takes some time to get through, and starts off having you do things that you don’t know about until later (or until you figure it out) but I feel the material would be a great text/workbook for a course on OOP. Maybe that’s what Prograph’s authors are doing with it?

There is one major element missing from Prograph 1.2 a compiler. Sure, you can exercise your object-oriented abilities to your hearts content, but serious developers won’t be able to create real applications until a Prograph compiler is made available during the second quarter of 1990. Don’t let that stop you if you want to learn OOP. There is a good chance that the compiler will be out before this article appears here. There’s more to come I’m sure you’ll be seeing more of this product in the future, especially when the compiler becomes available.

TGS Systems

1127 Barrington Street, Suite 19

Halifax, Nova Scotia

Canada B3H 2P8

AppleLink: CDA0242

(902) 429-5642 FAX: 425-0561

Order toll free from the US:

1-800-565-1978

Price: $195 US + $5 shipping (for interpreter)

Prograph Compiler available 2nd quarter 1990

 
AAPL
$442.14
Apple Inc.
+0.79
MSFT
$34.15
Microsoft Corpora
-0.46
GOOG
$882.79
Google Inc.
-6.63

MacTech Search:
Community Search:

Software Updates via MacUpdate

Evernote 5.1.1 - Create searchable notes...
Evernote allows you to easily capture information in any environment using whatever device or platform you find most convenient, and makes this information accessible and searchable at anytime, from... Read more
SketchUp 13.0.3688 - Create 3D design co...
SketchUp is an easy-to-learn 3D modeling program that enables you to explore the world in 3D. With just a few simple tools, you can create 3D models of houses, sheds, decks, home additions,... Read more
GarageSale 6.6b10 - Create outstanding e...
GarageSale is a slick, full-featured client application for the eBay online auction system. Create and manage your auctions with ease With GarageSale, you can create, edit, track, and manage... Read more
Twitter 2.2.1 - Official Twitter client...
Twitter (was Tweetie) is a Twitter client with a variety of features. Important Note: As of January 2011, AteBit's Tweetie application has been acquired and renamed by Twitter. Version 1.2.8 of the... Read more
SteerMouse 4.1.6 - Powerful third-party...
SteerMouse is an advanced driver for USB and Bluetooth mice. It also supports Apple Mighty Mouse very well. SteerMouse can assign various functions to buttons that Apple's software does not allow,... Read more
Google Chrome 27.0.1453.93 - Modern and...
Google Chrome is a Web browser by Google, created to be a modern platform for Web pages and applications. It utilizes very fast loading of Web pages and has a V8 engine, which is a custom built... Read more
Labels & Addresses 1.6.5 - Powerful...
Labels & Addresses is a home and office tool for printing all sorts of labels, envelopes, inventory labels, and price tags. Merge-printing capability makes the program a great tool for holiday... Read more
Delicious Library 3.0.2 - Import, browse...
Delicious Library allows you to import, browse, and share all your books, movies, music, and video games with Delicious Library. Run your very own library from your home or office using our... Read more
KeyCue 6.5 - Displays all menu shortcut...
KeyCue helps you to use your OS X applications more effectively. Just hold down the Command key for a while - KeyCue comes to help and shows a table of all currently available keyboard shortcuts.... Read more
HoudahSpot 3.7.8 - Advanced front-end fo...
HoudahSpot is a flexible file-search tool based on Apple's powerful Spotlight engine. Keep frequently used files within reach Retrieve the files you didn't know you still had Don't waste time... Read more

Evernote Update Keeps You Notified, Adds...
Evernote Update Keeps You Notified, Adds New Reminders Feature Posted by Andrew Stevens on May 23rd, 2013 [ permalink ] | Read more »
Clear Shakes Up A New Update: Email Your...
Clear Shakes Up A New Update: Email Your Lists Posted by Andrew Stevens on May 23rd, 2013 [ permalink ] iPhone App - Designed for the iPhone, compatible with the iPad | Read more »
Regular Show: Best Park in the Universe...
Regular Show: Best Park in the Universe Review By Carter Dotson on May 23rd, 2013 Our Rating: :: SLACKERSUniversal App - Designed for iPhone and iPad This park has some good ideas, but a lot of work needs to go into it to make it... | Read more »
Angry Birds Space Launches You Into Spac...
Angry Birds Space Launches You Into Space For Free Posted by Andrew Stevens on May 23rd, 2013 [ permalink ] iPhone App - Designed for the iPhone, compatible with the iPad | Read more »
Mailbox Shows Some Tablet Love, Gets Opt...
Mailbox Shows Some Tablet Love, Gets Optimized For iPad Posted by Andrew Stevens on May 23rd, 2013 [ permalink ] iPhone App - Designed for the iPhone, compatible with the iPad | Read more »
Ayopa Games Offers Their Titles For Free...
Ayopa Games Offers Their Titles For Free This Memorial Day Weekend Posted by Andrew Stevens on May 23rd, 2013 [ permalink ] Ayopa Games is celebrating this Mem | Read more »
Greedy Grub Review
Greedy Grub Review By Rob Rich on May 23rd, 2013 Our Rating: :: A CUTE CRAWLUniversal App - Designed for iPhone and iPad Greedy Grub is certainly adorable, but it’s not particularly ground-breaking.   | Read more »
Finger Tied Jr Review
Finger Tied Jr Review By Jennifer Allen on May 23rd, 2013 Our Rating: :: FINGER TWISTING FUNiPhone App - Designed for the iPhone, compatible with the iPad Finger Tied brought Twister-style gaming to the iPad, and Jr does much the... | Read more »
Zynga’s Battlestone – Mobile Hack ‘n’ Sl...
Zynga’s Battlestone – Mobile Hack ‘n’ Slash Arcade Action Posted by Rob LeFebvre on May 23rd, 2013 [ permalink ] Universal App - Designed for iPhone and iPad | Read more »
Developer Spotlight: Infinite Dreams
With its latest title, Can Knockdown 3, recently earning a coveted Editor’s Choice award here, I took the time to learn a bit more about Polish game developer, Infinite Dreams. Who is Infinite Dreams? Based in the Southern Polish city of Gliwice,... | Read more »

Price Scanner via MacPrices.net

Economic Conservatives Defend Apple’s Tax Strategy
Given Apple’s longtime reputation as the particular darling of the liberal lefty end of the spectrum, it’s been facinating to see mostly prominant conservatives rallying to the defense of Apple’s... Read more
Is Apple Losing Its “Cool” Cachet With The Popular...
SMH’s Steve Colquhoun notes that while Apple has again been rated as the world’s top brand this week, a leading social researcher warns the company and its products are losing touch with Generation Y... Read more
New Rugged Smartphone From…. Caterpillar?!
Bullitt Mobile Ltd., global licensee of Cat phones for Caterpillar Inc., has introduced the new Cat B15 smartphone in North America. The Cat B15 is designed to be the most progressive, durable and... Read more
Mac mini on sale for $25 off, free shipping, NY ta...
B&H Photo has the 2.5GHz Mac mini available for $574.98 including free shipping and NY sales tax only. Their price is $25 off MSRP. B&H will include free copies of Parallels Desktop and Bento... Read more
Updated iPad Price Trackers
We’ve updated our iPad Price Tracker and our iPad mini Price Tracker with the latest information on prices and availability from Apple and other resellers. Read more
Take $20 off with Apple refurbished iPod nanos
The Apple Store has Apple Certified Refurbished 16GB iPod nanos available for $129 including free shipping and Apple’s standard one-year warranty. That’s $20, or 13%, off the cost of new nanos. All... Read more
Apple TV (refurbished) available for $85, 14% off
The Apple Store has Apple Certified Refurbished 2012 Apple TVs available for $85 including free shipping. That’s $14 off the cost of new models. Apple’s one-year warranty is standard. Read more
27″ iMacs on sale for $100 off MSRP
Amazon has 27-inch iMacs on sale for $100 off MSRP: - 27″ 3.2GHz iMac: $1899.99 - 27″ 2.9GHz iMac: $1699.98 Shipping is free Read more
Platform Wars: Tablets Triumphant, But Don’t Write...
The Register’s Paul Kunert says it’s finally official – the epic battle of legendary Apple CEO Steve Jobs is finally won, now that he has toppled the PC platform from beyond the grave, in the UK, at... Read more
Apple Tops 100 Most Valuable Global Brands 2013 Su...
MarketingWeek’s Lou Cooper reports that this years BrandZ ranking of the top 100 valuable global brands sees Apple maintain its reign as number one, ahead of Google and IBM in second and third and... Read more

Jobs Board

*Apple* Retail - Manager - Apple Inc. (...
Job Summary Keeping an Apple Store thriving requires a diverse set of leadership skills, and as a Manager, you’re a master of them all. In the store’s fast-paced, Read more
*Apple* Account Executive - CompuCom (U...
Apple Account Executive Job Location US-IL-Des Plaines Posted Date 3/27/2013 Req # 2013-4905 Apply/Socialize: * Apply Now! * Email this opportunity to a friend or Read more
*Apple* - Solution Architect - CompuCom...
Apple - Solution Architect Job Location US-TX-Dallas Posted Date 4/18/2013 Req # 2013-4932 Apply/Socialize: * Apply Now! * Email this opportunity to a friend or Read more
Mac/ *Apple* Specialist Needed - Enterp...
Mac/ Apple Specialist Needed - Enterprise iPad Deployment A prominent Robert Half client is seeking out a Mac/ Apple Specialist to assist with an iPad deployment Read more
Mac/ *Apple* Specialist Needed | Enterp...
Mac/ Apple Specialist Needed | Enterprise iPad Deployment A prominent Robert Half client is seeking out a Mac/ Apple Specialist to assist with an iPad deployment Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.