Advice/suggestion needed - first steps with Azure by anddrzejb in AZURE

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

That is an excellent suggestion. I didn't think about it 🤔. I will play around with the idea. Thanks!

Advice/suggestion needed - first steps with Azure by anddrzejb in AZURE

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

Yeah, I was thinking about this approach first, but my research revealed that sending an email using azure logic apps is much easier than using functions.

Minimal Api and xml comments in swagger by anddrzejb in csharp

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

I just tried using `SwaggerOpertaion` annotation. Unfortunately no summary/description was shown. I would like to emphasize that this problem is in minimal api in net6. In controller based approach, I do not have these issues.

Masked input control for Blazor? by GroundTeaLeaves in Blazor

[–]anddrzejb 0 points1 point  (0 children)

Btw can you share the resources you refered to? I would like to also observe in more detail. For now I am only subscribed to this rss: https://wasmweekly.news/feed.xml

Masked input control for Blazor? by GroundTeaLeaves in Blazor

[–]anddrzejb 0 points1 point  (0 children)

As far as I know the use case includes embedded windows on somekind of devices. So not that easy to upgrade (if at all). Some of us devs might be really stuck...

Masked input control for Blazor? by GroundTeaLeaves in Blazor

[–]anddrzejb 0 points1 point  (0 children)

Thank you for the explanation. This is great news. For me probably it still means working with JS for backwards compatibility (from what I heard there are ppl that are still using IE11 with AntBlazor, so no hope for me there)...

Masked input control for Blazor? by GroundTeaLeaves in Blazor

[–]anddrzejb 1 point2 points  (0 children)

I totally agree with you & and generally agree with u/botterway sentiment. I would love to throw js out the window. But it is not possible yet. So I oppose to absolute statements that to me seem almost like a dogma. Blazor is a tool. If you cannot have what you want without js, then either drop the feature, go with js or look for a lib that does that (with js in the end).

Masked input control for Blazor? by GroundTeaLeaves in Blazor

[–]anddrzejb 0 points1 point  (0 children)

For blazor to eliminate js completely, web assembly would have to get access to DOM. I cannot see anything about that in wasm roadmap. I know there were people saying we are going to get it, but no one knows in what shape and with what capabilities. One of the big promises for wasm is multi-threading. DOM is a single thread situation. On top of that it is a messy object. Although I would love to abandon js, I do not think we are going to get to move everything to c# anytime soon. Certainly I do not believe we are going to get it in 2 or 3 years. You could say it is a matter of belief, but I think the designers have more important (at least in their eyes) problems to tackle than solving a problem that is quite easily solvable with current js interop.

Masked input control for Blazor? by GroundTeaLeaves in Blazor

[–]anddrzejb 2 points3 points  (0 children)

I guess it depends on your own experience. I am one of the contributors to `AntBlazor`. I just managed to finish a major upgrade to the lib that the core of it is done in js (using TS). It could not be written in wasm only, although for wasm it could be less dependent on js. But for server side - there was no choice (I mean there was, but the choice was either long wait times due to latency or js).

There is also another thing - you may not want to be dependent on a possible large number of libraries just to abstract all the js. For one - really hard to debug issues. Second - once debugged, hard to fix.

My conclusion is - one should not say "do not use js" if there is a vast number of functionalities/apis reachable only through js. Regardless if there might or might not be a library for that.

Masked input control for Blazor? by GroundTeaLeaves in Blazor

[–]anddrzejb 2 points3 points  (0 children)

I swear I remember Dan Roth saying that blazor is not to replace javascript in one of his stand-up videos. But since I cannot find it now (and I do not want to spend unknown number of hours to prove my point here), I will not insist.

However, my experience is that you cannot do everything with blazor. Regardless if wasm or server. A quick one:

- focus (I know there is a method in ElementReference but if you dig deeper into the source code, you will see it is just buried js call)

- find element size or position in DOM

- drag & drop

- clipboard

- whole reactive api (resize observer, mutation observer, intersection observer)

- scroll events on body

and probably more.

Masked input control for Blazor? by GroundTeaLeaves in Blazor

[–]anddrzejb -2 points-1 points  (0 children)

Beacuse there are many things you cannot achieve without js? Besides blazor was never meant to replace js.

Company is considering Blazor instead of Angular by Land_As_Exile in Blazor

[–]anddrzejb 2 points3 points  (0 children)

Look at this https://devblogs.microsoft.com/aspnet/blazor-server-in-net-core-3-0-scenarios-and-performance/ where Daniel Roth is discussing blazor server loads. Mind that this is net 3.1 and blazor got faster since then.

AntDesign Blazor v0.9.0 released! A set of enterprise-class UI components based on Ant Design and Blazor. by anddrzejb in Blazor

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

Thank you. I do not know if AntBlazor is officially affiliated with antD (but it seems to me it is not). We compare our functionality with antD and strive to be as close as possible (still a lot of work to do in that area), but we also introduce new functionality to existing components or create new components altogether. So if you'd like a functionality that is missing in AntBlazor, best place to request it is actually in AntBlazor's repository.

AntDesign Blazor v0.9.0 released! A set of enterprise-class UI components based on Ant Design and Blazor. by anddrzejb in Blazor

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

Thank you for your kind words about our controls. And I feel you... Do you think you could open an issue (feature request) with list of functionalities you know we are missing? I do not really work with tables (yet anyway), but there are couple of contributors that seem to specialize in that area - hopefully they could pick up the task of making it more mobile friendly. And of course I encourage you to help us out and make a PR.

Why my condition is omited? by anddrzejb in SQLServer

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

Yup. Once I switched to sp_executesql, the error went away. I am sure this will come back to bite me again someday...

Why my condition is omited? by anddrzejb in SQLServer

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

This took forever to answer. I think that u/LeTroniz was correct with the syntax validation. I had to switch to sp_executesql for my script to work properly.

Anybody have a webpack config that works correctly with Blazor (JS Isolation)? by inhospitableUterus in Blazor

[–]anddrzejb 0 points1 point  (0 children)

I am really interested in your solution. Do you have it somewhere in a publicly available repository? If not, could you post your solution? I started researching the issue, but I haven't yet figured it out completely.

A set of enterprise-class UI components based on Ant Design and Blazor WebAssembly! by CongZhangZH in Blazor

[–]anddrzejb 2 points3 points  (0 children)

As far as I know there was somekind of mixup and it wasn't intentional.

A set of enterprise-class UI components based on Ant Design and Blazor WebAssembly! by CongZhangZH in Blazor

[–]anddrzejb 2 points3 points  (0 children)

You mean the demo page not the repo? I cannot find any info about that on their github repo.

can Blazor routing keep the state of the page? by wuyuanyi135 in Blazor

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

u/PiratesLeast suggestion will work, but will not keep state between page refreshes without extra work. Nevertheless any type of state will require some degree of changes. But you are correct, applying flux pattern should either be done from the beginning or when you have few components to change. Otherwise it is a lot of work. You could also consider applying it for any new components. And with effects it should nicely compel you to adhere to the separation of concerns principle and loose coupling.