home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18251 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  5.3 KB

  1. Path: sparky!uunet!munnari.oz.au!metro!usage!sserve!manuel.anu.edu.au!huxley!tal691
  2. From: tal691@huxley.anu.edu.au (Tonio Loewald)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: ThinkC or ThinkPascal?
  5. Date: 11 Nov 92 01:57:20 GMT
  6. Organization: Australian National University
  7. Lines: 100
  8. Message-ID: <tal691.721447040@huxley>
  9. References: <1992Nov7.225952.18033@bert.eecs.uic.edu>
  10. NNTP-Posting-Host: 150.203.2.12
  11. Keywords: ThinkC, ThinkPascal, Mac programming environments
  12.  
  13. inglehar@bert.eecs.uic.edu (James Inglehart) writes:
  14.  
  15. >I've used Macs for years, but never programmed one. Now I need to
  16. >develop a GUI front-end for some existing software (with drawing
  17. >and graphing capabilities) that runs on the Mac (none of the end-
  18. >users will have Unix workstations). I can't spend a fortune on a
  19. >development package, and I need something I can learn to use fairly
  20. >quickly.
  21.  
  22. >What should I use? ThinkC or ThinkPascal or something else? What
  23. >else do I need to get started? (ResEdit, I assume. What's the
  24. >latest version?) What books should I use? The "ThinkC Programming
  25. >Primer?" How soon will I need "Inside Macintosh" Vols. 1-6?
  26.  
  27. I'd recommend getting the THINK Reference, which covers most of I-V
  28. and is in the process of being extended. For one thing, it includes
  29. most relevant technical notes, you won't have to sift through
  30. multiple vols to find out everything about a given topic, and it 
  31. won't become obsolete so fast. And it's probably cheaper. 
  32.  
  33. You may still want vol VI (and vol V if you need a lot of info
  34. on sound -- which you don't seem to).
  35.  
  36. ResEdit is distributed free, isn't it?
  37.  
  38. >Just what is the difference between ThinkC and ThinkPascal (besides
  39. >the languages, I mean)? I can handle either language, so I want the 
  40. >most powerful package. (I understand the Toolbox is written in Pascal.
  41. >Should I choose ThinkPascal for consistency?)
  42.  
  43. I think it really depends on whether you prefer C to Pascal. You can
  44. do more (easily) with C, and THINK C has an easy-to-use in-line
  45. assembler (you have to enter hex in THINK Pascal). THINK Reference
  46. is somewhat geared towards C (and makes up for the Mac's bias
  47. towards pascal by providing paste-in templates of function calls).
  48. THINK C operates better with less memory, and its debugger is
  49. slightly better implemented. THINK Pascal is more integrated,
  50. friendlier, automatically pretties up your code, and has a number
  51. of convenience features (such as jumping to procedures and functions).
  52. THINK Pascal's editor is definitely better than THINK C's but there'sd
  53. a third-party enhancement to THINK C (whose name escapes me) that
  54. seems to address all of its shortcomings in this and several other
  55. regards.
  56.  
  57. As I said, it really depends on your language preference. They're
  58. both excellent packages.
  59.  
  60. >Are there other development environments I should consider instead?
  61.  
  62. I recently got a copy of Metrowerks Modula-2 (stand alone). This is
  63. very cheap, has an excellent manual, and works smoothly and well. It
  64. has most of the integration features of THINK C (which it somewhat
  65. resembles -- it's not quite as well-integrated as THINK Pascal, and
  66. its debugger has been implemented similarly to THINK C's). It's
  67. fast, has a few nice convenience features (automatic entry of
  68. standard language structures, such as CASE statements and so on),
  69. and has modest memory requirements. Not much in the way of sample
  70. code (there is a good tutorial with it).
  71.  
  72. >Any advice from those who know on how I can go from total ignorance
  73. >to Mac programming proficiency will be greatly appreciated.
  74.  
  75. Apart from the fact that Modula-2 is something of a pariah language,
  76. the MetroWerks option includes a very nice compiler (as far as I can
  77. tell) and an excellent tutorial introduction to Mac programming
  78. (starting from the assumption you don't know how to program in
  79. Modula-2 and working through to writing a Mac application shell),
  80. and it's CHEAP. ($150 in Australia, which probably means $75 in the US.)
  81.  
  82. If you (a) don't like Modula-2 or (b) want to go for a more standard
  83. environment, I'd lean towards THINK Pascal for ease of use and
  84. ease of Mac programming. On the other hand, the world seems to be
  85. going towards C++ (THINK C has a C++-like object extension), so
  86. if you want your skills to be saleable, you might lean in that
  87. direction.
  88.  
  89. >James Inglehart
  90. >Department of Electrical Engineering & Computer Science
  91. >University of Illinois at Chicago
  92.  
  93. Learning to program the Mac from scratch is a bitch, and when I
  94. started out, I didn't much like any of the $50 books on the
  95. subject. Getting THINK Pascal and THINK C and seeing how far
  96. you get hacking the example code is probably a good way to
  97. start (seems to be how most people get going).
  98.  
  99. I think the time spent getting into object-oriented programming
  100. and learning to use an object library (such as THINK Class Library
  101. which comes free with both THINK Pascal and THINK C, or MacApp)
  102. will probably save you more than you spend -- even in the short
  103. run -- and be of great benefit in the future. (The future may
  104. or may not be object-oriented, but it will probably be weird,
  105. and wrapping your mindset around OOP will keep your neurons
  106. limber.)
  107. -- 
  108. Tonio Loewald            | Ph  06 290 1594 | 13 Sabine Cl. Garran
  109. tal691@huxley.anu.edu.au | Fax 06 290 1595 | ACT 2605   AUSTRALIA
  110. "You can lie/You can cry/For all the good it'll do you, you can
  111. die/But when it's done/And the police come/And they lay you down
  112.