Programming Ruby - David Thomas, Andrew Hunt

Programming Ruby

The Pragmatic Programmer's Guide

*****

Buch | Softcover
608 Seiten
2000
Addison Wesley (Verlag)
978-0-201-71089-2 (ISBN)
49,10 inkl. MwSt
zur Neuauflage
  • Titel erscheint in neuer Auflage
  • Artikel merken
Zu diesem Artikel existiert eine Nachauflage
This title is a reference and tutorial for the Ruby programming language. It covers all the features of the language and how to use them to build code and compare it to other existing languages.
Ruby, a new, object-oriented scripting language, has won over thousands of Perl and Python programmers in Japan -- and it's now launching worldwide. This is the world's first English-language developer's guide to Ruby. Written by the two leading Ruby developers, Programming Ruby demonstrates Ruby's compelling advantages, and serves as a start-to-finish tutorial and reference for every developer. The authors introduce all of Ruby's basics, including classes, objects, variables, container, iterators, types, methods, expressions, modules, I/O, and threads. You'll master Ruby development for the Web, including CGI scripts and embedding Ruby in HTML; learn how to create GUI-based Ruby applications with TK; and discover techniques for integrating Ruby with Windows. Programming Ruby shows how to extend Ruby in C, and presents in-depth coverage of advanced features. Numerous fully functional code examples are included. The book contains an alphabetical reference to Ruby 1.6 -- the latest version -- documenting over 800 methods, 40 built-in classes, and many useful library modules.

Dave Thomas likes to fly single-engine airplanes and pays for his habit by finding elegant solutions to difficult problems, consulting in areas as diverse as aerospace, banking, financial services, telecommunications, travel and transport, and the Internet. Before moving to the United States in 1994, Dave founded an ISO9001-certified English software company that delivered sophisticated, custom software projects throughout the world. Dave is now an independent consultant based in Dallas, Texas. Andy Hunt is an avid woodworker and musician, but, curiously, he is more in demand as a consultant. He has worked in telecommunications, banking, financial services, and utilities, as well as in more exotic fields, such as medical imaging, graphic arts, and Internet services. Andy specializes in blending tried-and-true techniques with leading-edge technologies, creating novel--but practical--solutions. Andy owns his own consulting business in Raleigh, North Carolina. 0201710897AB04062001

Foreword.


Preface.


1. Roadmap.
I. FACETS OF RUBY.

2. Ruby New.


Ruby Is an Object-Oriented Language.



Some Basic Ruby.



Arrays and Hashes.



Control Structures.



Regular Expressions.



Blocks and Iterators.



