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
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
Code Complete, 2nd Edition
Widely considered one of the best practical guides to programming, Steve McConnell’s original CODE COMPLETE has …
book
Python Crash Course, 2nd Edition
This is the second edition of the best selling Python book in the world. Python Crash …
book
Begin to Code with JavaScript
Become a JavaScript programmerand have fun doing it! Start writing software that solves real problems, even …
book
Python Crash Course, 3rd Edition
Python Crash Course is the world's best-selling guide to the Python guide programming language, with over …