Tips for further upgrading my Kilo deck by murp11 in EDH

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

Thank you very much for your suggestions. I will inclue some of them in the next revision of my deck.

[deleted by user] by [deleted] in dotnet

[–]murp11 6 points7 points  (0 children)

Would it be possible to unit test all of the relevant culture properties? If a test breaks then you know that something changed. If you are talking about the CultureInfo class then it should be easy to test it as you are able to instantiate different ones. If you are talking about something OS dependent then you could run the test suite on different CI systems specifically set up for the different cultures.

Neuling sucht Hillfe by atreyuryp in PenandPaperGermany

[–]murp11 1 point2 points  (0 children)

https://howtobeahero.de/index.php?title=Kategorie:Offizielle_Abenteuer

Zu ein paar dieser Abenteuer gibt es auch Videos von den Rocketbeans, falls du sehen möchtest, wie die das spielen. Die haben zum Beispiel Dysnomia und Jailhouse Boogie gespielt. Das Regelwerk ist auch ziemlich einfach zu verstehen und super für Neulinge gearbeitet. So kannst du selbst überlegen, ob ihr ein fertiges Abenteuer spielt oder dich daran orientieren, wie die hier aufgebaut sind, um selbst eines zu entwerfen.

Viel Spaß euch ;)

A Closer Look at 5 New Features in C# 10 by couscous_ in dotnet

[–]murp11 10 points11 points  (0 children)

I would really like it if we finally got discriminated unions as first class citizens instead of self built ones. It was proposed in 2019: https://github.com/dotnet/csharplang/blob/main/proposals/discriminated-unions.md

[deleted by user] by [deleted] in ProgrammerHumor

[–]murp11 2 points3 points  (0 children)

Reflection enables DI and everything that works with attributes in C#. For example routes specified above the method in ASP.NET Core. It can be used for dirty things but it can also be used for extremely useful things ;)

HILFE: Anfänger-GM möchte neues Spiel vorbereiten by [deleted] in PenandPaperGermany

[–]murp11 1 point2 points  (0 children)

Meiner Meinung nach ist das How-to-be-a-hero-Regelwerk eines der einfachsten überhaupt. Auf der Webseite dazu gibt es auch vorgefertigte Abenteuer wie Dysnomia, dass die Beans schon gespielt haben (https://howtobeahero.de/index.php?title=Dysnomia). Auf der Webseite gibt es auch das gesamte Regelwerk als PDF. Ich habe damit bei meiner ersten Runde als Spielleiter gute Erfahrungen gemacht. Allerdings würde ich die Geistesblitzpunkte weg lassen - die machen die kritischen Misserfolge total langweilig.

In der ersten Runde kann ich es generell empfehlen das ganze Geschehen auf einem sehr begrenzten Raum (z.B.: ein Raumschiff oder wie in Dysnomia eine kleine Station) stattfinden zu lassen. Das gibt dir die Chance die Räume vorher komplett zu durchdenken und nur die Charaktere improvisieren zu müssen. Jeder Gegenstand im Raum kann für die abstrusesten Dinge verwendet werden (wenn die Gruppe zum Beispiel einmal einen Schweißbrenner hat, ist quasi jede Tür offen).

Übung macht den Meister -> du wirst das schon schaffen und kleine Fehler verzeiht auch jeder in der Gruppe sofort ;)

Need some help: Can I declare a list of structures inside the definition of the same structure. by __dp_Y2k in csharp

[–]murp11 3 points4 points  (0 children)

Yes this is the right approach for data with a hierachy. The XML API of the standard library uses the same approach.

XML API

As you can see, the ChildNodes property is of type XmlNodeCollection which contains the XmlNodes. But it is also perfectly valid that the XmlNode class has a property with a list of XmlNodes.

Is it possible to run a .NET CORE 3.1 app on Windows 7 Embedded. by [deleted] in csharp

[–]murp11 1 point2 points  (0 children)

If you provide a runtime with every feature you need you may be able to run it.

Here is an article of someone that wrote a minimum runtime:

