Most Helpful Customer Reviews
40 of 44 people found the following review helpful:
2.0 out of 5 stars
Semi-useful survey of programming languages, May 4, 2004
By A Customer
This book will not make you understand the basic ideas behind programming languages, and you won't be able to shy away from math as Sebesta's book does. For that, you will need other books. This book, however is useful inasmuch as it provides a survey of some programming languages. However, it is heavily biased towards imperative programming languages. Even here the balance is wrong, with a lot of Ada and Pascal. IIRC, he forgets to mention Forth, which is old, but a totally different way to program than the other languages. On the other hand, anything he has to say about any other type of paradigm will be, probably, wrong. For instance, his description of Lisp remains in the 1950s ("interpreted, everything is a list"). He entirely ignores the Common Lisp Object System, which is by far much more advanced that your staple "OOP" language. The Smalltalk environment he shows is Smalltalk-80. Meaning: the environment used *then*. His description of Functional languages is a joke. So one gets the feeling he doesn't know what he is talking about. And he doesn't. He missed a lot of development that went on in programming language research and their implementation. He can't get right new developments in programming except things that are mainstream. In the new edition, he approaches Java, as if garbage collection, object orientation and bytecodes were something new (Smalltalk, Common Lisp almost 20 decades ago). If he's missed all that, let's not even begin to talk about the very new breed, like fast-compiling functional languages (Clean, OCaml), languages that allow reflection and metaprogramming (e.g., Maude), languages built for distributed programming (Oz, Erlang), etc. If you buy this book, it should be only for the value of having a rather general, limited, historical overview of some programming languages. If you really want to learn about the ideas behind a programming language, you should read Structure and Interpretation of Computer Programs (the classic, now updated), and Concepts, Techniques, and Models of Computer Programming (the "new" classic).
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
15 of 16 people found the following review helpful:
1.0 out of 5 stars
Not useful, March 3, 2008
This book is very large and covers lots of features of programming languages, giving real examples. However, after using it for a long time (I used a few different editions) I still feel that it's not really useful.
Sebesta does not get into the theoretical part of programming language design, so the book does not help you with designing new languages. His comments on language features are also not very interesting.
He does not teach you how to write an interpreter or compiler, so the book is not a language implementation one.
And finally, the book can't be used to properly compare languages: not from a theoretical point of view, because he only briefly mentions syntax and dynamic semantics, without actually getting into real stuff (lambda calculus, types, denotational/operational semantics etc); and also not from a practical point of view because to compare languages in practice *you need to write programs in them*, and not just read a catalog of features and code snippets. Really, I don't think anyone would understand Scheme continuations, Common Lisp macros, Smalltalk programming environments, or Haskell Monads *and Monad transformers* without using them for real (or at least read real-world examples of how language features are used). I mean really understanding, and knowing *why* they were designed the way they were.
So, the book is useless. Seems like an attempt to compare languages, but done the wrong way.
By the way, the examples are not well chosen.
Instead of buying this book, I would:
- Buy one or more books on language implementation, if I wanted to implement a language, and actually write at least one compiler and one interpreter. Queinnec's Lisp in Small Pieces, Appel's Compiling with Continuations and Compiler books like those by Copper/Torczon, Appel or Louden.
For garbage collection there is a nice book by Lins and Jones (although a bit dated). Simon Peyton Jones also has a fine book on functional language implementation that could also be very useful.
- If I wanted to compare languages, I'd learn three or four different paradigms. *In practice*. Very different languages. For example, Prolog, Ruby, Haskell and Erlang. Maybe Scheme or Common Lisp also. And you only "understand" a language if you develop real, non-trivial projects in it, so I would actually create tools in those languages. Of course, a good programmer needs to know a minimum of how the interpreted or compiled code will work, so it's good to know about garbage collection, stack, heap, how threads are implemented in my interpreter, etc. (And Robert Sebesta's book will only give me *some* help here).
- If I wanted to create a language (or to compare languages from a theoretical point of view), I would do both things mentioned before, since I wouldn't feel comfortable creating a language without ever having used different paradigms, and then I would need to implement my language. I would have to read articles and books on language design, type theory, computability/lambda-calculus/term rewriting, formal semantics etc. The book by Turbak/Gifford on language design, Peirce's book on Types, seem like a *very* good start, for example. They are all more focused and in my opinion more useful than the grab-bag-of-language-features that I see in Sebesta's book.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
16 of 18 people found the following review helpful:
2.0 out of 5 stars
Focuses Almost Exclusively on Imperative Languages, April 25, 2008
I'm highly disappointed in this book. The biggest problem with it (and it's mighty big for a book that's supposed to talk about the concepts of various programming languages) is that it focuses almost entirely on a subset of imperative languages. Almost exclusively, the descriptions and examples involve Fortran, C, C++, Java, C# and Ada. Only in the last two chapters does the author really talk about other types of programming languages and those two chapters are devoted to them. It's like they were just tacked on.
After that, the other problems with the book are relatively insignificant. First, the book is badly edited. In spots, it reads like it was mechanically translated from a foreign language. Second, an awful lot of his explanations are unnecessarily filled with pretentious-sounding multi-syllabic words. For instance, on page 183 he gives the following description of a top-down parser:
"Given a sentential form that is part of a leftmost derivation, the parser's task is to find the next sentential form in that leftmost derivation. The general form of a left sentential form is xAa (my note: that "a" is actually the letter alpha in the book), whereby our notational conventions x is a string of terminal symbols, A is a nonterminal, and a is a mixed string. Because x contains only terminals, A is the leftmost nonterminal in the sentential form, so it is the one that must be expanded to get the next sentential form in the leftmost derivation."
And finally (for my purposes here), he defines things using undefined (or merely "later-defined") terms. For instance, on page 220 he says, "stack-dynamic variables are allocated from the run-time stack." He doesn't define what a run-time stack is until page 433 and that definition is: "This stack is part of the run-time system, and therefore is called the [b]run-time stack[/b]." The real kicker is he doesn't explain WHY the use of a stack is important here.
If it were just a matter of those smaller problems I have with the book, I could give it a decent rating. But, his focus in imperative languages just kicks the legs out from under the book. The best I can give it is a Not Very Good two stars out of five. A much better book is Michael L. Scott's Programming Language Pragmatics, Second Edition.
Help other customers find the most helpful reviews
Was this review helpful to you? Yes
No
|