We have a number of junior Delphi developers here in my organization, and as part of the process of teaching them Delphi, I'd like them to look at "clean", well-written, well-engineered Delphi code.
Some criteria I'd be looking for include:
Generally, I'm looking for code that would make Uncle Bob Martin proud.
I'm familiar with many of the popular Delphi open source projects, but I'd like the suggestions and recommendations of the community.
I'll make this question a community wiki question.
I would recommend you take a really simple program and have the junior developers implement it in Delphi following all those good criteria you listed. You want something that really takes no design on its own (absurdly simple!) The point of the program would be to follow all those best practices. This is especially great if you have a small team that can pair program on it and debate how to best do things. Make sure they do regular code reviews with your senior developers too.
I know that isn't what you are asking for, but I am a strong believer that people learn way more by doing then they do by reading.
For inspiration look at the Enterprise edition of Fizzbuzz. He took an incredibly simple algorithm and over engineered it with all the best practices. (It is written in C#, so you could have your Junior developers re-write it in Delphi).
Then when they are done you can make it open source so everyone can marvel.
Not all the code in the repository is equally well designed, but as a source of ideas, and well written Pascal code, there is a lot of greatness inside the Synopse opensource fossil project. Some bits of the repository contain projects that only build in Delphi 7 and are not unicode ready, but the main part I would point you to is the Delphi ORM+SQLite3 framework.
It's not typical Delphi VCL application code, though, it has a very REST architecture driven focus, and the demo uses hand-coded forms in object Pascal, rather than using the traditional delphi DFM based form UI.
I don't know of something that I would recommend, that is all of the things you said above, plus has excellent unit test coverage, plus is suitable for beginner reading, which also sticks enough to Idiomatic Delphi to not be teaching against what I most want to teach Delphi beginners; Stick with the idiomatic solutions, until you're enough of an expert to know when not to use the common Delphi idioms.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With