IBS
Carrello Lista desideri Login Registrati Aiuto e FAQ Buoni regalo Spedizioni
Ricerca Ricerca avanzata 
Books
Reparti Books
Antiques & Collectibles
Architecture
Art
Biography & Autobiography
Body, Mind & Spirit
Business & Economics
Comics & Graphic Novels
Cooking
Computers
Crafts & Hobbies
Drama
Education
Family & Relationships
Fiction
Foreign Language Study
Games
Gardening
Health & Fitness
History
House & Home
Humor
Juvenile Nonfiction
Juvenile Fiction
Language Arts & Disciplines
Law
Literary Collections
Literary Criticism
Mathematics
Medical
Music
Nature
Performing Arts
Pets
Philosophy
Photography
Poetry
Political Science
Psychology
Reference
Religion
Science
Self-Help
Social Science
Sports & Recreation
Study Aids
Technology
Transportation
Travel
Newsletter
Vuoi conoscere le
nostre offerte? Iscriviti alle newsletter di IBS
Libri Books
Dischi MP3
DVD Blu ray
Games eBooks
Tutte
Informativa sulla privacy

Beginning Ruby: From Novice to Professional

Beginning Ruby: From Novice to ProfessionalTitoloBeginning Ruby: From Novice to Professional
AutoreCooper, Peter
Prezzo
Sconto 5%
€ 33,77   Spedizioni gratuite in Italia
(Prezzo € 35,55 Risparmio € 1,78)
CategoriaComputers: Software Development & Engineering
RilegaturaPaperback
Dati631 p.; ill.
Anno2007
EditoreApress
CollanaExpert's Voice in Open Source
Normalmente disponibile per la spedizione entro 5 giorni lavorativi (poche copie disponibili)

Aggiungi alla lista dei desideri
Prezzo di copertina: Dollari $ 39.99 (Come calcoliamo i prezzi in euro)
nectarQuesto prodotto dà diritto a 34 punti Nectar.
Per saperne di più
Condividi  Email Facebook Twitter altri
Descrizione
Ruby is perhaps best known as the engine powering the hugely popular Ruby on Rails Web framework. However, it is an extremely powerful and versatile programming language in its own right. It focuses on simplicity and offers a fully object-oriented environment. This guide targets every type of reader wanting to learn Ruby, from novice programmers to Web developers to Ruby newcomers.

