Si Dunn

Archive for the ‘Great Britain’ Category

The Book of Ruby: A Hands-On Guide for the Adventurous – #ruby #programming #software #bookreview

In Authors, Book reviews, Books, Cloud Computing, England, Great Britain, Linux, Macintosh, MacOS, Microsoft, Network, Nonfiction, Paperback, PC, Programming, Software, Technology, Uncategorized, United States, Windows on September 1, 2011 at 7:05 pm

The Book of Ruby: A Hands-On Guide for the Adventurous
By Huw Collingbourne
(No Starch Press, $39.95, paperback; $31.95, Kindle) 

Ruby, first introduced in 1995, is “a cross-platform interpreted language that has many features in common with other ‘scripting’ languages such as Perl and Python,” says Huw Collingbourne,  who is director of technology for SapphireSteel Software and has 30 years’ experience in computer programming.

“Many people are attracted to Ruby by its simple syntax and ease of use. They are wrong,” he cautions in his new book. “Ruby’s syntax may look simple at first sight, but the more you get to know the language, the more you will realize that it is, on the contrary, extremely complex. The plain fact of the matter is that Ruby has a number of pitfalls just waiting for unwary programmers to drop into.”

Collingbourne  has written The Book of Ruby to help those new to the programming language successfully jump over the hazards. Ruby, he notes, can look a bit like Pascal at first glance. But: “It is thoroughly object-oriented and has a great deal in common with the granddaddy of ’pure’ object-oriented languages, Smalltalk.”  

He cautions programmers to get a good handle on Ruby by itself before rushing ahead to use the popular web development framework known as Ruby on Rails.”Understanding Ruby is a necessary prerequisite for understanding Rails,” he warns.

“Indeed, if you were to leap right into Rails development without first mastering Ruby, you might find that you end up creating applications that you don’t even understand. (This is all too common among Ruby on Rails novices.)”

Collingbourne’s well-written 373-page book covers Ruby 1.8 and 1.9. He takes a “bite-sized chunks” approach, so that each chapter “introduces a theme that is subdivided into subtopics.” And: “Each programming topic is accompanied by one or more small, self-contained, ready-to-run Ruby program.”

 The chapter line-up shows the book’s structure:

  •  Introduction
  • 1: Strings, Numbers, Classes, and Objects
  • 2: Class Hierarchies, Attributes, and Class Variables
  • 3: Strings and Ranges
  • 4: Arrays and Hashes
  • 5: Loops and Iterators
  • 6: Conditional Statements
  • 7: Methods
  • 8: Passing Arguments and Returning Values
  • 9: Exception Handling
  • 10: Blocks, Procs, and Lambdas
  • 11: Symbols
  • 12: Modules and Mixins
  • 13: Files and IO
  • 14: YAML
  • 15: Marshal
  • 16: Regular Expressions
  • 17: Threads
  • 18: Debugging and Testing
  • 19: Ruby on Rails
  • 20: Dynamic Programming
  • Appendix A: Documenting Ruby with RDOC
  • Appendix B: Installing MySQL for Ruby on Rails
  • Appendix C: Further Reading
  • Appendix D: Ruby and Rails Development Software
  • Index

The author gives links for downloading the latest version of Ruby, plus the source code for all of the programs used in this book.

Collingbourne notes that The Book of Ruby “covers many of the classes and methods in the standard Ruby library – but by no means all of them! At some stage, therefore, you will need to refer to documentation on the full range of classes used by Ruby.” He provides links to the online documentation for both Ruby 1.8 and Ruby 1.9.

True to his word, he begins at the “hello world” level of Ruby:

puts 'hello world'

From there, he keeps surging forward in small, careful steps, offering good examples to illustrate each new topic. In each chapter except the Introduction, he also includes a subsection known as “Digging Deeper.”

“In many cases, you could skip the ‘Digging Deeper’ sections and still learn all the Ruby you will ever need,” he states. “On the other hand, it is in these sections that you will often get closest to the inner workings of Ruby, so if you skip them, you are going to miss out on some pretty interesting stuff.”

