I decided to surf github and I noticed there are a lot of people writing their code in what I would consider in the typical way we program. I have also noticed that people are writing their Pulumi programs in a more declarative way not really instantiating anything (because pulumi does this for us?) . Which way is the right way? Or is it dealers choice? Any recommendations? I've been making classes and newing up instances of said classes instead of making consts and assigning attributes to them alone.
04/19/2021, 4:39 PM
Wanna show us what you mean with some code?
04/19/2021, 5:01 PM
Sure, so there is this way by making an interface and helper class.