Indice e argomenti trattati
Forewordxix
About the Authorxxiii
About the Technical Reviewersxxv
Acknowledgmentsxxvii
Introductionxxix
PART 1 Foundations and Scaffolding
Let's Get It Started: Installing Ruby
3
Installing Ruby
4
Windows
4
Apple Mac OS X
7
Linux
10
Other Platforms
12
Summary
13
Programming == Joy: A Whistle-Stop Tour of Ruby and Object Orientation
15
Baby Steps
16
irb: Interactive Ruby
16
Ruby Is English for Computers
17
Why Ruby Makes a Great Programming Language
17
Trails for the Mind
18
Turning Ideas into Ruby Code
20
How Ruby Understands Concepts with Objects and Classes
20
The Making of a Man
21
Basic Variables
23
From People to Pets
24
Everything Is an Object
27
Kernel Methods
29
Passing Data to Methods
29
Using the Methods of the String Class
31
Using Ruby Without Object Orientation
32
Summary
33
Ruby's Building Blocks: Data, Expressions, and Flow Control
35
Numbers and Expressions
35
Basic Expressions
35
Variables
36
Comparison Operators and Expressions
38
Looping Through Numbers with Blocks and Iterators
40
Floating Point Numbers
42
Constants
43
Text and Strings
44
String Literals
44
String Expressions
46
Interpolation
47
String Methods
49
Regular Expressions and String Manipulation
50
Arrays and Lists
57
Basic Arrays
58
Splitting Strings into Arrays
60
Array Iteration
61
Other Array Methods
62
Hashes
65
Basic Hash Methods
66
Hashes Within Hashes
67
Flow Control
68
if and unless
69
?:, The Ternary Operator
70
elsif and case
71
while and until
72
Code Blocks
74
Other Useful Building Blocks
76
Dates and Times
76
Large Numbers
80
Ranges
81
Symbols
83
Converting Between Classes
84
Summary
85
Developing a Basic Ruby Application
87
Working with Source Code Files
87
Creating a Test File
88
The Test Source Code File
90
Running Your Source Code
90
Our Application: A Text Analyzer
93
Required Basic Features
94
Building the Basic Application
94
Obtaining Some Dummy Text
95
Loading Text Files and Counting Lines
95
Counting Characters
97
Counting Words
98
Counting Sentences and Paragraphs
100
Calculating Averages
102
The Source Code So Far
102
Adding Extra Features
103
Percentage of ``Useful'' Words
103
Summarizing by Finding ``Interesting'' Sentences
105
Analyzing Files Other Than text.txt
107
The Completed Program
108
Summary
111
The Ruby Ecosystem
113
Ruby's History
113
The Land of the Rising Sun
114
Ruby's Influences
115
Go West
115
Ruby on Rails
117
Why Rails Came into Existence
118
How the Web (2.0) Was Won
119
The Open Source Culture
119
What Is Open Source?
120
Where and How to Get Help
121
Mailing Lists
121
Usenet Newsgroups
121
Internet Relay Chat (IRC)
122
Documentation
123
Forums
124
Joining the Community
124
Give Help to Others
124
Contribute Code
125
Weblogs
125
Summary
126
PART 2 The Core of Ruby
Classes, Objects, and Modules
129
Why Use Object Orientation?
129
Object Orientation Basics
133
Local, Global, Object, and Class Variables
133
Class Methods vs. Object Methods
138
Inheritance
140
Overriding Existing Methods
143
Reflection and Discovering an Object's Methods
145
Encapsulation
146
Polymorphism
151
Nested Classes
153
The Scope of Constants
154
Modules, Namespaces, and Mix-Ins
156
Namespaces
156
Mix-Ins
159
Building a Dungeon Text Adventure with Objects
168
Dungeon Concepts
168
Creating the Initial Classes
168
Structs: Quick and Easy Data Classes
170
Creating Rooms
173
Making the Dungeon Work
173
Summary
178
Projects and Libraries
181
Projects and Using Code from Other Files
181
Basic File Inclusion
181
Inclusions from Other Directories
184
Logic and Including Code
185
Nested Inclusions
185
Libraries
186
The Standard Libraries
187
RubyGems
189
Summary
198
Documentation, Error Handling, Debugging, and Testing
201
Documentation
201
Generating Documentation with RDoc
202
RDoc Techniques
203
Debugging and Errors
208
Exceptions and Error Handling
208
Catch and Throw
212
The Ruby Debugger
213
Testing
216
The Philosophy of Test-Driven Development
217
Unit Testing
219
More Test: Unit Assertions
221
Benchmarking and Profiling
222
Simple Benchmarking
223
Profiling
225
Summary
227
Files and Databases
229
Input and Output
229
Keyboard Input
230
File I/O
231
Basic Databases
248
Text File Databases
248
Storing Objects and Data Structures
251
Relational Databases and SQL
255
Relational Database Concepts
256
The Big Four: MySQL, PostgreSQL, Oracle, and SQLite
257
Installing SQLite
258
A Crash Course in Basic Database Actions and SQL
259
Using SQLite with Ruby
264
Connecting to Other Database Systems
269
ActiveRecord: A Sneak Peek
274
Summary
275
Deploying Ruby Applications and Libraries
279
Distributing Basic Ruby Programs
279
The Shebang Line
280
Associated File Types in Windows
282
``Compiling'' Ruby
282
Detecting Ruby's Runtime Environment
284
Easy OS Detection with Ruby_Platform
285
Environment Variables
285
Accessing Command Line Arguments
287
Distributing and Releasing Ruby Libraries As Gems
288
Creating a Gem
289
Distributing a Gem
293
RubyForge
294
Deploying Ruby Applications As Remote Services
295
CGI Scripts
295
Generic HTTP Servers
298
Remote Procedure Calls
303
Summary
308
Advanced Ruby Features
309
Dynamic Code Execution
309
Bindings
310
Other Forms of eval
311
Creating Your Own Version of attr_accessor
314
Running Other Programs from Ruby
315
Getting Results from Other Programs
315
Transferring Execution to Another Program
316
Running Two Programs at the Same Time
316
Interacting with Another Program
317
Safely Handling Data and Dangerous Methods
318
Tainted Data and Objects
319
Safe Levels
321
Working with Microsoft Windows
322
Using the Windows API
323
Controlling Windows Programs
325
Threads
327
Basic Ruby Threads in Action
328
Advanced Thread Operations
329
RubyInline
331
Why Use C As an Inline Language?
332
Creating a Basic Method or Function
332
Benchmarking C vs. Ruby
334
Unicode and UTF-8 Support
336
Summary
339
Tying It Together: Developing a Larger Ruby Application
341
Let's Build a Bot
341
What Is a Bot?
341
Why a Bot?
343
How?
343
Creating a Text Processing Tools Library
344
Building the WordPlay Library
345
Testing the Library
351
WordPlay's Source Code
354
Building the Bot's Core
357
The Program's Life Cycle and Parts
358
Bot Data
360
Constructing the Bot Class and Data Loader
363
The response_to Method
365
Playing with the Bot
371
Main Bot Code Listings
374
bot.rb
375
basic_client.rb
378
Extending the Bot
378
Using Text Files As a Source of Conversation
379
Connecting the Bot to the Web
379
Bot-to-Bot Conversations
382
Summary
384
PART 3 Ruby Online
Ruby on Rails: Ruby's Killer App
387
First Steps
387
What Is Rails and Why Use It?
387
Installing Rails
389
Database Considerations
391
Building a Basic Rails Applications
391
Creating a Blank Rails Application
391
Database Initialization
396
Creating a Model and Migrations
398
Scaffolding
404
Controllers and Views
408
Routing
418
Model Relationships
420
Sessions and Filters
422
Other Features
424
Layouts
424
Testing
426
Plugins
428
References and Demo Applications
429
Reference Sites and Tutorials
429
Example Rails Applications
430
Summary
430
Ruby and the Internet
433
HTTP and the Web
433
Downloading Web Pages
433
Generating Web Pages and HTML
443
Processing Web Content
448
E-Mail
454
Receiving Mail with POP3
454
Sending Mail with SMTP
456
Sending Mail with ActionMailer
457
File Transfers with FTP
458
Connection and Basic FTP Actions
459
Downloading Files
461
Uploading Files
462
Summary
464
Networking, Sockets, and Daemons
467
Networking Concepts
467
TCP and UDP
468
IP Addresses and DNS
468
Basic Network Operations
469
Checking Machine and Service Availability
469
Performing DNS Queries
471
Connecting to a TCP Server Directly
474
Servers and Clients
475
UDP Client and Server
475
Building a Simple TCP Server
478
Multi-Client TCP Servers
480
GServer
482
A GServer-Based Chat Server
485
Web/HTTP Servers
488
Daemon Processes
488
Summary
490
Useful Ruby Libraries and Gems
493
abbrev
494
Installation
494
Examples
494
Further Information
495
base64
496
Installation
496
Examples
496
Further Information
499
BlueCloth
500
Installation
500
Examples
500
Further Information
501
cgi
502
Installation
502
Examples
502
Further Information
507
chronic
508
Installation
508
Examples
508
Further Information
509
Digest
510
Installation
510
Examples
510
Further Information
512
English
513
Installation
513
Examples
513
Further Information
514
ERB
515
Installation
515
Examples
515
Further Information
518
FasterCSV
519
Installation
519
Examples
519
Further Information
525
iconv
526
Installation
526
Examples
526
Further Information
527
logger
528
Installation
528
Examples
528
Further Information
530
pp
531
Installation
531
Examples
531
Further Information
532
RedCloth
533
Installation
533
Examples
533
Further Information
534
StringScanner
535
Installation
535
Examples
535
Further Information
538
tempfile
539
Installation
539
Examples
539
Further Information
541
uri
542
Installation
542
Examples
542
Further Information
546
zlib
547
Installation
547
Examples
547
Further Information
548
APPENDIX A. Ruby Primer and Review for Developers
549
The Basics
549
Definition and Concepts
549
The Ruby Interpreter and Running Ruby Code
551
Interactive Ruby
553
Expressions, Logic, and Flow Control
553
Basic Expressions
553
Class Mismatches
554
Comparison Expressions
555
Flow
557
Object Orientation
561
Objects
562
Classes and Methods
563
Reflection
565
Reopening Classes
567
Method Visibility
568
Data
569
Strings
569
Regular Expressions
569
Numbers
572
Arrays
574
Hashes (Associative Arrays)
574
Complex Structures
576
Input/Output
576
Files
577
Databases
577
Web Access
578
Libraries
579
File Organization
579
Packaging
580
APPENDIX B. Ruby Reference
581
Useful Classes and Methods
581
Array
581
Bignum and Fixnum
583
Enumerable
584
Float
585
Hash
585
Integer
586
Numeric
586
Object
587
String
588
Regular Expression Syntax
590
Regular Expression Options
591
Special Characters and Formations
591
Character and Sub-Expression Suffixes
592
Exception Classes
592
Special Variables
596
Ruby License
597
APPENDIX C. Useful Resources
601
References
601
Ruby
601
Ruby on Rails
602
Blogs
603
Aggregators and Community Blogs
603
Personal Blogs
604
Forums and Newsgroups
604
Mailing Lists
605
Real-Time Chat
606
Tutorials and Guides
607
Installation
607
Ruby and Techniques
608
Ruby on Rails
609
Other
610
Index611

