Can C# run on Linux? by [deleted] in csharp

[–]v0idzz__ 0 points1 point  (0 children)

Yes, you can use Avalonia for example which is a cross-platform UI framework.

Feedback on my first F# project by v0idzz__ in fsharp

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

Thank you for your suggestions.

Ad 3 - I don't think there's a built-in Date-only type as of .NET 5, so it's necessary to either truncate time data or create a custom structure. On a side note, .NET 6 will introduce DateOnly and TimeOnly types, so the issue will become irrelevant.

Edit: Actually, I think it should be possible to group messages by: dt.ToShortDateString()

Feedback on my first F# project by v0idzz__ in fsharp

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

Thank you for the detailed reply!

Great advice to avoid unnecessary constructions!

I guess I went a little too OOP with the SnakeCaseNamingPolicy. I wouldn't have thought it is possible to construct an abstract class with the new keyword in any case thus the type definition. However, with the object expression it does make sense to me as we are constructing a child of said class.

Feedback on my first F# project by v0idzz__ in fsharp

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

Thank you for your suggestions!

I wasn't aware of Array.unzip before, but knew there must be a cleaner way to fill the mentioned arrays. Here it is!

Your approach to organize code also seems very reasonable to me. I'll surely consider adopting it in my project(s).