matejcerny on Nostr: Traditional dependency injection requires manually passing required instances to a ...
Traditional dependency injection requires manually passing required instances to a service's constructor. Automatic dependency injection can be achieved by several frameworks, like #ZIO, which heavily rely on macros. However, there's an alternative approach using only #Scala 3's powerful type system. Unbelievable! 🤯
https://youtu.be/gLJOagwtQDwPublished at
2024-08-05 19:57:25Event JSON
{
"id": "2436a82a47fea332662870fc4686f18c8e1a2d531a510b28e6949de11fc6be1d",
"pubkey": "f5c3f597f754f534d47b0be2b9afe263894ecdad3d639453c4abc31f40db2c23",
"created_at": 1722887845,
"kind": 1,
"tags": [
[
"t",
"ZIO"
],
[
"t",
"Scala"
]
],
"content": "Traditional dependency injection requires manually passing required instances to a service's constructor. Automatic dependency injection can be achieved by several frameworks, like #ZIO, which heavily rely on macros. However, there's an alternative approach using only #Scala 3's powerful type system. Unbelievable! 🤯 https://youtu.be/gLJOagwtQDw",
"sig": "dcafbb8dddb999a912373282da3cca06c221fd16fd50df4cf350ef085afacc61e6dec7db70aef1d46549355a3fab609533eec33c633aa9a8190b640d67287886"
}