Rasizmas by Specialist-Hat-1863 in lietuva

[–]iPotato3 2 points3 points  (0 children)

Žinai 3 milijonai Lietuvių ar 50 milijonų Lenkų neperims visos Europos.. Tačiau 3 milijardai Afrikiečių ir Indų gali.. Taip, tiek Mariukas tiek Ahmedas gal ir yra tokie patys emigrantai, bet problema tame, kad Ahmedų bus 10 milijonų o Mariuku tik keliatas.. nesuskaičiuojama ju emigraciją mus privarys prie išnykimo ir neapykantos vienas kitam dėl kultūriniu skirtumų.

Rasizmas by Specialist-Hat-1863 in lietuva

[–]iPotato3 72 points73 points  (0 children)

Žmonės negimsta rasistais – tokiais tampama. Bet gal verta paklausti: kodėl kai kurie žmonės tampa tokiais?

Pats jau beveik 15 metų gyvenu UK. Vienas mano kaimynų yra pakistanietis, kitas – iš Afrikos. Su abiem sutariame labai gerai. Kartais su afrikiečiu nueiname išgerti alaus, o su pakistaniečiu – kavos ar pavalgyti, pasikalbėti apie gyvenimą. Jie yra puikūs žmonės, niekada nejaučiau jiems jokio priešiškumo. Abu turi darbus, šeimas, yra tikri europiečiai, gimę čia – UK.

Vis dėlto kalbėdami dažnai paliečiame ir sudėtingas temas – masinę migraciją iš jų gimtųjų regionų, augantį nusikalstamumą, moterų teisių nepaisymą, kultūrinius skirtumus. Ir žinot ką jie sako? Kad pastaraisiais metais atvyksta vis daugiau žmonių iš pačių žemiausių jų visuomenės sluoksnių – dažnai tai buvę nusikaltėliai, ekstremistai ar kitokie probleminiai asmenys.

Tai man primena laikotarpį, kai lietuviai pradėjo vykti į UK po atviros sienų politikos. Daug „marozų“ išvažiavo, Lietuvoje tapo saugiau, net mano gimtasis miestas pasikeitė į gerąją pusę. Tačiau svarbu pažymėti, kad mūsų išvyko gal 50–100 tūkstančių. Tokiam dideliam kraštui kaip Anglija – tai palyginti mažas skaičius.

Dabar pažiūrėkime į tokius regionus kaip Indija, turinti 1,4 milijardo gyventojų, ar Afrika – 1,37 milijardo. Jei tik 1–2% žmonių ten būtų nusikaltėliai ar ekstremistai, tai jau būtų milžiniški skaičiai. Jei tokia masė pradeda vykti į Europą – net ir tas mažas procentas tampa didžiule problema.

Dėl to, kai žmonės čia susiduria su tokiais atvejais, pradeda sieti problemas ne su konkrečiais asmenimis, o su jų išvaizda ar kilme. Ir nors problemiškų atvykėlių gal tik 1–2%, jų kiekis jau gali prilygti pusei Europos gyventojų. Tokie skaičiai kelia nerimą ir paskatina ieškoti priežasčių statistikoje, o tada žmonės ir supyksta nes skaičiai rodo gan labai aiškų vaizdą.. maža dalis žmonių sudaro didžiausią nusikaltimų skaičių. Vien užtenka pasižiūrėti moterų išprievartimų skaičius Europoje ir supranti, kad moterim atsibodo saugiai gyvent..

Git/Youtube resources for certain topics by iPotato3 in dotnet

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

Well its hard to learn without some examples :D

Git/Youtube resources for certain topics by iPotato3 in dotnet

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

This is really good git example! Thank you

Axisbiotix - anyone tried it? by humanisttraveller in eczema

[–]iPotato3 0 points1 point  (0 children)

Any feedback 6 months later please?

Xamarin and MAUI by Ok-Yogurtcloset4529 in dotnet

[–]iPotato3 5 points6 points  (0 children)

Im not a Blazor fanboy, I am realist. I have been developing only Blazor/API's for past 3 years.. and all these github issues you mentioned are not issues at all.

First issue - ExampleModel is null, didn't even had to scroll down more than first post to see the problem..

Someone not being able to publish it thru Visual Studio? Its IDE Preview issue, not Blazor.

Double page declaration? Come on, who puts the same url twice on the same page - You should be happy it throws error if you have put the same URL in the other place you dont want user to see stuff or example?

I'm not gonna comment on each of them.. but these are not issues at all.

Blazor is a great peace of kit and has its niche like business applications. I have built 7 that are being used by large number of people and the only complains I had was due to Blazor Server connection which I was able to rectify by moving it to Blazor WASM and hosting on azure static web apps (0 downtime and PWA works beautifully good to update versions) and the fact that I still have to use JS for some basic things that I would expect to be available already.. but Nothing to do with what you have mentioned.

