Using Blocks in Ruby

0.00 

A Brain-Friendly Report

Категория: Метки: , ,

Описание

Unannounced and unmarked, blocks turn up all over Ruby programs. Their use ranges from some of Ruby’s most basic structures, such as loops, to some of its most sophisticated tricks. Similar to closures or lambdas in other languages, blocks enable some of Ruby’s vaunted efficiency. Blocks even allow other people to write some of the code you use.

With this excerpt from Head First Ruby, you’ll learn about blocks by looking at each concept from different angles. Exercises throughout will help you understand and remember how these closure-like structures work. In fact, these exercises are key component to our unique, hands-on Head First approach.

  • Bend your mind around blocks and methods
  • Build blocks into larger structures
  • Do heavy lifting easily with blocks
  • Get more done with less code

Why Head First? Based on the latest research in cognitive science and learning theory, Head First guides use a visually rich format to engage your mind, rather than a text-heavy approach to put you to sleep. Why waste your time struggling with new concepts? This multi-sensory learning experience is designed for the way your brain really works.

Бренд

O'Reilly Media, Inc.

O'Reilly Media spreads the knowledge of innovators through its books, online services, magazines, research, and conferences. Since 1978, O'Reilly has been a chronicler and catalyst of leading-edge development, homing in on the technology trends that really matter and galvanizing their adoption by amplifying "faint signals" from the alpha geeks who are creating the future. An active participant in the technology community, the company has a long history of advocacy, meme-making, and evangelism.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *