[Home] [By Thread] [By Date] [Recent Entries]

  • From: "bryan rasmussen" <rasmussen.bryan@g...>
  • To: "Fraser Goffin" <goffinf@g...>
  • Date: Mon, 21 Jul 2008 10:27:31 +0200

It is common practice for programmers to name variables in numerous
non-helpful ways, it is best practice to have a well thought out
naming scheme that allows those who maintain code to know what a
variable is to be used for, hopefully achievable by following the
coding styles for their languages and organizations, and it is a
convention just to use some form of camel casing and a generally
unhelpful hint as to what data type the variable is when in the
process of naming the variable in a non-helpful way.

Note that this definition is somewhat unfair to convention, as it
shows the bad usage of convention. But I think it is better to focus
on the bad usage of convention then to imply that convention is best.

Cheers,
Bryan Rasmussen
On Mon, Jul 21, 2008 at 10:12 AM, Fraser Goffin <goffinf@g...> wrote:
> I agree. Perhaps it would be better to use the terms 'COMMON practice'
> and 'BEST practice' rather than 'convention' (the association seems
> more intuitive as does the distinction) ?
>
> Fraser.
>
> 2008/7/21 Liam Quin <liam@w...>:
>> On Sat, Jul 19, 2008 at 01:04:09PM -0400, Costello, Roger L. wrote:
>>> Is a convention the same thing as a best practice?
>> No, not in general.  Things that are "usually done" or that are
>> done by most people are not necessarily the best way to do
>> things or even good things to do.
>>
>> Liam
>>
>> --
>> Liam Quin, W3C XML Activity Lead, http://www.w3.org/People/Quin/
>> http://www.holoweb.net/~liam/ * http://www.fromoldbooks.org/
>>
>> _______________________________________________________________________
>>
>> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
>> to support XML implementation and development. To minimize
>> spam in the archives, you must subscribe before posting.
>>
>> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
>> Or unsubscribe: xml-dev-unsubscribe@l...
>> subscribe: xml-dev-subscribe@l...
>> List archive: http://lists.xml.org/archives/xml-dev/
>> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>>
>>
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@l...
> subscribe: xml-dev-subscribe@l...
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>
>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member