ENTRIES TAGGED "objected-oriented programming"

Why Ruby blocks exist, part III

Never forget to clean up again!

Previous posts in this series used Ruby blocks to iterate over the items in a collection. We’re going to wrap up by showing a very different side of blocks – resource allocation and cleanup.

Close the door!

Here we have a Ruby class representing a refrigerator. Prior to accessing a refrigerator object’s contents via its contents method, you have to call its open method to open the door. (Sensible enough.) Read more…

Comments: 4
Why use Scala

Why use Scala

Alex Payne on Scala's upside and combining object-oriented and functional capabilities.

Alex Payne, co-author of the "Programming Scala," talks about the advantages of using Scala.

Comment: 1