There are a lot of nice advices here. Thanks to all.
Yes, I've learned that the hard way.
The injection thing is interesting but I think I'll not do that way.
That's a nice way. Maybe I should review my API now I'm (re)starting it.
I didn't realize I can do that. I did in some PHP projects but forgot completely there are also static class methods and properties in Pascal. Since I'll revisit my API I'll see how this may fit with the old-school I want to archieve.
Bookmarks