The Ruby Workshop

- Autorzy:
- Akshat Paul, Peter Philips, Dániel Szabó, Cheyne Wallace


- Ocena:
- Bądź pierwszym, który oceni tę książkę
- Stron:
- 544
- Dostępne formaty:
-
PDFePubMobi
Opis książki: The Ruby Workshop
The beauty of Ruby is its readability and expressiveness. Ruby hides away a lot of the complexity of programming, allowing you to work quickly and 'do more' with fewer lines of code. This makes it a great programming language for beginners, but learning any new skill can still be a daunting task. If you want to learn to code using Ruby, but don't know where to start, The Ruby Workshop will help you cut through the noise and make sense of this fun, flexible language.
You'll start by writing and running simple code snippets and Ruby source code files. After learning about strings, numbers, and booleans, you'll see how to store collections of objects with arrays and hashes. You'll then learn how to control the flow of a Ruby program using boolean logic.
The book then delves into OOP and explains inheritance, encapsulation, and polymorphism. Gradually, you'll build your knowledge of advanced concepts by learning how to interact with external APIs, before finally exploring the most popular Ruby framework ? Ruby on Rails ? and using it for web development.
Throughout this book, you'll work on a series of realistic projects, including simple games, a voting application, and an online blog. By the end of this Ruby book, you'll have the knowledge, skills and confidence to creatively tackle your own ambitious projects with Ruby.
Wybrane bestsellery
-
Get started with Go and learn how to leverage its simplicity and flexibility to solve real-world problems and build practical software
The Go Workshop The Go Workshop
Delio D'Anna, Andrew Hayes, Sam Hennessy, Jeremy Leasor, Gobin Sougrakpam, Dániel Szabó
-
Jeśli chcesz się dowiedzieć, jak wykorzystać tę platformę w swoich projektach, jesteś na dobrym tropie! Dzięki tej książce poznasz możliwości i konstrukcje języka Ruby oraz mechanizm działania platformy Rails, a w szczególności interfejs Rack. Dowiesz się, jak zapewniać odpowiednią jakość swoich ...
Programowanie w języku Ruby. Mikrousługi i konteneryzacja Programowanie w języku Ruby. Mikrousługi i konteneryzacja
(0,00 zł najniższa cena z 30 dni)38.35 zł
59.00 zł(-35%) -
Książka stanowi kompletny zbiór informacji na temat języka Ruby. Jeśli naprawdę chcesz zrozumieć ten język, oto obowiązkowa pozycja do przeczytania! W trakcie lektury zapoznasz się z bogatym API, pozwalającym na przetwarzanie tekstu; zrozumiesz techniki związane z wykonywaniem działań na liczbach...(0,00 zł najniższa cena z 30 dni)
41.40 zł
69.00 zł(-40%) -
Podczas tego szkolenia nauczysz się konfigurować serwer i opanujesz zasady uruchamiania aplikacji napisanej w Ruby on Rails na własnym serwerze, by następnie zautomatyzować ten proces za pomocą skryptów napisanych w bibliotece Capistrano. Będziesz używać platformy chmurowej typu PaaS (Platform as...
Ruby on Rails. Kurs video. Wdrażanie (deployment) na własne serwery i chmurę Ruby on Rails. Kurs video. Wdrażanie (deployment) na własne serwery i chmurę
(0,00 zł najniższa cena z 30 dni)35.40 zł
59.00 zł(-40%) -
Kurs Programowanie w Ruby. Poziom drugi. Kurs video. Zaawansowane techniki trwa niecałe trzy godziny, jednak uwaga – dla Ciebie będzie to bardzo intensywny czas! W trakcie kursu opanujesz m.in. umiejętność implementowania języków dziedzinowych (DSL) takich jak RSpec. Poznasz model obiektowy...
Programowanie w Ruby. Poziom drugi. Kurs video. Zaawansowane techniki Programowanie w Ruby. Poziom drugi. Kurs video. Zaawansowane techniki
(0,00 zł najniższa cena z 30 dni)29.40 zł
49.00 zł(-40%) -
Jest to właściwy moment dla języka Ruby! Zapewnia on takie możliwości jak język Java lub C++, a ponadto oferuje funkcje dynamiczne, które umożliwiają tworzonemu kodowi reagowanie w odpowiedni sposób na zmiany w środowisku wykonawczym. Ponieważ język Ruby wyróżnia elegancja, t...(0,00 zł najniższa cena z 30 dni)
53.40 zł
89.00 zł(-40%) -
Ruby. Kurs video obejmuje omówienie typów danych w Rubym i podstawy programowania obiektowego. Pokazuje, jak wykorzystać dynamiczne aspekty tego języka (niedostępne w większości innych języków), a dodatkowo przedstawia sposoby poprawnego wykonywania wielu czynności, takich jak instalacja bibliote...
Ruby. Kurs video. Poziom pierwszy. Podstawy języka i praktyczne przykłady Ruby. Kurs video. Poziom pierwszy. Podstawy języka i praktyczne przykłady
(0,00 zł najniższa cena z 30 dni)41.40 zł
69.00 zł(-40%) -
Elevate your Ruby skills to an advanced level by deepening your understanding of the design principles, best practices, and trade-offs involved in implementation approaches to future-proof your Ruby applications
-
Learn continuous deployment and automation with code-signing, continuous testing, building, deploying, and releasing of your app. About This BookA practical guide on automating your mobile development pipeline with Fastlane, Jenkins, and Slack.Build, test, run and deploy your mobile application r...
-
Leverage the power of Elixir programming language to solve practical problems associated with scalability, concurrency, fault tolerance, and high availability. Key Features Enhance your Elixir programming skills using its powerful tools and abstractions Discover how to develop a full-fledged fil...
Ebooka przeczytasz na:
-
czytnikach Inkbook, Kindle, Pocketbook i innych
-
systemach Windows, MacOS i innych
-
systemach Windows, Android, iOS, HarmonyOS
-
na dowolnych urządzeniach i aplikacjach obsługujących formaty: PDF, EPub, Mobi
Masz pytania? Zajrzyj do zakładki Pomoc »
Audiobooka posłuchasz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolonych urządzeniach i aplikacjach obsługujących format MP3 (pliki spakowane w ZIP)
Masz pytania? Zajrzyj do zakładki Pomoc »
Kurs Video zobaczysz:
-
w aplikacji Ebookpoint na Android, iOS, HarmonyOs
-
na systemach Windows, MacOS i innych
-
na dowolonych urządzeniach i aplikacjach obsługujących format MP4 (pliki spakowane w ZIP)
Szczegóły książki
- Tytuł oryginału:
- The Ruby Workshop
- ISBN Ebooka:
- 978-18-386-4887-9, 9781838648879
- Data wydania ebooka:
-
2019-10-31
Data wydania ebooka często jest dniem wprowadzenia tytułu do sprzedaży i może nie być równoznaczna z datą wydania książki papierowej. Dodatkowe informacje możesz znaleźć w darmowym fragmencie. Jeśli masz wątpliwości skontaktuj się z nami sklep@helion.pl.
- Język publikacji:
- angielski
- Rozmiar pliku Pdf:
- 15.3MB
- Rozmiar pliku ePub:
- 23.7MB
- Rozmiar pliku Mobi:
- 41.7MB
- Kategorie:
Programowanie » Ruby - Programowanie
Spis treści książki
- Preface
- About the Book
- About the Chapters
- Conventions
- Before You Begin
- Installing Ruby 2.6
- Installing the Code Bundle
- About the Book
- 1. Writing and Running Ruby Programs
- Introduction
- Key Features of Ruby
- Object-Oriented
- Interpreted Language
- Duck Typing and Dynamic Typing
- Multi-paradigm Language
- Reflection
- Metaprogramming
- Key Features of Ruby
- Introduction
- Interactive Ruby Shell (IRB)
- Exercise 1.01: Creating and Assigning Variables
- Exercise 1.02: Assigning a Variable of One Data Type to a Different Type
- Exercise 1.03: Getting the Type of a Variable
- Getting the Details of the Public Methods of an Object
- Running Ruby Code from Ruby Files
- Exercise 1.04: Getting User Input in a Ruby Program
- Standard Data Types
- Number
- Exercise 1.05: Performing Common Integer Operations
- Exercise 1.06: Using Common Integer Methods to Perform Complex Arithmetic
- Floating-Point Numbers
- Exercise 1.07: Performing Common Operations for Floating-Point Numbers
- String
- Exercise 1.08: Using Common String Methods
- Exercise 1.09: Performing String Concatenation
- Exercise 1.10: Performing String Interpolation
- Exercise 1.11: Extracting and Searching a Substring from a String
- Exercise 1.12: Replacing Part of a String with Another String
- Exercise 1.13: Replacing All the Values inside a String Using gsub
- Exercise 1.14: Splitting a String and Joining a String
- Activity 1.01: Generating Email Addresses Using Ruby
- Boolean
- Activity 1.02: Calculating the Area and Perimeter of a Candy Manufacturing Plant
- Summary
- 2. Ruby Data Types and Operations
- Introduction
- Arrays
- Iterating Through an Array
- Operations on Arrays
- Merging Two Arrays
- Removing Occurrences of Similar Elements from an Array
- Inserting Elements into an Array at the End
- Finding the Last Element of an Array without Modifying It
- Finding the Last Element of an Array and Removing it
- Exercise 2.01: Performing Simple Operations on Arrays
- Creating an Array That Cannot Be Modified
- Finding All the Unique Elements in an Array
- Sorting the Elements of an Array
- Finding the Number of Elements in an Array
- Establishing Whether an Element Exists in an Array (Case-Sensitive)
- Converting Elements of an Array into a String
- Exercise 2.02: Performing Complex Operations on Arrays
- Hashes
- Operations on Hashes
- Getting Values from the Hash
- Sorting a Hash
- Merging Hashes
- Retrieving Keys or Values from a Hash
- Deleting a Value from a Hash by Key
- Removing or Rejecting Elements from a Hash
- Establishing whether a Hash Contains a Particular Value
- Operations on Hashes
- Exercise 2.03: Converting a Time String to a Hash
- Ruby Methods
- Passing Arguments to a Method
- Ruby Methods with Default Values
- Return Value(s) from Methods
- Naming Conventions for Methods
- Activity 2.01: Dice Roller Program
- Summary
- 3. Program Flow
- Introduction
- Boolean Operators
- The AND Operator
- The OR Operator
- The NOT Operator
- The AND Operator
- Truth Tables
- Truthiness
- Precedence
- Exercise 3.01: Implementing Boolean Operators
- Conditional Expressions
- The if Statement
- The else Statement
- The elsif Statement
- The unless Statement
- Comparison
- Comparison Operators
- Comparing Strings
- Exercise 3.02: Creating a Method to Check Your Balance
- The case/when Statement
- The === Operator
- The Ternary Operator
- Exercise 3.03: Speed Determiner
- Loops
- The while/do Loop
- Exercise 3.04: Developing a Mind Reader
- The until/do Loop
- The do/while Loop
- Iterators and Enumerators
- The each Method
- The each_with_index Method
- The map/collect Loop
- Exercise 3.05: Developing an Arbitrary Math Method
- Activity 3.01: Number-Guessing Game
- Summary
- Ruby Methods
- Introduction
- The Basic Structure of the Ruby Method
- Method Components: Signature and Implementation
- The Method Signature
- Method Arguments
- Positional Arguments
- Variable Scope
- Optional Parentheses and Code Style
- Mandatory and Optional Arguments
- Keyword Arguments
- Return Values
- Multiple Return Values
- Exercise 4.01: Performing Operations on an Array
- The Splat Operator
- The Single Splat (*) Operator
- The Double Splat (**) Operator
- The Single Splat (*) Operator
- Exercise 4.02: Creating a Method to Take Any Number of Parameters
- Duck Typing
- Sending a Message
- Using Built-In Modules: Time and Math
- Math
- Exercise 4.03: Using the Math Library to Perform Mathematical Operations
- Time
- Exercise 4.04: Performing Method Operations with the Time Module
- Activity 4.01: Blackjack Card Game
- Summary
- 5. Object-Oriented programming with Ruby
- Introduction
- Classes and Objects
- Instance Methods
- Getters and Setters
- Exercise 5.01: Modeling a Companys Organizational Chart Using Classes
- Class Methods
- Method 1: Calling a Method Directly on the Class
- Method 2: Using the self Keyword
- Class Variables
- Exercise 5.02: Generating URLs for Sharing Content on Social Platforms
- Inheritance
- The Inheritance of Methods
- The Inheritance of Variables
- Calling super
- The Different Ways to Call super
- Calling super without Arguments
- Calling super with Arguments
- Calling super with the Naked Splat Operator
- Exercise 5.03: Modelling a Class for Location Addresses
- Encapsulation
- Public Methods
- Private Methods
- Protected Methods
- Public Methods
- Exercise 5.04: Demonstrate the Visibility Rules of Ruby Methods
- Bypassing Visibility
- A Quick Note about File Organization
- Activity 5.01: Voting Application for Employee of the Month
- Summary
- 6. Modules and Mixins
- Introduction
- Including Modules
- Exercise 6.01: Controlling the Operations of Services in an Application
- Inheritance with Module Methods
- Inclusion Ordering
- extend
- Exercise 6.02: Extending Your Modules with Class and Instance Methods
- Module Callbacks
- Exercise 6.03: Using Module Functions to Extend Classes
- Importing Modules as Class Methods using Extended
- Combining include and extend
- Enumerated Types
- Exercise 6.04: Writing a Module to Define Payment Methods for a Product Application
- Module Methods
- Namespaces
- Exercise 6.05: How to Reuse Constants with a Namespace
- prepend
- prepend with Subclasses
- Exercise 6.06: Prepending Modules to Classes
- Activity 6.01: Implementing Categories on the Voting Application Program
- Summary
- 7. Introduction to Ruby Gems
- Introduction
- RubyGems and the require Method
- gem search
- gem install
- gem dependency
- gem Versioning
- gem list
- gem search
- Using Gems in Your Code
- Exercise 7.01: Installing and Using a Ruby Gem
- File I/O
- Creating Files
- Reading Files
- Using the File.read Method
- Using the File.open Method
- Using the File.foreach Method
- read versus open versus foreach
- Writing to Files
- Using the File.new Method (Initializer)
- Using the File.open Method with a Block Method
- Using the File.write Method
- File.open versus File.new
- Creating Files
- File Modes
- File Helpers
- Handling CSV Data
- Reading Data from a CSV File Using CSV.read
- Using Column Headers as Field Names
- Exercise 7.02: Reading Data from a .csv File and Printing a Few Columns
- Reading Data from a .csv File Using CSV.foreach
- Response Type Variations
- Writing Data
- Writing CSV Data from an Enumerable
- Exercise 7.03: Writing an Array of Users to a CSV File
- Service Objects
- The Single Responsibility Principle
- Service Objects versus Modules
- Class Method Execution
- Exercise 7.04: Building a Service Object
- Activity 7.01: Presenting Voting Data in CSV Format Using Ruby Gems
- Summary
- 8. Debugging with Ruby
- Introduction
- Logging and Debugging
- Logging with the logger Class
- Basic Logging
- Log Levels
- Exercise 8.01: Logging User Information
- Exercise 8.02: Creating a Basic Exception Logger
- Setting Log Levels by String
- Log Output
- STDOUT
- STDERR
- File
- Log Formatting
- Custom Date Formats
- Custom String Formats
- Time Zones and UTC
- Log File Management
- Size-Based Retention
- Time-Based Retention
- Exercise 8.03: Creating a Rolling Log File
- Debugging
- Debugging Concepts
- Breakpoints
- Stack Trace/Call Stack/Back Trace
- Viewing the Stack Trace
- StepOver, StepInto, and StepOut
- Debugging Concepts
- Debugging via the CLI with byebug
- Conditional Debugging
- Navigating with byebug
- Exercise 8.04: Debugging with byebug
- Debugging with Visual Studio Code
- Setting Breakpoints
- Logpoints
- The Debug Console
- Exercise 8.05: Debugging with Visual Studio Code
- Activity 8.01: Perform Debugging on a Voting Application
- Summary
- 9. Ruby Beyond the Basics l
- Introduction
- Metaprogramming
- Blocks
- Syntax for Blocks
- With do/end
- With curly brackets ({})
- yield with Blocks
- Exercise 9.01: Building a Simple Calculator
- block_given? with Blocks
- Exercise 9.02: Building a Flight Status Display System
- The proc Object
- Exercise 9.03: Performing the sum Function on a Range of Numbers
- Exercise 9.04: Calculating Profit Using proc on an Input Price List
- Lambdas
- Exercise 9.05: Creating a Program to Sum a Range of Numbers Using Lambdas
- proc versus lambda
- The Story of the Chef and the Restaurant
- Activity 9.01: Invoice Generator
- Summary
- 10. Ruby Beyond the Basics ll
- Introduction
- Metaprogramming A Deep Dive
- Opening Classes
- Exercise 10.01: Opening the Ruby String Class to Add a New Method to it
- Monkey Patching
- Exercise 10.02: Using Monkey Patching to Add/Subtract Values
- method_missing
- Exercise 10.03: Managing Ghost Methods for the Company Class
- The Define Method
- Exercise 10.04: Creating a Welcome Message Program Using define_method
- HTTP Requests
- HTTP Requests with Ruby
- Exercise 10.05: Creating a Ruby Program to Make a Successful GET Request
- Status Codes
- Exercise 10.06: Creating a POST Request Using Ruby
- Creating a Ruby Gem
- Exercise 10.07: Creating Your Own Ruby Gem
- Activity 10.01: Implementing GET and POST Data to an External Server
- Summary
- 11. Introduction to Ruby on Rails l
- Introduction
- MVC
- Model
- View
- Controller
- MVC
- Introduction
- Generating Our First Rails App
- Exercise 11.01: Generating a Simple Rails Application
- Anatomy of a Rails application
- Exercise 11.02: Replacing the Default Page
- Exercise 11.03: Displaying a Page Heading from the Value Served from Its Action
- Extending Our View and Controller
- Exercise 11.04: Adding a Resource to the Rails Application
- Models, Migrations, and Databases
- Exercise 11.05: Creating a Review Model for citireview
- The Rails Console
- Exercise 11.06: Completing the Reviews Web Application
- The devise Ruby Gem
- Exercise 11.06: Completing the Reviews Web Application
- Activity 11.01: Adding Authentication for the Review Application
- Summary
- 12. Introduction to Ruby on Rails ll
- Introduction
- Associations
- belongs_to
- has_one
- has_many
- has_many :through
- has_one :through
- has_and_belongs_to_many
- Exercise 12.01: Creating a Model to Enable Users to Comment on Reviews on the CitiReview Application
- Validations
- Database Validations
- Controller-Level Validations
- Client-Side Validations
- Model-Level Validations
- Methods that Trigger Validations
- Methods that Skip Validations
- Checking Validations
- Exercise 12.02: Adding Validation for the Citireview Application
- Scaffolding
- Exercise 12.03: Using Rails Scaffolding to Create a Rails Application for a Store with a List of Products
- Activity 12.01: Create a Blog Application and Host It Live on a Cloud Platform
- Summary
- Appendix
- 1. Writing and Running Ruby Programs
- Activity 1.01: Generating Email Addresses Using Ruby
- Activity 1.02: Calculating the Area and Perimeter for a Candy Manufacturing Plant
- 1. Writing and Running Ruby Programs
- 2. Ruby Data Types and Operations
- Activity 2.01: Dice Roller Program
- 3. Program Flow
- Activity 3.01: Number-Guessing Game
- 4. Ruby Methods
- Activity 4.01: Blackjack Card Game
- 5. Object-Oriented Programming with Ruby
- Activity 5.01: Voting Application for Employee of the Month
- 6. Modules and Mixins
- Activity 6.01: Implementing Categories on the Voting Application Program
- 7. Introduction to Ruby Gems
- Activity 7.01: Presenting Voting Data in CSV Format Using Ruby Gems
- 8. Debugging with Ruby
- Activity 8.01: Perform Debugging on a Voting Application
- 9. Ruby Beyond the Basics I
- Activity 9.01: Invoice Generator
- 10. Ruby Beyond the Basics II
- Activity 10.01: Implementing GET and POST Data to an External Server
- 11. Introduction to Ruby on Rails I
- Activity 11.01: Adding Authentication for the Review Application
- 12. Introduction to Ruby on Rails II
- Activity 12.01: Create a Blog Application and Host It Live on a Cloud Platform
Packt Publishing - inne książki
-
Save time and effort when building 3D scenes with this essential guide to creating stunning photorealistic 3D environments in Blender
-
Solve classic computer science problems from fundamental algorithms, such as sorting and searching, to modern algorithms in machine learning and cryptography
40 Algorithms Every Programmer Should Know - Second Edition 40 Algorithms Every Programmer Should Know - Second Edition
-
Use modern Python libraries such as pandas, NumPy, and scikit-learn and popular machine learning and deep learning methods to solve financial modeling problems
-
Get up to speed with Oracle's Autonomous Databases and implementation strategies for any workload or use case, including transactional, data warehousing, and non-relational databases
Oracle Autonomous Database in Enterprise Architecture Oracle Autonomous Database in Enterprise Architecture
-
Design, build, and deploy performant and maintainable web applications using Spring, Spring Boot, and Angular
-
Build CD pipelines following GitOps principles like declarative and immutable changes stored in version control, all continuously reconciled by Argo CD, and minimize the failure of deployments.
Dzieki opcji "Druk na żądanie" do sprzedaży wracają tytuły Grupy Helion, które cieszyły sie dużym zainteresowaniem, a których nakład został wyprzedany.
Dla naszych Czytelników wydrukowaliśmy dodatkową pulę egzemplarzy w technice druku cyfrowego.
Co powinieneś wiedzieć o usłudze "Druk na żądanie":
- usługa obejmuje tylko widoczną poniżej listę tytułów, którą na bieżąco aktualizujemy;
- cena książki może być wyższa od początkowej ceny detalicznej, co jest spowodowane kosztami druku cyfrowego (wyższymi niż koszty tradycyjnego druku offsetowego). Obowiązująca cena jest zawsze podawana na stronie WWW książki;
- zawartość książki wraz z dodatkami (płyta CD, DVD) odpowiada jej pierwotnemu wydaniu i jest w pełni komplementarna;
- usługa nie obejmuje książek w kolorze.
W przypadku usługi "Druk na żądanie" termin dostarczenia przesyłki może obejmować także czas potrzebny na dodruk (do 10 dni roboczych)
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.
Książka, którą chcesz zamówić pochodzi z końcówki nakładu. Oznacza to, że mogą się pojawić drobne defekty (otarcia, rysy, zagięcia).
Co powinieneś wiedzieć o usłudze "Końcówka nakładu":
- usługa obejmuje tylko książki oznaczone tagiem "Końcówka nakładu";
- wady o których mowa powyżej nie podlegają reklamacji;
Masz pytanie o konkretny tytuł? Napisz do nas: sklep[at]helion.pl.


Oceny i opinie klientów: The Ruby Workshop Akshat Paul, Peter Philips, Dániel Szabó, Cheyne Wallace (0)
Weryfikacja opinii następuję na podstawie historii zamówień na koncie Użytkownika umieszczającego opinię. Użytkownik mógł otrzymać punkty za opublikowanie opinii uprawniające do uzyskania rabatu w ramach Programu Punktowego.