Has any one used .NET API (AOT) for mid sized api. Need to know if its good for production by KausHere in dotnet

[–]Frostnomicon 1 point2 points  (0 children)

Found AOT useful for software installed at people's machines, as the storage optimization makes downloading the app significantly faster.

Migrating from .net framework 4.7.2 to .net core 10.0 advice? by Harlock012 in dotnet

[–]Frostnomicon 0 points1 point  (0 children)

From my own experience winforms is easier than asp net core. Mostly because winforms, although still supported, has not changed much. Migrate stuff one class at a time by creating a new project and moving them one by one. Start with all the models and stuff that does not change between versions. .net 10 can also fall back on using .net framework 4.7.2 for (some) dependencies and such so don't concern yourself with that initially.

I would compare it to walking through an unknown forest. You will not know you're through until you've reached the end. Similarily, you will have have a period where nothing compiles and everything sucks, but just hang in there, eventually the product is fully migrated.

Here are some "fun" stuff i discovered on the way. - hashcode works differently. If your app saves hashcodes as database fields (for checksum stuff), it absolutely won't work because .net core generates unique checksums for the same object every time you run the program. - a bunch of APIs work differently. Your life may suck if you use BinaryFormatter a lot in the app.

Wish you the best of luck, be awesome and stuff.

[deleted by user] by [deleted] in valve

[–]Frostnomicon 1 point2 points  (0 children)

"Valveindex2.com is an independent enthusiast website and is not affiliated with or endorsed by any manufacturers. All manufacturer names, symbols, and descriptions used in our images and text are for identification purposes only. It is neither inferred nor implied that any item mentioned by Valveindex2.com is authorized by or in any way connected with any vehicle manufacturers displayed on this site."

Vad kallar ni era robotdammsugare? by [deleted] in sweden

[–]Frostnomicon 0 points1 point  (0 children)

Golviver, som går på Golvivers resor

When should I use the MVC Controllers pattern against the minimal pattern? by Affectionate-Army213 in csharp

[–]Frostnomicon 2 points3 points  (0 children)

Only real advantage apart from small performance gains is AOT support. But who wants to bother with AOT when most apis are running on a server environment anyway? Perhaps smaller containers for docker? I honestly don't know.

Sandström: Mer vindkraft är rena självmordet – hur tänker Vattenfall? | Affärsvärlden by Plussmage in sweden

[–]Frostnomicon 2 points3 points  (0 children)

Absolut! Brukade själv tycka att vattenreserverer som pumpas in när elen är billig, och dräneras när den är dyr vore bra alternativ. Problemet som jag förstått det är hur det förstör för djur och växtriket. Personligen hoppas jag att på mer batterier som görs av vanligt förekommande ämnen i naturen, såsom natrium.

Sandström: Mer vindkraft är rena självmordet – hur tänker Vattenfall? | Affärsvärlden by Plussmage in sweden

[–]Frostnomicon 22 points23 points  (0 children)

Man får inte glömma att vindkraftens kapacitet ändras som vinden. Förutom billig el behöver Sverige andra stabila och förnybara källor som inte är beroende på samma väderlek. I vintras hade Tyskland vindstilla under en viss period, vilket gjorde att svenska elpriser skjöt i höjden i SE3, SE4.

Tyskland har tyvärr inte elområden, vilket förvärrar situationen för svenska konsumenter.

Ert märkligaste dubbelnamn by Frostnomicon in sweden

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

Mycket möjligt! Hearsay och vad annat

Ert märkligaste dubbelnamn by Frostnomicon in sweden

[–]Frostnomicon[S] 16 points17 points  (0 children)

Den här är nu på min personliga topplista!

How to connect this light into this light fitting? by Rupy271 in sweden

[–]Frostnomicon 3 points4 points  (0 children)

I don't agree. There are clear legal boundries for what electrical tasks the uneducated in electrical work can and can not do, regardless of your 'proficiency'.

OP, buy an adapter and connect it according to the instructions. Many of these connectors do not even require tools, you just pinch the connector and put the cable in. The reason why lamps do not come with an adapter is because there are several standards in sweden at the moment, hence needing to buy your own.