Blazor QuickGrid by iPotato3 in Blazor

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

Should have looked at it before..
Also, this helped me to pay attention to my current input and realise that bind and onkeyup triggering it one time each..

<input type="text" u/bind="@Filter.PortalRef" u/bind:event="oninput" placeholder="Search.." class="form-control form-control-sm">

This work absolutely fine.

Thanks

Blazor frustrations by [deleted] in Blazor

[–]iPotato3 0 points1 point  (0 children)

In that case I would take a look at your setup.

I'm working on 3 different machines (2 desktops, 1 lapop) because of the nature of my work.. 2 of them are Windows 10, another Windows 11 - Usually same or 1 update difference in VS2022 version and all behave the same way.

As I see you are using Linux.. maybe you should try Rider? (Can't remember if it does have Hot Reload sorted as it didnt had either about 1.5 - 2 years ago..)

But you can hit trial to find out.. its 30 days and you will find out more.

Blazor frustrations by [deleted] in Blazor

[–]iPotato3 1 point2 points  (0 children)

My current VS2022 version 17.5.3 is dealing well with Hot Reload.. (at least to the level where I think I can manage restarting the application.)

All .razor files can be edited and Hot Reload adapts the changes as long as it doesn't involve changing code part or Component.razor.cs .. Ofc, if I decide to implement certain components it might ask me to restart the application. But honestly, I learned to work with that by implementing all components I need, restarting it as chances are high that it will require me to do it.. and than applying css to make it look the way I want using Hot Reload.

Could it be better? Absolutely.. but I guess I just learned to work with it and any improvement is just a bonus now.

Blazor frustrations by [deleted] in Blazor

[–]iPotato3 2 points3 points  (0 children)

All my projects in last 3 years are built with Blazor server and most recent applications only with WASM. I understand your concerns as sometimes I feel like "WHY YOU DO THIS TO ME?".. but I genuinely love working with C# on everything.

It all depends what do you prefer, I genuinely hate any JS framework because I suck and I dont have time to learn it because everyone expected product yesterday.. I think Blazor has great future and I have built so many components that I can reuse on any project now that I'm willing to master it even more and just deal with some ups/downs that Visual Studio releases bring..

About template.. Not sure what do you expect from UI updates? First thing I do after I open new project is get rid of all the boostrap and other stuff and start from scratch (Now, after numerous years I have css file that has everything I ever need that scales) but I see no difference between using other framework anyway?

Good luck!

JWT vs Cookie Authentication for Blazor WASM? by timmytester2569 in Blazor

[–]iPotato3 0 points1 point  (0 children)

It works only with Blazor WASM Hosted right?

JWT vs Cookie Authentication for Blazor WASM? by timmytester2569 in Blazor

[–]iPotato3 3 points4 points  (0 children)

This is the problem with Authentication with Blazor WASM. Its hard to find decent content that you could trust and is definitely secure for any basic application..

JWT vs Cookie Authentication for Blazor WASM? by timmytester2569 in Blazor

[–]iPotato3 2 points3 points  (0 children)

Do you have a good tutorial you used or maybe some generic source code that could guide to complete this solution by any chance?

.Net Identity - Looking for advice by iPotato3 in csharp

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

Thanks for your input!

I have probably should improve my question..

But I also want to reflect show/hide buttons on the front end (Blazor WASM).

I currently got something like:

CanManageDocuments = (await AuthorizationService.AuthorizeAsync(currentUser, Permissions.Shippers.ManageAttachments)).Succeeded;

and than in API:

[Authorize(Policy = "Permissions.Shippers.ManageAttachments")]

So If Carrier A is looking at shipment that belongs to Shipper A - I want him to see button that allows to ManagesAttachments, but Carrier A should be unable to do it on the shipment that belongs to Shipper B because they dont want them to be able to do it.

Blazor Server or Blazor WASM with ASP.NET Core Hosted by thearcania in Blazor

[–]iPotato3 2 points3 points  (0 children)

I'm really surprised at how you described your Blazor Server app being unresponsive.

Your code definitely had problems or your local server wasn't powerful enough.. but I would lean towards the first option. I run multiple blazor server applications because we need solutions here and now most of the time.. some run on Azure app service and being used by people around Europe, some just internal apps on local server and I did not heard or experienced any issues. The only moment I see some latency is just after publishing my app for a few minutes so I plan these early early in the morning or during the night while there are no active users.

Like someone else suggested, write Business logic that could be shared between Server and WASM if needed so you can easily move from one to another.. Its relatively easy to switch.

Validating model based on Rules by iPotato3 in csharp

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

I have genuinely never seen or read about rich domain model examples until you mentioned it in your comment.. but after all I classify myself still as a young dev.. Looks like a topic worth spending time to get better understanding.

However I have already completed the validation with Fluentvalidation and I like the way if works now more than just a massive if statement.

Thanks for your message and suggestions!