From: Daniel Baird Date: 2006-05-15T09:50:19+09:00 Subject: Re: begining programmer questions ------=_Part_49039_6675675.1147654216226 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 5/15/06, corey konrad <0011@hush.com> wrote: > > yeah a friend of mine said that PHP would be a good language to learn as > a beginner. Aargh! I mean, erm, no, I definitely think you're on the right track with Ruby. I know it doesn't feel like it, but you seems quite close to "getting" it. You're just missing the idea that variable names kinda "point" at objects. The object pointed at might be an array, or a string, or whatever.. with a whiteboard it's quite easy to illustrate the idea, but let's try this: when you say: info =3D "hello there" ..that makes a pointer from the variable "info" to the string "hello there". Here's a picture: info ----------> String "hello there" When you say: info =3D [] ..that makes a pointer from the variable "info" to a new, empty array. Doesn't matter what info used to "point" to.. it's now pointing at an array. Like this: info ----------> Array [] Hope that helps a bit! ;D --=20 Daniel Baird http://danielbaird.com (TiddlyW;nks! :: Whiteboard Koala :: Blog :: Things That Suck) ------=_Part_49039_6675675.1147654216226--