Inspired by a thread in the German Delphi-Praxis:
Inspired by a thread in the German Delphi-Praxis:
http://www.uweraabe.de/Blog/2015/04/20/delphi-library-guidelines/
http://www.uweraabe.de/Blog/2015/04/20/delphi-library-guidelines
http://www.uweraabe.de/Blog/2015/04/20/delphi-library-guidelines/
http://www.uweraabe.de/Blog/2015/04/20/delphi-library-guidelines
Many thanks :D I'm already using it :D
ReplyDeleteGood advice. Location of source in \Source (and similar for packages etc etc) is something that really needs to be standardised. I think actually there is a standard, which you've described, just that not all projects - especially commercial ones - adhere to it. I'm hoping to see GetIt require a standard structure if you want to publish your libraries with it.
ReplyDeleteBut one thing I'd contest is using numerical version numbers for IDE versions. I can't remember that XE is 150, and if I do then I can't remember if that's the compiler version or RTL version or IDE version or... Since packages are used by humans, I'd prefer to use human-readable naming, so 'XE' or 'XE8' suffixes. Let the code deal with version numbers (...preferably in a .inc file where it's surfaced as 'XE_OR_ABOVE' or similar so that in normal code, again, it's readable.)
David Millington I knew you would object against the numbers :)
ReplyDeleteWhile I can follow your argument, I just try to follow the way Delphi does it. It is easier to find packages for a specific Delphi version when all end with the same number. Otherwise one needs two search patterns.
But it is completely valid to disagree with me.
http://delphi.wikia.com/wiki/Creating_Packages
ReplyDelete