{$MODE Delphi} doesn't change a thing
This is an IDE message on loading, not on building.
My personal thing with comments like your first sentence is that it might help you relieve stress to make a joke comment, but it leaves more questions than answers. What do you regard as silly syntax? All generics? Just this use of generics?
Avoiding duplicate code is an important coding paradigm. How to do that is of course a different question. Using generics here avoids
1. that I have to enter duplicate code
2. thereby removing the chance that I make a mistake in one of the duplicates
3. thereby removing the chance that I miss an implementation (specialize) when making changes to the parent (generic) class - which happens in real life
4. keeps the code short and thus easy to understand and maintain
5. once I start connection the functionality backend to the user interface, simple UI code makes it much easier to maintain and really keep separated.
In most cases, everything that takes place happens within the table class now. Then the definition of such a frame is completely without an implementation part in the source code file.
* A helper class to set up the form / frame would mean additional defining and constructing code in each child class.
* An interface would not allow me custom object fields easily.
* not using TFrame/TForm for the final class would mean I would have to give up RAD (I still add a TPopupMenu or some other custom component to a frame sometimes).
Feel free to suggest me a syntax or other method to keep the code that handles a certain frame type in just one place.
I wasn't a fan of generics for a long time, but have learned to overcome my hesitance, understanding that they can avoid repetitive code and bugs arising of writing repetitive code with a bored mind