P
P
postmodernsuperkiller20042016-04-13 16:24:23
Books
postmodernsuperkiller2004, 2016-04-13 16:24:23

Do you need to learn Pascal to work on Shen and Wirth?

Hey!
In the process of my IT self-education, I came across the fact that I needed (read: I want to) work through two books:
Shen's Programming and
Wirth's Algorithms and Data Structures.
The latter is on Oberon, Modulus and Pascal, and since Shen uses Pascal, it makes sense, in my opinion, to read Wirth in adaptation to it in order to save himself time.
I know how to Python at the level of simple and crooked classes, I'm slowly picking Scheme from The Little Schemer series and I can make people laugh on the pluses. There is no desire to learn Pascal, but there is a desire to work out algorithms and data structures in a statically typed language (Sedgwick is complicated, I don’t want to pick the pluses further, and pumping algorithmic skills through them, in my opinion, is overkill). I have the utmost respect for Shen and trust his recommenders, but I want to work with Wirth because his wording is delivered to the right place.
Did everyone who recommends these books specifically learn Pascal to work with them? I understand that a real programmer will master the syntax of a new language in a week, a day, an hour, a minute, and for him the language is only a tool, and in general, posing a question in such a form humiliates discipline and art itself, but...
TL;DR
How to get the most out of Shen and Wirth, avoiding the study of Pascal?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
R
Roman Mirilaczvili, 2016-04-13
@2ord

The beauty of Pascal is that it is simple. Knowing English at the school level, you will be able to understand Pascal syntax fluently.
And Oberon's syntax is even simpler than Pascal and Modula.
The numbering of arrays in Oberon is the same as in C, starting from zero.

VAR
  arr: ARRAY 10 OF REAL;
  (* структуры/записи *)
  date: RECORD
    day, month, year: INTEGER
  END;
  set: SET;
BEGIN
  arr[0] := 1.2E-5;
  date.day := 12; date.month := 4; date.year := 2020;
  set := {1,2, 5..15}
END

A
Alexander Skusnov, 2016-04-13
@AlexSku

How to get the most out of Shen and Wirth without learning Pascal?

I still do not understand what Pascal does not like? It has a good compiler, i.e. you get a program that runs quite fast (try to make a few nested loops in Matlab and then you will get a noticeable difference in speed), but programming is much easier than in C ++ (and Delphi is better to learn).
Often algorithms are written in pseudocode (pseudo-language), and this language is just like Pascal.

J
jakara, 2016-04-21
@jakara

And take the book Algorithms "choose a language"? A bunch of worthy books that describe the logic of the algorithm and its implementation in the chosen language.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question