Vote UpVote

Funny Delphi code of the day: on literals

The Wiert Corner – The fact that the 31-character limit on ClientDataSet field and index names is worse, but I just encountered this GetParamNameWODog function in a Delphi 3rd party library: What’s wrong with using the Length function here? Yes, SQL Parameter names will probably less than 1000 characters, but then the 1000 literal should be a constant with a meaningful name, and the '@' literal should be too. Apparently, Dog is a meaningful name for the at-sign, as it is not the name for a SQL parameter prefix, but it is not a named const either in the rest of their code: –jeroenFiled under: ...
Favorite? Off-Topic? Jeroen Pluimers @ 2013-12-09 11:14


Visits: 1006
Votes: 3
Favorites: 0
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Stefaan Lesage
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News


Please login or register to use this functionality.
(click on this box to dismiss)