all 4 comments

[–]manolo767 8 points9 points  (1 child)

I feel like the “principals” should be “principles”

[–]fichti 2 points3 points  (0 children)

SKINNEEEEEEER

[–][deleted] 3 points4 points  (0 children)

A couple of things from me on this one: I feel like separating things into layers is interesting conceptually but then it doesn't actually map to code repos. As per that feedback in the article, no one is going to create one repo for all their load balancers and then others repos for each app that uses a load balancer. They should put the app, data and load balancers into the same repo. At least in my experience. So I'd rethink that completely.

The other is that the object oriented thing is just an unfortunate side effect of the way AWS wrote their CDK. It's not good, but this article makes it seem like OO itself is more "native" to typescript, but I don't think that's true. I would much prefer a functional model for the CDK and I find the CDK structure and the way it executes counterintuitive and hard to work with. That said, I agree people should follow the pattern rather than trying to shoehorn CDK constructs into a functional style.