Reading and `Riting.



Onward and Upward.

3. Classes, Objects, and Variables.


Inheritance and Messages.



Objects and Attributes.



Class Variables and Class Methods.



Access Control.



Variables.

4. Containers, Blocks, and Iterators.


Containers.



Blocks and Iterators.

5. Standard Types.


Numbers.



Strings.



Ranges.



Regular Expressions.

6. More about Methods.


Defining a Method.



Calling a Method.

7. Expressions.


Operator Expressions.



Miscellaneous Expressions.



Assignment.



Conditional Execution.



Case Expressions.



Loops.



Variable Scope and Loops.

8. Exceptions, Catch, and Throw.


The Exception Class.



Handling Exceptions.



Raising Exceptions.



Catch and Throw.

9. Modules.


Namespaces.



Mixins.



Iterators and the Enumerable Module.



Including Other Files.

10. Basic Input and Output.


What Is an IO Object?



Opening and Closing Files.



Reading and Writing Files.



Talking to Networks.

11. Threads and Processes.


Multithreading.



Controlling the Thread Scheduler.



Mutual Exclusion.



Running Multiple Processes.

12. When Trouble Strikes.


Ruby Debugger.



Interactive Ruby.



But It Doesn't Work!



But It's Too Slow!

II. RUBY IN ITS SETTING.

13. Ruby and Its World.


Command-Line Arguments.



Program Termination.



Environment Variables.



Where Ruby Finds Its Modules.



Build Environment.

14. Ruby and the Web.


Writing CGI Scripts.



Embedding Ruby in HTML.



Improving Performance.

15. Ruby Tk.


Simple Tk Application.



Widgets.



Binding Events.



Canvas.



Scrolling.



Translating from Perl/Tk Documentation.

16. Ruby and Microsoft Windows.


Ruby Ports.



Running Ruby Under Windows.



Win32API.



Windows Automation.

17. Extending Ruby.


Ruby Objects in C.



Writing Ruby in C.



Sharing Data Between Ruby and C.



Memory Allocation.



Creating an Extension.



Embedding a Ruby Interpreter.



Bridging Ruby to Other Languages.



Ruby C Language API.

III. RUBY CRYSTALLIZED.

18. The Ruby Language.


Source Layout.



The Basic Types.



Names.



Variables and Constants.



Predefined Variables.



Expressions.



Boolean Expressions.



If and Unless Expressions.



Case Expressions.



Loop Constructs.



Method Definition.



Invoking a Method.



Aliasing.



Class Definition.



Module Definitions.



Access Control.



Blocks, Closures, and Proc Objects.



Exceptions.



Catch and Throw.

19. Classes and Objects.


How Classes and Objects Interact.



Class and Module Definitions.



Top-Level Execution Environment.



Inheritance and Visibility.



Freezing Objects.

20. Locking Ruby in the Safe.


Safe Levels.



Tainted Objects.

21. Reflection, ObjectSpace, and Distributed Ruby.


Looking at Objects.



Looking at Classes.



Calling Methods Dynamically.



System Hooks.



Tracing Your Program's Execution.



Marshaling and Distributed Ruby.



Compile Time? Runtime? Anytime!

IV. RUBY LIBRARY REFERENCE.

22. Built-In Classes.


Alphabetical Listing.



Array.



Bignum.



Binding.



Class.



Continuation.



Dir.



Exception.



FalseClass.



File.



File::Stat.



Fixnum.



Float.



Hash.



Integer.



IO.



MatchData.



Method.



Module.



NilClass.



Numeric.



Object.



Proc.



Range.



Regexp.



String.



Struct.



Struct::Tms.



Symbol.



Thread.



ThreadGroup.



Time.



TrueClass.

23. Built-in Modules.


Alphabetical Listing.



Comparable.



Enumerable.



Errno.



FileTest.



GC.



Kernel.



Marshal.



Math.



ObjectSpace.



Process.

24. Standard Library.


Complex.



Date.



English.



Find.



File.



GetoptLong.



mkmf.



ParseDate.



profile.



PStore.



Tempfile.



Mutex.



ConditionVariable.



timeout.



WeakRef.

25. Object-Oriented Design Libraries.


Visitor.



Delegate.



Observer.



Singleton.

26. Network and Web Libraries.


Socket-Level Access.



BasicSocket.



IPSocket.



TCPSocket.



SOCKSSocket.



TCPServer.



UDPSocket.



UNIXSocket.



UNIXServer.



Socket.



Higher-Level Access.



Net::FTP.



Net::HTTP.



Net::HTTPResponse.



Net::POP.



Net::APOP.



Net::POPMail.



Net::SMTP.



Net::Telnet.



CGI Development.



CGI.



CGI::Session.

27. Microsoft Windows Support.


WIN32OLE.



WIN32OLE_EVENT.



Win32API.

V. APPENDICES.

A: Embedded Documentation.


Inline Formatting.



Cross References.



Method Names.



Including Other Files.



Using rdtool.



Mandatory Disclaimer.

B: Interactive Ruby Shell.


Command Line.



Initialization File.



Commands.



Restrictions.



rtags, xmp, and the Frame Class.

C: Support.


Web Sites.



Download Sites.



Usenet Newsgroup.



Mailing Lists.



Bug Reporting.

D: Bibliography.
Index. 0201710897T04062001

Erscheint lt. Verlag 31.10.2000
Verlagsort Boston
Sprache englisch
Maße 187 x 234 mm
Gewicht 931 g
Themenwelt Mathematik / Informatik Informatik Programmiersprachen / -werkzeuge
ISBN-10 0-201-71089-7 / 0201710897
ISBN-13 978-0-201-71089-2 / 9780201710892
Zustand Neuware
Haben Sie eine Frage zum Produkt?
Mehr entdecken
aus dem Bereich
Das Handbuch für Webentwickler

von Philip Ackermann

Buch | Hardcover (2023)
Rheinwerk (Verlag)
49,90
das große Praxisbuch – Grundlagen, fortgeschrittene Themen und Best …

von Ferdinand Malcher; Danny Koppenhagen; Johannes Hoppe

Buch | Hardcover (2023)
dpunkt (Verlag)
42,90
Programmiersprache, grafische Benutzeroberflächen, Anwendungen

von Ulrich Stein

Buch | Hardcover (2023)
Hanser (Verlag)
39,99