I più venduti: Computers - Software Development & Engineering
1.The Mythical Man-Month: EThe Mythical Man-Month: Essays on...
Brooks, Frederick P.
Addison-Wesley Professional
€ 28,67
2. 3D Math Primer for Graph 3D Math Primer for Graphics and...
Parberry, Ian
Wordware Publishing Inc.
€ 55,11
3. Test Driven Development: Test Driven Development: By Exa...
Beck, Kent
Addison-Wesley Professional
€ 33,73
Ricerca Ricerca avanzata
Vai a inizio pagina
Libri
Libri in italiano
Libri in inglese
Libri al 50%
Libri scolastici
eBooks
Film e video
DVD
Blu-ray
Musica
CD musicali
Vinile
MP3
DVD musicali
Blu ray musicali
Games
Personal computer
Nintendo Wii
PlayStation 3
PlayStation 2
Xbox 360
Sony PSP
PS Vita
Nintendo DS
Nintendo 3DS
Download
eBooks
MP3
Il mio IBS
I miei dati
I miei ordini
Le mie preferenze
IBS Premium
Lista dei desideri
IBS consiglia

 

Informazioni utili:
Spese e tempi di spedizione
Invio regali
Buoni acquisto (Happy Card)
FAQ
Condizioni generali di vendita
Informativa sulla privacy
PuntiNectar

