Advertisement
Promo

Application development Toolkit

Download now

Ruby Cookbook: Code Blocks and Iteration

PublisherOReilly Media
Format824.0KB PDFDate added01 Jul 2006
Topics Object-Oriented, Programming Languages, Application Development
Downloads54

In Ruby, a code block (or just "Block") is an object that contains some Ruby code, and the context necessary to execute it. Code blocks are the most visually distinctive aspect of Ruby, and also one of the most confusing to newcomers from other languages. Essentially, a Ruby code block is a method that has no name. Most other languages have something like a Ruby code block: C's function pointers, C++'s function objects, Python's lambdas and list comprehensions, Perl's anonymous functions, Java's anonymous inner classes. These features live mostly in the corners of those languages, shunned by novice programmers. Ruby can't be written without code blocks. Of the major languages, only Lisp is more block-oriented.

Download now

Did you find this white paper useful?
14 out of 19 users found this white paper useful


  • Trackback
  • Clip Link

Related white papers

A Better Alternative: An Improved Approach to Facilities Management

Real estate is typically the second largest corporate expense after personnel, so why do so many organizations remain unchanged in the way they manage their facilities? Shouldn't they, and you,...


Model-Driven Development for the C Developer

C replaced assembler as the preferred language for embedded programming over ten years ago and with it came a huge increase in productivity. Today, Model Driven Development and UML offer...


Data Modeling: It's All About the Relationships

Unsuccessful data models are due to many factors - uncertainty about the concepts or the business requirements, lack of solid training for the programmer and even trying to be effective...


Deutsche Bank Bauspar AG Uses ArcStyler to Embed Existing Cobol Mainframe Application Into Modern Web-Based Systems

The client is Deutsche Bank Bauspar AG. The 'Web extension' to the existing Host functionality required the Cobol components to be mapped to Java-enabled counterparts in the Web world in...


Enhancing Spacecraft System Design Using Statemate

Statemate is the number one systems engineering tool in the specification and design of complex mission critical systems. This presentation is the first of a new industry application focus series....


Towards Semantic Web Engineering: WEESA - Mapping XML Schema to Ontologies

The existence of semantically tagged Web pages is crucial to bring the Semantic Web to life. But it is still costly to develop and maintain Web applications that offer data...


Patterns

Most of the analysis and design techniques that I talk about here are about giving you guidance on how to express an object-oriented design. Patterns look instead at the results...


White Paper

Featured White Paper

Selecting a Microsoft Hosted Exchange Service Provider

When it comes to the decision to outsource the delivery of your organisation's messaging solution, the task of selecting the most appropriate service provider can be daunting This whitepaper from Cobweb Solutions, Europe's leading Microsoft Hosted Exchange provider, is designed to help simplify that task for you, by arming you with the important ...

Download Now

Other White Papers

Business Efficiency in Unprecedented Times

In these unprecedented times, organisations are left with no choice but to seek out more and more...

Desktop Virtualization on IBM BladeCenter and System x Servers: Taking Back Control of the Desktop

"Operational efficiency is imperative in today's competitive marketplace. Thus, the IT strategies...

See All White Papers

Video icon

Video


Skip Sub Navigation Links to CNET Brand Links

Help

Become part of the ZDNet community.

Newsletters