Programming
All tutorials in Programming
Sort By:    Name   Rating   Views  Comments    Date 
Browse Pages :    <<  <  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  >  >> 
Printing the addressbook RUBY
Submitted 23 June 2008

Now we will learn how to do things with the address book. Especifically, we will learn how to print and how to sort the addressbook.

Views: 400 Comments: 0
Example: Addressbook RUBY
Submitted 23 June 2008

An addressbook is a fairly complex structure. It contains several contacts, and each one has an associated name, address and so on.

Views: 382 Comments: 0
Hashes In RUBY
Submitted 23 June 2008

Hashes are a generalization of arrays. Instead of only permitting integer indices, as in array[3], hashes allow any object to be used as an "index". So, you can write hash["name"]

Views: 423 Comments: 0
Iterators In RUBY
Submitted 23 June 2008

An iterator is a special kind of method. It is a method that lets you access items one at a time.

Views: 360 Comments: 0
What can ruby arrays do?
Submitted 23 June 2008

This is all very nice, but can I do anything cool with arrays? You sure can. Follow this tutorial and ou will find out how.

Views: 435 Comments: 0
Arrays In RUBY
Submitted 23 June 2008

You are already familiar with a couple of Ruby classes (Integer and String). The class Array is used to represent a collection of items.

Views: 316 Comments: 0
More features IN RUBY
Submitted 23 June 2008

There are just a couple more things that we should do with our AddressBook class.

Views: 332 Comments: 0
Writing iterators In RUBY
Submitted 23 June 2008

In this section we are going to add our very own iterators to the class AddressBook. We will create two iterators, AddressBook#each and AddressBook#each_address, which can be used as usual:

Views: 574 Comments: 0
Implementing AddressBook In RUBY
Submitted 23 June 2008

he first step is very simple. AddressBook has an array which contains all our contacts. We will not use attr_accessor because we don't want the user to access this array directly. We will write our own access methods.

Views: 284 Comments: 0
Classes and methods in RUBY
Submitted 23 June 2008

Now we are ready to create our very own Address class. Let's start simple. Let's start with an address that only contains the "street" field.

Views: 328 Comments: 0

Pick a cell, any cell. Ostensibly, this tutorial is about using code to select a cell of a string grid at run time. Along the way, some more generally important material arises concerning using references to Delphi created objects, e.g. the object in "sender" arising from Delphi created event handlers.

Views: 362 Comments: 0
Delphi: A Word Search Program
Submitted 19 June 2008

Tutorial written and tested in Delphi 2, on a Win98 machine, but the code should be pretty generally applicable. You can download the sourcecode and some other stuff.

Views: 330 Comments: 0

Tutorial written and tested in Delphi 2, on a Win98 machine, but the code should be pretty generally applicable.

Views: 337 Comments: 0
Delphi: Using or Writing DLLs
Submitted 19 June 2008

"DLL" stands for "dynamic link library". When a programmer has something of general usefulness to other programmers, he or she may choose to "package" the material in a dll. Users must have both the dll and the program that uses the things in it on their system, but, once they do, using the program which uses the things in the dll works just like using any other...

Views: 312 Comments: 0
Delphi: Reading joysticks
Submitted 19 June 2008

This tutorial is based on a newsgroups post from Mark Wilkinson... thank you, Mark! This tutorial will be short on explanation and not much longer on program... because Delphi makes things so easy!!

Views: 274 Comments: 0
Browse Pages :    <<  <  1  2  3  4  5  6  7  8  9  10  11  12  13  14  15  16  >  >>