舉報

會員
Comprehensive Ruby Programming
Jordan Hudgens 著
更新時間:2021-07-02 21:14:15
開會員,本書免費讀 >
最新章節:
Summary
ThisisacompletecoursewrittenfromthegroundupforbeginnerswantingtogainasolidunderstandingoftheRubylanguage.ItstartsatthebeginningwithhowtoinstallRubyandworkwithitonmultiplemachines,sosimplyhaveacomputerthat'sconnectedtotheInternetandyou'llbeready.
最新章節
- Summary
- How to develop a big data analysis application in Ruby
- Advantage of decision trees over if...else statements
- Testing the program
- Print the results out
- Setting up decision variables
品牌:中圖公司
上架時間:2021-07-02 18:36:52
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Summary 更新時間:2021-07-02 21:14:15
- How to develop a big data analysis application in Ruby
- Advantage of decision trees over if...else statements
- Testing the program
- Print the results out
- Setting up decision variables
- Addition of the test method
- Function of the train method
- Calling the ID3 method
- Addition of training data and its values
- Addition of attributes
- Basic decision tree implementation
- Big data analysis
- Machine Learning
- Summary
- Implementing the least common multiple
- Implementing an even Fibonacci number algorithm
- Implementing a factorial algorithm
- Implementing an amicable number algorithm
- Implementing a permutation algorithm
- How to code a Fibonacci digit counter
- Implementing a date algorithm
- Implementing a humanize counting algorithm
- How to code the power digit sum algorithm
- Implementing a prime number counting algorithm
- Implementing the merge sort algorithm
- Quick sort code example
- Explanation of quick sort
- Implementing the quick sort algorithm
- Bubble sort code example
- Implementing the bubble sort algorithm
- Merge sort
- Quick sort
- Bubble sort
- Introduction to sorting algorithms
- Ruby Algorithms
- Summary
- How to parse an API in Ruby
- How to create a custom API connector in Ruby
- How to use the httparty Ruby gem
- How to work with APIs in Ruby
- Working with APIs in Ruby
- Summary
- Introduction to the Ruby on Rails framework
- Sinatra web framework development
- Ruby Web Frameworks
- Summary
- Resources
- Implementing metaprogramming with define_method
- Resources
- Incorporating respond_to_missing to conform to metaprogramming best practices
- Resources
- Why do we need to call super?
- Utilizing metaprogramming with method_missing to create methods on the fly
- How Rails use metaprogramming for the find_by method
- How to use metaprogramming for opening and customizing the String class
- How to integrate metaprogramming techniques into a custom class
- Metaprogramming introduction
- Ruby Metaprogramming
- Summary
- How to research gems
- How to research Ruby gems
- Introduction to Ruby gems
- Ruby Gems
- Summary
- How to use grep instead of the select and map methods
- How to use grep in Ruby
- Searching with grep in Ruby
- Summary
- How to develop a wheel of fortune game
- How to validate an IP address using regular expressions
- Regex code example
- Regular expression code example
- Regular Expressions in Ruby
- Summary
- Developing a custom error logger in Ruby
- Error handling – the best practices
- Error handling tutorial
- Error Handling in Ruby
- Summary
- Building a log file
- Appending a file
- Deleting a file
- Reading files into a program using the File class
- Other options you can pass as the second option
- Ruby File class
- Creating a file
- Working with the Filesystem in Ruby
- Summary
- Recap
- The DIP code example
- The DIP definition
- The DIP in the real world
- SOLID OOP development – the dependency inversion principle
- A caveat
- The result
- A better way
- Introducing the moderator
- The ISP code example
- The ISP definition
- SOLID OOP development – the interface segregation principle
- The fix
- The LSP violation
- The problem
- The LSP example
- Breaking down the LSP
- The LSP definition
- SOLID OOP development – the Liskov substitution principle
- A better way
- I don't like change!
- The naive approach
- The open/closed principle example
- A surprisingly challenging task
- The open/closed principle definition
- SOLID OOP development – the open/closed principle guide and example
- Why the SRP is important
- The sales tax class
- A mailer class
- Rule of thumb – no ands allowed
- The class that knew too much
- An SRP example
- The SRP in the real world
- The single responsibility principle
- SOLID OOP development – the simple responsibility principle
- How does OOP work?
- My history with OOP
- Dead simple OOP
- So how does polymorphism fit in?
- The working of polymorphism and usage of super
- Private method code example
- Private versus public methods
- Overview of private versus public methods
- The working of OOP inheritance
- Overriding default values
- Using named arguments
- Working with optional values
- Adding an initializer to a Ruby class
- Creating an initializer method in a Ruby class
- Implementing instantiation
- Instantiation code example
- Connecting the dots
- What does instantiation mean? – A real-world example
- Working with instantiation in Ruby
- Ruby OOP development – setters getters and methods
- A real-world OOP example
- Introduction to how OOP works
- Object-Oriented Programming in Ruby
- Summary
- Additional conditional operators
- Compounded compound conditionals
- Compound conditionals code example
- Guide to compound conditionals
- The conditional workflow
- The if...elsif conditional code example
- Nested if...else conditionals
- The unless conditional code example
- Running Ruby files
- Syntax for the unless conditional
- Code example of conditionals
- Real-world use of conditionals
- The conditionals guide
- Ruby Conditionals
- Summary
- Listing all values
- Listing all keys
- Converting a hash into an array
- Merging hashes
- Swapping keys and values
- Adding elements to a hash
- Top hash methods in Ruby
- Iterating over a hash for a key or value
- Deleting elements from a hash
- The hash code example
- The Ruby hash tutorial
- Using push and pop for arrays
- Deleting items from arrays
- Using arrays
- Ruby Collections
- Summary
- Summing values in an array using the inject method
- Using the map method – part 2
- The map method code example
- Using the map method – part 1
- Using the select method
- Nested iterator code example
- Looping over a hash
- The for...in loops tutorial
- The each loop code example
- The each iterator method tutorial
- The while loop code example
- The while loop guide
- Ruby Iterators and Loops
- Summary
- Optional arguments
- Keyword-based splat arguments
- Traditional splat arguments
- Using splat and optional arguments in Ruby methods
- Default argument values
- Named arguments
- Method argument code examples
- Method argument syntax
- What are method arguments?
- Guide to method arguments in Ruby
- Return behavior
- Argument count
- What is the difference between procs and lambdas in Ruby?
- Stabby lambdas
- The Ruby lambda tutorial
- What is a block?
- Proc code example
- Ruby proc tutorial
- What are the differences between class and instance methods in Ruby?
- What does a Ruby method return?
- Creating methods in Ruby
- Ruby Methods
- Summary
- Difference between integers and floats
- Arithmetic order of operations
- Integer arithmetic guide
- Working with Numbers in Ruby
- Summary
- Using the join method
- Using the split method
- Using the strip method
- Split strip and join guides for strings
- Becoming a block head
- Adding a bang
- String substitution guide
- Give it a bang!
- A practical implementation
- Method chaining
- String manipulation code examples
- What is string manipulation?
- String manipulation guide
- What is string interpolation?
- String interpolation guide for Ruby
- Storing strings in variables
- Printing strings
- Missing quotation marks
- Using strings in Ruby
- Ruby Strings
- Summary
- Class variables
- Constants
- Instance variables
- Global variables
- Local variables
- Variable scope and variable types
- Code implementation
- Getting input from the Ruby console using gets and chomp
- Using p
- Using puts
- Printing to the Ruby console
- Variable code implementation
- Using variables in Ruby
- Ruby Variables
- Summary
- Installing different Ruby versions with RVM
- Ruby language dashboard
- Installing Ruby on a computer
- Popular sites that use Ruby
- What is Ruby?
- Introduction to the Ruby Programming Language
- Questions
- Piracy
- Errata
- Downloading the color images of this book
- Downloading the example code
- Customer support
- Reader feedback
- Conventions
- Who this book is for
- What you need for this book
- What this book covers
- Preface
- Customer Feedback
- Why subscribe?
- www.PacktPub.com
- About the Author
- Credits
- Title Page
- coverpage
- coverpage
- Title Page
- Credits
- About the Author
- www.PacktPub.com
- Why subscribe?
- Customer Feedback
- Preface
- What this book covers
- What you need for this book
- Who this book is for
- Conventions
- Reader feedback
- Customer support
- Downloading the example code
- Downloading the color images of this book
- Errata
- Piracy
- Questions
- Introduction to the Ruby Programming Language
- What is Ruby?
- Popular sites that use Ruby
- Installing Ruby on a computer
- Ruby language dashboard
- Installing different Ruby versions with RVM
- Summary
- Ruby Variables
- Using variables in Ruby
- Variable code implementation
- Printing to the Ruby console
- Using puts
- Using p
- Getting input from the Ruby console using gets and chomp
- Code implementation
- Variable scope and variable types
- Local variables
- Global variables
- Instance variables
- Constants
- Class variables
- Summary
- Ruby Strings
- Using strings in Ruby
- Missing quotation marks
- Printing strings
- Storing strings in variables
- String interpolation guide for Ruby
- What is string interpolation?
- String manipulation guide
- What is string manipulation?
- String manipulation code examples
- Method chaining
- A practical implementation
- Give it a bang!
- String substitution guide
- Adding a bang
- Becoming a block head
- Split strip and join guides for strings
- Using the strip method
- Using the split method
- Using the join method
- Summary
- Working with Numbers in Ruby
- Integer arithmetic guide
- Arithmetic order of operations
- Difference between integers and floats
- Summary
- Ruby Methods
- Creating methods in Ruby
- What does a Ruby method return?
- What are the differences between class and instance methods in Ruby?
- Ruby proc tutorial
- Proc code example
- What is a block?
- The Ruby lambda tutorial
- Stabby lambdas
- What is the difference between procs and lambdas in Ruby?
- Argument count
- Return behavior
- Guide to method arguments in Ruby
- What are method arguments?
- Method argument syntax
- Method argument code examples
- Named arguments
- Default argument values
- Using splat and optional arguments in Ruby methods
- Traditional splat arguments
- Keyword-based splat arguments
- Optional arguments
- Summary
- Ruby Iterators and Loops
- The while loop guide
- The while loop code example
- The each iterator method tutorial
- The each loop code example
- The for...in loops tutorial
- Looping over a hash
- Nested iterator code example
- Using the select method
- Using the map method – part 1
- The map method code example
- Using the map method – part 2
- Summing values in an array using the inject method
- Summary
- Ruby Collections
- Using arrays
- Deleting items from arrays
- Using push and pop for arrays
- The Ruby hash tutorial
- The hash code example
- Deleting elements from a hash
- Iterating over a hash for a key or value
- Top hash methods in Ruby
- Adding elements to a hash
- Swapping keys and values
- Merging hashes
- Converting a hash into an array
- Listing all keys
- Listing all values
- Summary
- Ruby Conditionals
- The conditionals guide
- Real-world use of conditionals
- Code example of conditionals
- Syntax for the unless conditional
- Running Ruby files
- The unless conditional code example
- Nested if...else conditionals
- The if...elsif conditional code example
- The conditional workflow
- Guide to compound conditionals
- Compound conditionals code example
- Compounded compound conditionals
- Additional conditional operators
- Summary
- Object-Oriented Programming in Ruby
- Introduction to how OOP works
- A real-world OOP example
- Ruby OOP development – setters getters and methods
- Working with instantiation in Ruby
- What does instantiation mean? – A real-world example
- Connecting the dots
- Instantiation code example
- Implementing instantiation
- Creating an initializer method in a Ruby class
- Adding an initializer to a Ruby class
- Working with optional values
- Using named arguments
- Overriding default values
- The working of OOP inheritance
- Overview of private versus public methods
- Private versus public methods
- Private method code example
- The working of polymorphism and usage of super
- So how does polymorphism fit in?
- Dead simple OOP
- My history with OOP
- How does OOP work?
- SOLID OOP development – the simple responsibility principle
- The single responsibility principle
- The SRP in the real world
- An SRP example
- The class that knew too much
- Rule of thumb – no ands allowed
- A mailer class
- The sales tax class
- Why the SRP is important
- SOLID OOP development – the open/closed principle guide and example
- The open/closed principle definition
- A surprisingly challenging task
- The open/closed principle example
- The naive approach
- I don't like change!
- A better way
- SOLID OOP development – the Liskov substitution principle
- The LSP definition
- Breaking down the LSP
- The LSP example
- The problem
- The LSP violation
- The fix
- SOLID OOP development – the interface segregation principle
- The ISP definition
- The ISP code example
- Introducing the moderator
- A better way
- The result
- A caveat
- SOLID OOP development – the dependency inversion principle
- The DIP in the real world
- The DIP definition
- The DIP code example
- Recap
- Summary
- Working with the Filesystem in Ruby
- Creating a file
- Ruby File class
- Other options you can pass as the second option
- Reading files into a program using the File class
- Deleting a file
- Appending a file
- Building a log file
- Summary
- Error Handling in Ruby
- Error handling tutorial
- Error handling – the best practices
- Developing a custom error logger in Ruby
- Summary
- Regular Expressions in Ruby
- Regular expression code example
- Regex code example
- How to validate an IP address using regular expressions
- How to develop a wheel of fortune game
- Summary
- Searching with grep in Ruby
- How to use grep in Ruby
- How to use grep instead of the select and map methods
- Summary
- Ruby Gems
- Introduction to Ruby gems
- How to research Ruby gems
- How to research gems
- Summary
- Ruby Metaprogramming
- Metaprogramming introduction
- How to integrate metaprogramming techniques into a custom class
- How to use metaprogramming for opening and customizing the String class
- How Rails use metaprogramming for the find_by method
- Utilizing metaprogramming with method_missing to create methods on the fly
- Why do we need to call super?
- Resources
- Incorporating respond_to_missing to conform to metaprogramming best practices
- Resources
- Implementing metaprogramming with define_method
- Resources
- Summary
- Ruby Web Frameworks
- Sinatra web framework development
- Introduction to the Ruby on Rails framework
- Summary
- Working with APIs in Ruby
- How to work with APIs in Ruby
- How to use the httparty Ruby gem
- How to create a custom API connector in Ruby
- How to parse an API in Ruby
- Summary
- Ruby Algorithms
- Introduction to sorting algorithms
- Bubble sort
- Quick sort
- Merge sort
- Implementing the bubble sort algorithm
- Bubble sort code example
- Implementing the quick sort algorithm
- Explanation of quick sort
- Quick sort code example
- Implementing the merge sort algorithm
- Implementing a prime number counting algorithm
- How to code the power digit sum algorithm
- Implementing a humanize counting algorithm
- Implementing a date algorithm
- How to code a Fibonacci digit counter
- Implementing a permutation algorithm
- Implementing an amicable number algorithm
- Implementing a factorial algorithm
- Implementing an even Fibonacci number algorithm
- Implementing the least common multiple
- Summary
- Machine Learning
- Big data analysis
- Basic decision tree implementation
- Addition of attributes
- Addition of training data and its values
- Calling the ID3 method
- Function of the train method
- Addition of the test method
- Setting up decision variables
- Print the results out
- Testing the program
- Advantage of decision trees over if...else statements
- How to develop a big data analysis application in Ruby
- Summary 更新時間:2021-07-02 21:14:15