From: Phillip Gawlowski Date: 2008-06-05T05:23:19+09:00 Subject: Re: A crosspost from the Perl Community -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Roger Pack wrote: |> No looking back to see if c was declared as an int, a char, or a |> float. Easier to keep track of what you and other people are doing. | | Yeah some people consider it a 'feature' that you don't know what you're | dealing with, only that it quacks like a duck. One thing you can do | [and no one does] is name your variables, like i_count i_number. int[] numbers; //straight from MS's C# tutorial on Arrays byte[] number; // Contrived example on my part. Do you remember that numbers is an array of integers 10 LOC later? What about 100 LOC? Do you remember that number is an Array of bytes? The issue you describe is not an issue of a broken tool or feature. But a lack of naming conventions, as you said. Oh, and in your example: does 'i' signify 'integer' or 'input'? ;) - -- Phillip Gawlowski Twitter: twitter.com/cynicalryan Blog: http://justarubyist.blogspot.com ~ It seems like once people grow up, they have no idea what's cool. -- Calvin -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkhG+fsACgkQbtAgaoJTgL8lOACfSaEF1i79PG+cFT2HFCgY4w2h etYAnjQ6mOjEyI6wylTlpvVzCJJAZifP =aKhH -----END PGP SIGNATURE-----