Pagamenti:
Carte di credito
Carta di credito accettate
PayPal
Paypal
Contrassegno

Come contattarci:
Invio messaggi al servizio di Assistenza Clienti
Tutti i contatti
Lavora con noi

• Seguici su  Facebook Twitter

Servizi per i clienti:
Password dimenticata
Controllo e modifica dei propri dati
Verifica degli ordini effettuati

Opportunità per aziende e enti:
Servizi per le biblioteche
Programma di affiliazione (Informazioni generali)
Accesso alla sezione riservata Partnership Programme IBS
Accesso alla sezione riservata TradeDoubler

Concessionaria di pubblicità:


Con la collaborazione di Argento vivo per il settore editoria libraria

Dati audience certificati Audiweb

Ufficio stampa: Daniela Ravanetti


Altri siti del network IBS:
Libraccio.it
MYmovies.it
Wuz.it
Librerie Giunti al Punto
Mel Bookstore
Librerie Ubik


Internet Bookshop Italia S.r.l.
Sede Legale Via Giuseppe Verdi n.8 - 20090 Assago MI
Reg. Imprese di Milano 12252360156
CCIAA Milano 1542508
P.IVA 12252360156
Capitale sociale € 500.000 i.v.



Copyright © 1998-2012 Internet Bookshop Italia, tutti i diritti riservati

Licenza SIAE n. 229/I/05-359.

Internet Bookshop Italia è una società di Giunti & Messaggerie

 



Funzione di ricerca basata su FACT®Finder di OMIKRON