artful at rogers.com
artful at rogers.com
Sat Feb 17 07:37:30 CST 2007
The MS folks seem to have moved to this convention largely due to the work of Steve McConnell (Code Complete), where he argues that copying and pasting code is much easier when you don't have to hunt around for the declarations. A. ----- Original Message ---- From: Stuart McLachlan <stuart at lexacorp.com.pg> To: Access Developers discussion and problem solving <accessd at databaseadvisors.com> Sent: Friday, February 16, 2007 7:08:16 PM Subject: Re: [AccessD] Missing references On 16 Feb 2007 at 10:39, JWColby wrote: > Actually dimensioning a variable of any kind down in the middle of code is > considered bad practice anyway. It used to be. There seems to be a growing trend towards "decentralisation" rather than "consolidation" of declarations. Now we have "Block Scoped variables" in VB.Net which *have* to be declared in the middle of code and many MS code examples now declare all variables immediately before first use. Anyone for another round of Bound/Unbound or Surrogate/Natural et al which we're at it? :-) -- Stuart -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com