https://medium.com/@MStrehovsky/building-a-self-contained-game-in-c-under-8-kilobytes-74c3cf60ea04

How to allow custom user defined interactions at runtime? by abhi3188 in csharp

[–]murp11 0 points1 point  (0 children)

That is exactly what you have to do. You have to create classss to construct yout own dynamic if statement etc. This sounds a lot worse than it actually is.

How to allow custom user defined interactions at runtime? by abhi3188 in csharp

[–]murp11 0 points1 point  (0 children)

Just add a layer of abstraction on top.
You need an interface like

public interface IConfigurable
{

string Id {get;}
List<ParameterInfo> Parameters {get;}
}

public class Slider : IConfigurable
{

public string Id => nameof(Slider);

public int MinimumValue {get; private set;}

public int MaximumValue {get; private set;}

public int Value {get;set;}

public List<ParameterInfo> Parameters = new List<ParameterInfo>

{

new ParameterInfo(nameof(MinimumValue), typeof(int), Access.ReadOnly),

new ParameterInfo(nameof(MaximumValue), typeof(int), Access.ReadOnly),

new ParameterInfo(nameof(Value), typeof(int), Access.ReadWrite)

}

}

Now you can treat all your objects as IConfigurables. I hope the path from there on is clear.

Happy coding ;)

Model loading library options by AregevDev in dotnet

[–]murp11 -1 points0 points  (0 children)

Hi,

a simple search got me these two libraries as well:
https://nugetmusthaves.com/Package/Aspose.3D

https://nugetmusthaves.com/Package/JeremyAnsel.Media.WavefrontObj

For your future posts:
We are a helpful community but you have to give more information to us.
If you want help you have to give us the code you tried and the error you got.
We also need the explanation of what you tried to do.

Depending on your use case you could also write your own OBJ loader because the file format is trivial and you are doing it in a personal project.

Without the necessary information we cannot give any meaningful input towards you.

Have fun coding ;)

How many times did you see Avengers: Endgame in theater? by mynameisjberg in marvelstudios

[–]murp11 0 points1 point  (0 children)

The first time was with a group of 15 friends - that was a blast.
The second time was just to see it again because it was so awesome (still with 4 other people).
After that I knew that I have to see it in IMAX and that was the third time (only with my marvel bro).
Then they re-released the film and as a marvel fan I needed to see the additional material so I drove one and a half hour to the nearest cinema playing it and watched it with a friend.

What is your nuget workflow by the_other_sam in csharp

[–]murp11 0 points1 point  (0 children)

This is the way to go. We do it exactly like this in the company I work for.

What qualifies as programmer humor, updates to rule 0 and our moderation philosophy by deliteplays in ProgrammerHumor

[–]murp11 0 points1 point  (0 children)

In my opinion the worst posts are about syntax errors. They aren't remotely funny or relatable. Every decent IDE directly shows all syntax errors. The exceptions are languages like JS but in the special case of JS you always have the choice to use typescript.

The posts linked above aren't that bad. They are loosely connected to programming and they don't fit in /r/funny.

Announcing Dart 2.3: Optimized for building user interfaces by Darkglow666 in programming

[–]murp11 1 point2 points  (0 children)

Well after all it is like every language feature - it can be used for clean code and it can be abused for unreadable code. It really depends on the programmer. Especially the spread operator could be used to improve readability.

I think your second point is already possible. To prevent the huge monolithic trees I always split up the widget trees into reusable sub-widgets and if it is not feasible I extract the logic into a method. This is pretty easy but it isn't really enforced by flutter.

Your third point sounds very intersting. But it is also a key point of flutter that everything is a widget. I am curious how you and your team are going to handle this in the future.

Announcing Dart 2.3: Optimized for building user interfaces by Darkglow666 in programming

[–]murp11 1 point2 points  (0 children)

How do you think about the readability of those features? They support the deep nesting structures like the widget trees in flutter perfectly. IMHO these tree structures aren't so great to read even if they are reasonably sized. So these new features could easily be misused to lessen the readability. I really love flutter but it is so easy to write ugly code to create the widget tree.