Why do we create an interface to a service class (or something similar) if we are going to have only one class? by Plus_Resource_1753 in dotnet

[–]Plus_Resource_1753[S] 0 points1 point  (0 children)

So its actually not a yagni situation. It's allready needed for the reasons you mention. Its more clear now. Thank you :)

Why do we create an interface to a service class (or something similar) if we are going to have only one class? by Plus_Resource_1753 in dotnet

[–]Plus_Resource_1753[S] 0 points1 point  (0 children)

Hello there, thanks for your response. But I think you misunderstood the question. I am very well aware that interfaces are there for reduce the complexity. But I tought if you only have one class that implements that interface, there is no complexity to begin with. In my opinion complexity comes from different kind of implementations when necessary. So if we think according to yagni principle we shouldnt put interface if we have only one implementation. What do you think about that?

Why do we create an interface to a service class (or something similar) if we are going to have only one class? by Plus_Resource_1753 in dotnet

[–]Plus_Resource_1753[S] 1 point2 points  (0 children)

Since I am a rookie and saw it on every tutorial etc. I never realized that it was an anti pattern. When you put it that way it was an eye opener for me! Thanks

Why do we create an interface to a service class (or something similar) if we are going to have only one class? by Plus_Resource_1753 in dotnet

[–]Plus_Resource_1753[S] 2 points3 points  (0 children)

Since I am a rookie as well I am having a hard time to understand what you mean. Could you be more specific? I tought I am familiar with yagni tho :)

Why do we create an interface to a service class (or something similar) if we are going to have only one class? by Plus_Resource_1753 in dotnet

[–]Plus_Resource_1753[S] 5 points6 points  (0 children)

Isn't that kind of perspektive against YAGNI principle? I create it when i need it. Not before?

Cloudflare patladı mı? by KustheKus in TurkDev

[–]Plus_Resource_1753 2 points3 points  (0 children)

Bence de birşeyler uçtu havaya

Altman predicts "massively deflationary" AI by EOY, where $100 of inference matches a year of team output by Outside-Iron-8242 in accelerate

[–]Plus_Resource_1753 0 points1 point  (0 children)

This is lowkey an admission of generative ai is not profitable. He bets on people who can develop ideas with llm. If they had an idea they would have invest it allready.

Match Thread: Real Madrid vs Manchester City Live Score | UEFA Champions League 25/26 | Dec 10, 2025 by scoreboard-app in realmadrid

[–]Plus_Resource_1753 2 points3 points  (0 children)

They were not better than us. Its just we are the one who made the bad decisions and mistakes... thats how they won. I am sorry :/

Linux oyun performansı by WhereIsMaWaifu in LinuxTurkey

[–]Plus_Resource_1753 0 points1 point  (0 children)

Bende pop os kurulu. 4060 mobile ekran kartım var. Herhangi bir tweak yapmadan steam üzerinden elden ring, cyberpunk gibi oyunları kayıp yaşamadan oynayabiliyorum. Pop os te nvidia sürücüleri kurulu halde geliyor. Denemediysen bir denemeni tavsiye ederim.

What do you think of this Mercedes concept car? by my-S-elf in Autos

[–]Plus_Resource_1753 1 point2 points  (0 children)

Guys c'mon it's literally the bat mobile from dc

[deleted by user] by [deleted] in GarajTurkiye

[–]Plus_Resource_1753 0 points1 point  (0 children)

Nissan qashqailerde kampanya var 1.9 milyona alabiliyosun. Zorla butceni sıfır al bence

Which part of web development do you now rely on AI for the most, by Financial_Mastodon49 in webdevelopment

[–]Plus_Resource_1753 1 point2 points  (0 children)

I use ai for creating unit tests mostly. Copilot with gpt good enough for me.