Hello ! This is my first post on the forums. I have gone deep into a rabbit hole trying to wrap my head around the Single Script Architecture framework. I have a some background in Java, so I understand the concepts of OOP. I have possibly read every article relating to OOP and the single script architecture in this forum and still can’t grasp certain aspects so I hope someone can point me in the right direction.
Please go easy on me if some of the questions may be straight forward or easy.
For Example… some frameworks I have come across have folders in ReplicatedStorage for:
1. What is a Service ? What differentiates an Object from a Service ?
I understand that a Service has persistent state, so does that mean they are all singletons? How are they different from Classes (or objects )?
2.How do you differentiate your Module Scripts ? How do you decide what will go into Data, what will go into Classes, etc…
3.Is Lazy Loading a form of dependency injection ? If not , what are the ways to decouple dependencies?
4. Are there any ways to unit test code ?
Any resources that you can point me to will be greatly appreciated !
Please if any software engineer geniuses are reading this I need your guidance !
Thank you for reading