Book description
If you know basic high-school math, you can quickly learn and apply the core concepts of computer science with this concise, hands-on book. Led by a team of experts, you’ll quickly understand the difference between computer science and computer programming, and you’ll learn how algorithms help you solve computing problems.
Each chapter builds on material introduced earlier in the book, so you can master one core building block before moving on to the next. You’ll explore fundamental topics such as loops, arrays, objects, and classes, using the easy-to-learn Ruby programming language. Then you’ll put everything together in the last chapter by programming a simple game of tic-tac-toe.
- Learn how to write algorithms to solve real-world problems
- Understand the basics of computer architecture
- Examine the basic tools of a programming language
- Explore sequential, conditional, and loop programming structures
- Understand how the array data structure organizes storage
- Use searching techniques and comparison-based sorting algorithms
- Learn about objects, including how to build your own
- Discover how objects can be created from other objects
- Manipulate files and use their data in your software
Publisher resources
Table of contents
- Preface
- 1. Introduction to Computer Science
- 2. How Does the Computer Really Work?
- 3. Core Programming Elements
- 4. Conditional Structures
- 5. Loop Structures
- 6. Arrays
- 7. Sorting and Searching
- 8. Using Objects
- 9. Defining Classes and Creating Objects
- 10. Object Inheritance
- 11. File Input/Output
- 12. Putting It All Together: Tic-Tac-Toe
- A. Recommended Additional Reading
- B. Installing Ruby
- C. Writing Code for Ruby
- D. Using irb
- Colophon
- Copyright
Product information
- Title: Computer Science Programming Basics in Ruby
- Author(s):
- Release date: April 2013
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9781449355975
You might also like
book
Comprehensive Ruby Programming
This book will provide you with all of the tools you need to be a professional …
book
Learning Ruby
You don't have to know everything about a car to drive one, and you don't need …
book
Design Patterns in Ruby
Praise for Design Patterns in Ruby " documents smart ways to resolve many problems that Ruby …
book
The Ruby Way: Solutions and Techniques in Ruby Programming, Third Edition
For more than a decade, Ruby developers have turned to The Ruby Way for reliable “how-to” …