PDA

View Full Version : Kernighan & Plauger: Software Tools. Ratfor vs Pascal for a Student of C?



haziz
March 11th, 2012, 03:16 AM
Kernighan and Plauger's Software Tools book is available in two versions, the original one using code in Ratfor (Rational Fortran: Fortran 66 with C influences, if I am understanding correctly) and in a 1981 revision using Pascal as the language.

Which version would you recommend for a student working mostly in C and why?

2F4U
March 11th, 2012, 09:31 AM
Much depends on in which directions your studies will go. Both books seem to be rather old, so there is a risk that the content is no longer relevant (the current version of Fortran is Fortran 2008). Fortran is a programming language intended for use in numerical calculations and therefore mostly used in engineering and science.
Pascal is a programming language for students that intend to learn how to program. Today, Pascal is used in some security related areas such as military, banking, energy, etc., due to its strong type checking.

haziz
March 13th, 2012, 12:45 AM
Much depends on in which directions your studies will go. Both books seem to be rather old, so there is a risk that the content is no longer relevant (the current version of Fortran is Fortran 2008). Fortran is a programming language intended for use in numerical calculations and therefore mostly used in engineering and science.
Pascal is a programming language for students that intend to learn how to program. Today, Pascal is used in some security related areas such as military, banking, energy, etc., due to its strong type checking.

I don't think the language is truly relevant since that is not the point of the book. The book addresses program design and is considered a bit of a classic (still in print 35 years later). I am not trying to learn either language and may even transcribe the example programs into C. I guess I may lean more towards the Pascal version, but was hoping for feedback from somebody who has used both books.