Collingbourne previously has released two free ebooks on Ruby: The Little Book of Ruby and The Book of Ruby.

He knows his Ruby – and he wants you to know this elegant and unique programming language, too.

Si Dunn

#

The Book of Books: The Radical Impact of the King James Bible, 1611-2011 – #bookreview

In Authors, Biography, Book reviews, Books, England, Geography, Great Britain, History, Nonfiction, Politics, Religion, Uncategorized, United States on August 29, 2011 at 12:32 pm

The Book of Books: The Radical Impact of the King James Bible, 1611-2011
By Melvyn Bragg
(Counterpoint Press, $28.00 hardback; $20.00 Kindle)

As a child, I liked and respected the King James Bible. But I hated religion. I had been born into a ”Christian” demonination that tried incessantly to pound hellfire, damnation and, sadly, white supremacy, into my young head. And it used the King James Version as its grim hammer.

Some of my less-educated relatives, in fact, believed not only that the King James Version was the literal Word of God but that it had come directly from God, Abraham, Moses and Jesus, as well as Matthew, Mark, Luke and John — in English.

Once I turned 18 and moved away, I abandoned that denomination quickly. But I took a King James Bible with me. And, 50 years later, I still keep one close by and sometimes refer to it – not always as a writer’s reference.

Melvyn Bragg’s The Book of Books is a magnificent work of religious and historical scholarship, adroitly timed to celebrate the 400th anniversary of the King James Bible’s first publication in 1611. His book is eye-opening, entertaining reading and full of surprises as he pulls together startling examples of the King James Bible’s powerful and pervasive reach within English and American culture. 

 ”You may be a Christian. You may  be anti-Christian, or of any other religion, nor none. You may be an athiest fundamentalist and think the Bible is monstrous, a book to be dismissed or derided,” Bragg writes. “But whoever you are in the English-speaking world, I hope to persuade you to consider that the King James Bible has driven the making of that world over the last 400 years, often in the most unanticipated ways.”

His 370-page book smoothly covers an amazing amount of religious, historical, political and cultural ground, both in England and the United States. And he makes the compelling case that America owes much of its language, government, literature and national values to the King James Bibles that accompanied the early colonists and settlers to the New World. 

“There has never been a book to match it,” Bragg states. “It has a fair claim to be the most pivotal book ever written, a claim made by poets and statesmen and supported by tens of millions of readers and congregations.” In his view, “everyone. even athiests, has benefited from many of its unexpected consequences.”

Not all of its consequences have been good, of course. “It was the consolidating voice of two world empires [Great Britain and the United States]. It unleashed and motivated philanthropic movements of a size and effectiveness which bettered the lives of ordinary people throughout the English-speaking world.” But it likewise encouraged a “ferocious sense of mission” that “transformed and sometimes destroyed native cultures.”

Also: “For centuries the King James Bible fed some of the finest thinkers and artists and men of science and politics; others it persecuted.”

For me, one intriguing aspect of Bragg’s book is its examination of the King James Bible’s strong influence on American literature all the way into the 20th century and beyond. Writers such as William Faulkner, D.H. Lawrence, F. Scott Fitzgerald, William Golding,, John Steinbeck and many others composed novels and short stories with strong echoes of Bible stories no doubt heard and learned in childhood from the King James Bible.

Bragg also examines how America’s Civil War was “a war of the Bible,” for both sides. “The King James Version provided the intellectual and emotional structure for the politics” of that devastating conflict. He notes: “It would be overly simplistic to conclude that the Bible alone ’caused’ the Civil War. But: “The Bible was the gate through which the thoughts and passions of the majority were marshalled.” 

Bragg’s well-honed skills as a novelist and nonfiction author help enrich The Book of Books as a reading and learning experience. He keeps his focus carefully centered on demonstrating the impact of the King James Bible and does not wander off  into wider examinations of Christianity and its myriad controversies.

Si Dunn

Follow

Get every new post delivered to your Inbox.

Join 1,348 other followers