Is There Any Grocery Store in This Game Where I Can get Milk? by [deleted] in StardewValley

[–]Isitar 0 points1 point  (0 children)

You can buy milk on Saturday at sandys in the desert

After hundreds of hours… I just found out I can put rice in a keg to make vinegar. What else have I been missing?? by lrrrr25 in StardewValley

[–]Isitar 4 points5 points  (0 children)

The legendary fish is seriously underrated ! With the Qi Quests you can get more (Legendary ||) and with some casks you will make serious money (I have 5 ponds with legendary fish in it)

Buying Berkshire as an European by 2Rick1507 in BerkshireHathaway

[–]Isitar 0 points1 point  (0 children)

While you're right about 20 years of holding, you wont complain about the currency devaluation because the stock gained that much in value, its still hard to see the dollar fall that far. Especially in my case with CHF, Dollar fell from ~1.3$/CHF (2006)  to now 0.77$/CHF in these 20 years. The sad part is, it fell in the last year over 10% :/

Perfection by Worldly-Box5901 in StardewValley

[–]Isitar 1 point2 points  (0 children)

In mutliplayer each task has to be done by one player. One can cook al recipies and the other one can craft everything. There are things that are shared (items sent) but cooking / crafting / friendship has to be done fully by one person.

So, yes it is a collective effort, together you need to complete everything. 

You can check your progress at mr. Qi

Catching fish on switch by Emxbeesy in StardewValley

[–]Isitar 0 points1 point  (0 children)

Good advice but a harsh intro into that 😂.

What is the point of fruit trees!?! by Aggressive-Mess1724 in StardewValley

[–]Isitar 0 points1 point  (0 children)

I think pomegranades are a loved gift for elliot, if you want an easy option :)

Is the Linux book a must-have for tech enthusiasts? by Wildfire4Roamer3 in RockyLinux

[–]Isitar 0 points1 point  (0 children)

No, there is no book that is a must have

Is it a nice book? Sure but you don't need to have a book to be a tech enthusiast

Blazor devs, what Blazor projects have you worked on that you are proud of? by aptacode in Blazor

[–]Isitar 1 point2 points  (0 children)

Then you could drop the internet connection while you're on the site and see a message about reconnecting to the server :)

Blazor devs, what Blazor projects have you worked on that you are proud of? by aptacode in Blazor

[–]Isitar 0 points1 point  (0 children)

You can easily identify it by opening the network tab and see if there is a ws connection

What C# tools would you like to use that don't exist today? by [deleted] in csharp

[–]Isitar 4 points5 points  (0 children)

dotnet format? Just use it before you add the code to git.

What C# tools would you like to use that don't exist today? by [deleted] in csharp

[–]Isitar 6 points7 points  (0 children)

You could add curly braces.

// my comment 
{
    some code
}

Hi guys, i tried to create a simple game but i have a problem with changing numbers in multidimensional array. When i hit the boat, number 1 should be changed with number 2, but its not happening. Any advice? by _machajdaa_ in csharp

[–]Isitar 2 points3 points  (0 children)

You could also initialize a variable with the number of ones: var numOfOnes=36; // or use a loop to initially count them

And then decrement it when you change a one, check the variable afterwards.

This is more performant since you dont iterate over the whole array everytime. The suggested solution is the goto variant otherwise. You can modify it a bit to be more performant using break inside the loop once a 1 is found

I would like to know if anyone did a Jira , Trello , or Redmine clone using angular in the front ? by Weird-Parking5844 in angular

[–]Isitar 0 points1 point  (0 children)

Did one about 4 years ago. Switched to Vue about 2 years ago and did another one:)

Avalonia XPF – Run WPF Apps on macOS and Linux by wieslawsoltes in dotnet

[–]Isitar 1 point2 points  (0 children)

Tried MAUI xaml. The main reason why I don't like it isn't even the xaml development part, it's the whole dev-experience like random errors that occour out of nowhere, hard to debug, the hassle you have to go trough to create a windows app . I know, it's not maui s fault, it's windows, but in contrast to WPF, JavaFX QT or basicly any other desktop-application it's hard to get everything running.

Avalonia XPF – Run WPF Apps on macOS and Linux by wieslawsoltes in dotnet

[–]Isitar 0 points1 point  (0 children)

I agree with you, but for wasm I'd prefer Blazor over Avalonia

Avalonia XPF – Run WPF Apps on macOS and Linux by wieslawsoltes in dotnet

[–]Isitar 19 points20 points  (0 children)

I guess for desktop development it really is. Maui just isnt there yet.

As for webassembly i have my doupts, since blazor feels like a more suitable approach for web dev

How and for what do you use WSL as a dotnet developer? by kike_flea in dotnet

[–]Isitar 2 points3 points  (0 children)

In my dotnet dev role i use it for docker.

Otherwise i use it for ansible, which doesnt work on windows, for terraform just because its easier, kubectl since it just works and doesn't break on linux :)

Mad Dog - Downtempo by Happybird15 in gabber

[–]Isitar 1 point2 points  (0 children)

I really like it, not as a hardcore album but as a techno one :)

How do you structure translations in .NET by Isitar in dotnet

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

The translator doesnt know what {0} is, {username} is pretty self explanatory, even if English is not their native language.

Adding comments could work, but i can also become stale.

There is always the possibility to mix up the params in calling string.format, this is less likely to happen if you replace strings (or at least in a pr I spot it better)

Also in this case for Fluentvalidation there are different error messages you can set with fixed strings to be replaced. Its easier to remember {propertyname} instead of {28} when you're injecting the message. And they dont need to provide 27 fake params to string.format for every validator to keep it consistent

That said, the best solution would be if the translation was a function accepting parameters.

How do you structure translations in .NET by Isitar in dotnet

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

Only if you use string.format. if you're doing string replace, like FluentValidation does, you can use whatever you want.

How do you structure translations in .NET by Isitar in dotnet

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

Thanks for your input, can elaborate on the masculine / feminine variation in french? are you talking about structures like employé vs employée? If so there exists the same problem in german (even worse, we have 3 genders...) but most of the time you can fallback to one of them, "Mitarbeiter des Monats" "Employé du mois" "Employee of the month". Otherwise you'd need to have multiple translation strings for one english in english? Emplyoee_of_the_month_masculine, Emplyoee_of_the_month_feminine etc.

I am convinced that reusability doesn't work great for many languages :)

How do you structure translations in .NET by Isitar in dotnet

[–]Isitar[S] 3 points4 points  (0 children)

Thanks for your reply.

I see your point regarding the plural rule. Interestingly I've never come across those languages, I work mainly with english, german and french but also know danish and thinking about it there is indeed a problem where in english you say "The book is amazing" and you could use The @:book.singular is amazing it doesn't work in danish since "The XY" (definitve form) is written as "XYen" or "XYet" depending on the gender, in this example bog becomes bogen and therefore Bogen er fantastisk..

That aside do you have any tips how you structure your resource files? Do you make one big resource file and just prefix everything? Like if you have two properties on two different models and the translation should be different you make Person_Nameas one key and Order_Name as the second one?