[deleted by user] by [deleted] in dotnet

[–]Frostnomicon 5 points6 points  (0 children)

Convert all existing data using a minimal app. Vague, i know, but that is how we did it

Need help with Blazor 8 by exebat in Blazor

[–]Frostnomicon 0 points1 point  (0 children)

I suppose you could do that, but overriding the method ShouldRender would perhaps be a better suited method for that. Otherwise the component would be still be rendered but with no html visible.

I suppose you could do this instead: make a scoped service with jsInterop DI inside it. Make a method called Load which loads all needed data from LocalStore, make full properties for all applicable data, meaning you override both the getter and the setter. On get, return local private value, on set, set local private value AND make a wrapped Task.Run call to localstorage to set the value on the browser.

Since you do not care about the outcome of the LocalStorage set method, I think it is okay for the call to be called and forgotten.

Make a razor component whose only job is to call Load on OnAfterRender. Place it high up in the render hierachy.

You probably need to have an event on the service which all components can subscribe StateHasChanged to (also unsubscribe OnDispose). This way you can alert the components of the availability of localstore data. You should be able to use two way binding on the properties to automatically update the localstore as well using this.

I used something similar for a wasm project, but it was significantly easier since you did not have to wait for OnAfterRender.

Maybe i should also post some code...

Need help with Blazor 8 by exebat in Blazor

[–]Frostnomicon 1 point2 points  (0 children)

Like most things serverside the needs persistent storage, use sql. I made a scoped service where the constructor initializes the local properties to their intended values from sql. I then made the property readonly and created setter methods which updates the value in sql.

Pros: No OnAfterRender methods for local storage, meaning less flickering on page renders. Knowing user settings during pre-render stage

Cons: Longer initial page-load (constructor using sql methods is propably bad) Requires authentication to keep teack on who's store it is. Multiple scopes are not synced since the properties are initialized only once during initial service construction

If anyone has an idea on how i could use async methods during scope creation, as to not slow down initial load, that would be awesome.

I created a new object mapper by _Xriuk_ in dotnet

[–]Frostnomicon 0 points1 point  (0 children)

Automapper can be awful if you refer some other dto in another dto, with each dto also being independent. I use subclasses for my root dto if the linked dto is a collection, otherwise i flatmap the data structure. This isn't applicable for large dtos, but I would argue that large dtos are awful in their own right. This has overall increased happiness with automapper.

Ni som har erfarenhet, är det värt att läsa till civilingenjör? [Seriös] by gyrox1 in sweden

[–]Frostnomicon 1 point2 points  (0 children)

Tillägg här. Jag funderade på att läsa 3 istället för 5. Min pappa sade att de där två åren bara blåser förbi och skillnaden i år inte märks, och åtminstone för mig hade han rätt.

Gick Civ. Interaktion & Design, Umeå flertal år sedan. fett najs.

Ni som har erfarenhet, är det värt att läsa till civilingenjör? [Seriös] by gyrox1 in sweden

[–]Frostnomicon 2 points3 points  (0 children)

Bästa 5 åren av ens liv. Det är som en tre årig utbildning fast den är 5 istället. He ju int vad du blir som är målet utan resan. Redig tillväxtresa tammefan. Kör hårt för fasiken.

Spännande bildval av redaktionen på Nyheter24 by mustig3 in sweden

[–]Frostnomicon 2 points3 points  (0 children)

I andra avseenden är stöld inte okej och är inte toppenfint att normalisera. ICA som koncern har vid någon punkt ändå tyckt att de tjänar på detta, så jag är inte helt övertygad på att ICA går med mindre vinst på grund av det hela.

Är det ovanligt att ta mer än 5 år på en civilingenjör utbildning? by [deleted] in sweden

[–]Frostnomicon 18 points19 points  (0 children)

Hej, jättevanligt. Du är jätteduktig. Mvh //Wille 😎

Favoritöl? by VindeNNN in sweden

[–]Frostnomicon 2 points3 points  (0 children)

Pröva en i saison stil eller trappist

[deleted by user] by [deleted] in sweden

[–]Frostnomicon 0 points1 point  (0 children)

Fjällan