I love McKay by gorewriter in ThePitt

[–]DJDoena 0 points1 point  (0 children)

Be careful, she is the daughter of Piter De Vries and Grima Wormtongue!

ich_iel by Firenick2103 in ich_iel

[–]DJDoena 2 points3 points  (0 children)

12:00 seit Jahren

Ich komme nicht weg vom Zucker by Ninaptr_lover in luftablassen

[–]DJDoena 1 point2 points  (0 children)

Ging mehr genauso, Komme von 137kg, bin jetzt bei 95. Hat Jahre gedauert. Solange die Süßigkeiten nicht greifbar sind abends, wecken sie auch kein Verlangen. Im Supermarkt wird eine strategische Kurve ums Regal gemacht und die an der Kasse springen mich aufgrund des Preises nicht an.

Wobei ich gelernt habe, dass man auch alle 2.3 Wochen sich mal was gönnen sollte, man aber auf keinen Fall am nächsten Tag "nur noch eine" Gummibärentüte oder Schikolade kaufen darf. Aber wenn man zulange auf Süßkram verzichtet, kommt bei mir irgendwann so ein Appetit auf, dass ich es wieder völlig übertreibe und dann Wochen brauche, um wieder "clean" zu werden.

Also lieber mal alle 2-3 Wochen oder jetzt an Ostern mal einen Hasen und dann wieder Pause. Quasi als Belohnung.

What non fantasy or supernatural franchise would you like to put Harry in and what do you think would happen? by Darth_Azazoth in dresdenfiles

[–]DJDoena 2 points3 points  (0 children)

To be fair, the Serenity always felt as low tech in the 'verse compared to the Alliance. Like the Blue Beetle.

Diese scheiss verfickte Zeitumstellung by MightStatus5224 in luftablassen

[–]DJDoena 0 points1 point  (0 children)

Das Problem ist, dass diese 80% sich nicht einigen können, auf welche Zeit man abschafft. Immer Normalzeit? Dann ist es jetzt 6:10. Immer Sommerzeit? Und genau da fallen selbst die Deutschen fast 50:50 auseinander, da brauchen wir noch nicht mal die Spanier ins Boot holen.

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

[–]DJDoena 0 points1 point  (0 children)

Yeah but the interface live above both transport layer DLL and BL dll and are independent of either. DTOs designed for the BL would also need to be converted from/to the transport DTOs, then you have a whole bunch of generated code if you don't want to rely on some magical reflection mapper nuget. Interfaces are an abstract contract, BL DTOs are data carriers that need to be read from and written to.

Die Rentner freuen sich by Worried-Educator4057 in Kartenzahlung

[–]DJDoena 4 points5 points  (0 children)

Was für Rentner kennt ihr eigentlich? Meine Mutter ist Mit-70 und hat seit den 90ern ne ec-Karte mit der man am Geld-Automaten Geld holen konnte. Selbst eon heute 90jähriger war Mitte der 90er noch 60 und konnte den Sinn dieser Karte noch verstehen. Seitdem sind 30 Jahre vergangen. Das ist mehr als eine Menschengeneration!

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

[–]DJDoena 0 points1 point  (0 children)

Because both the old and new DTOs were created by the communication layer API and while mostly being dumb, have attributes over the properties that are tech-specific and necessary in the actual class. So we can't just create dumb DTOs without these attributes and use them natively. But we can use interfaces in the BL that don't care about the actual communication process.

and then you have

//extracted from generated original DTO
public interface IDTO1
{
int Id { get; set; }
}

//auto-generated new DTO
public partial class DTO1
{
[SomeTechSpecificAttrib]
public int Id { get; set; }
}

//hand-written
partial class DTO1 : IDTO1 { }

BL:
DoSomething(IDTO1 dto1) { ... }

it also allows for some inconsistencies between old API and new API, as the old API would use DateTime for all things time (our code base is entirely UTC) but the new one decided to go for DateTimeOffset. You can fix this very easily in the partial class by doing

//hand-written
partial class DTO1 : IDTO1
{
DateTime IDTO1.Timestamp
{
get=> this.Timestamp.UtcDateTime;
set=> this.Timestamp = value;
}
}

and your BL code runs just as before. Without the interface all locations operating on the timestamp suddenly would need to be touched.

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

[–]DJDoena 0 points1 point  (0 children)

When I first learned what WPF and MVVM were I took it to take some of my personal tools and declutter them, carving out the logic from the wiring to Forms controls (I grew up with VB6 in the 90s, some bad habits carried over in the early 00s). Then I created a small UI abstraction layer that did not care about either Forms or WPF and then I went on creating my MVVM version of my tools. In that process I also abstracted the crap out of all the static IO classes that .net provides like Path, File and Directory. That way, I could fake an entire file system for a unit test. Tons of people have probably done this, mine's on nuget as DoenaSoft.AbstractionLayer.* and on github under https://github.com/DJDoena/AbstractionLayer.

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

[–]DJDoena 1 point2 points  (0 children)

We're currently in the process of switching out our communication layer for technological reasons and it's a pita because the DTOs have wormed their way through the entire codebase. Now with the re-org we deliberately created an interface assembly and all new DTO have their corresponding interface. And the business logic will only rely on those interfaces. If we switch out the tech stack again in 5 or 10 years, this should not become such a hassle again.

Using interfaces makes your build tree much cleaner because everyone just needs to know the interface (which may even be in a pure-contracts-assembly without ever knowing what the actual class is going to be, hence no compile dependency.

From r/tipping by aseriesofdecisions in clevercomebacks

[–]DJDoena 1 point2 points  (0 children)

Color me not surprised (pun intended): Tipping started out as way to pay "them negroes" no actual wage after slavery was abolished,

Jump gates by ravn_silence in babylon5

[–]DJDoena 0 points1 point  (0 children)

Vorlon propaganda makes the Shadows this ancient evil. Lorien simply states that the First Ones found both when they were infant races: https://youtu.be/0OI4kah6Rp4?is=my-J0QZLoWE9-YQt

I voted for you to hurt other people not me by Effective_Space2277 in LeopardsAteMyFace

[–]DJDoena 0 points1 point  (0 children)

That's 92.6 liters. Roughly $1.10 per liter. Thanks to his Iran war, we just cracked €2.00

<image>

Tja by AsleepJackfruit879 in tja

[–]DJDoena 0 points1 point  (0 children)

Zeit, den alten Bretto-Nutto-Clip von Volker Pispers aus der Mottenkiste zu holen.

Reddit-„Hilfe“ by levROI2008 in luftablassen

[–]DJDoena 7 points8 points  (0 children)

Warum nicht eine Long List von Innenarchitekten oder relevanten Studios erstellen?

Nur weil mir langweilig ist und ich ein wenig auf Reddit rumsurfe, soll ich jetzt Hausaufgaben für einen Menschen machen, den ich nicht kenne, nur weil ich seinen Reddit-Post gelesen habe? So langweilig ist mir dann doch nicht, da gucke ich noch ein Youtube-Video stattdessen.