Nonna – TypeScript Dependency injection without the reflection tax

8 pointsposted 2 days ago
by santoman

6 Comments

ericyd

2 days ago

I feel like I haven't yet figured out the line to draw between disliking something because it's AI-generated and disliking something because it's lazy.

This line:

> Checked by a guardrail test, not just claimed.

Is such a meaningless statement to include in the marketing page, it immediately makes me feel like the entire effort was lazy because it seems like they didn't proofread their own page. I almost would rather they just have a page describing what they were trying to accomplish and the prompt they used to get there, and skip the ceremony of the generated library.

lioeters

a day ago

Dependency injection is such a worthless concept. Everywhere I've seen it used, it has negative value, overcomplicating things. Just pass a function as argument, or a different one of the same shape (structural typing). No ceremony, reflection, decorators, generated code, no magic. Keep it simple.

theCodeStig

2 days ago

At the very least, you could have given it a cute Italian grandmother mascot

user

2 days ago

[deleted]

user

2 days ago

[deleted]