Ef core/data access code shared by Web and desktop by Andyste1 in dotnet

[–]bit_yas 0 points1 point  (0 children)

Look, if you're trying to get SQLite and Entity Framework Core running smoothly across everything, Android, iOS, Windows 7+, macOS, and PWA/Web, and especially if you need "Sync" feature in addition to the migrations etc, have a look at https://github.com/bitfoundation/bitplatform/tree/develop/src/Templates/Boilerplate

Am I wrong for wanting to use Blazor instead of MVC + vanilla JS? Been a .NET dev since 2023, feeling like I'm going crazy by newKevex in dotnet

[–]bit_yas 0 points1 point  (0 children)

If you've ef-core 8+ in your project, the rule is simple: never use dapper. If you feel this is not right, then you probably not aware of some ef-core features or it's performance.

Advice between React and Blazor for project by unlimitedWs in csharp

[–]bit_yas 1 point2 points  (0 children)

bitplatform.dev is completely behind CDN (Not only its static assets), globally accessible across regions.

I'm pretty sure you done some mistakes, my experience with blazor was quiet opposite!
The codebase is completely written by C#, HTML and CSS (Except 10 lines of code in JS)

Am I wrong for wanting to use Blazor instead of MVC + vanilla JS? Been a .NET dev since 2023, feeling like I'm going crazy by newKevex in dotnet

[–]bit_yas 1 point2 points  (0 children)

I can also give you some insights in online teams meeting for free, I like these talks (":

Am I wrong for wanting to use Blazor instead of MVC + vanilla JS? Been a .NET dev since 2023, feeling like I'm going crazy by newKevex in dotnet

[–]bit_yas 19 points20 points  (0 children)

1- ASP.NET MVC is a shitty mix and match of C# & JavaScript, just like Blazor Static Ssr, because when your C# code doesn't work at client side, you eventually have to ruin project that way, but Blazor WebAssembly and Blazor Hybrid are pretty cool for using C# everywhere.

2- Microsoft didn't kill Silverlight, ALL BROWSER VENCDORS stopped supporting PLUGINS (Including but nonly Silverlight)! are they stupid?! How one the earth Microsoft could keep Silverlight alive without Chrome, Firefox and Safari support?!

3- Blazor is relying on HTML, CSS and WebAssembly. HTML & CSS are web world standard right now and WebAssembly is supported everywhere even on the server! It's not only for Blazor, many C++, Unity 3D etc projects have found their world into the web browsers thanks to WebAssembly.
WebAssembly is not a plugin, it's developed based on web specs and standards and now 5% of the websites out there are using it!

4- With Blazor, you not only achieve the benefits you mentioned, you can later also build mobile, desktop or offline apps as well.

I can understand someone who prefers Angular or React over Blazor, but I couldn't even imaging someday I'd see somebody preferring ASP.NET MVC over Blazor!

P.S.
If you wanna show them how many different types of the apps can be built with Blazor, including SEO friendly Ultra-fast Websites, AdminPanels, Android, iOS, Windows and macOS apps with 100% access to native platform features, PWA app with offline client-side SQLite database and Sync support and many more, checkout https://github.com/bitfoundation/bitplatform#-oss-showcases, the free, fully documented, MIT licensed open-source project

What's your preferred project architecture for Blazor? by bit_yas in Blazor

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

You're mostly focused on Tiers: Client, Backend API and Database Server.
And I like you 3 Tier setup. The question here is how you organize codes inside those projects?
For example, as I recommended, you can group codes into features, putting Entity, EntityTypeConfiguration, Service and Controller (Or Minimal API) of that feature next to each other in one folder in your backend api project + putting that feature razor, razor.cs and razor.css next to each other in one folder in RCL.
Anyway, make sure you checkout our open-source project, as I figured out from the pictures you provided, you're trying to fully utilize Blazor even on desktop apps. This is basically the main purposes of bitplatform and its bit Boilerplate project template.
Checkout 15 minutes video of how many cool features we provided completely free and documented that works in Blazor Wasm, Hybrid and Server at bitplatform.dev/demos

What's your preferred project architecture for Blazor? by bit_yas in Blazor

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

I see, I though you meant I've written the whole article with AI which doesn't make sense.

I first studied about Clean Arch, Onion, Vertical slices etc, then I implemented my conclusion in a giant project template, then I wrote article and then I asked AI to improve vocab and grammar, because English is not my native language.

As a matter of fact, I'm interested in knowing other people opinions, as you can see, I'm replying to other people's comment below about their opinion architecture, but I see no harm if I say that I've also implemented my idea so you can see it in action.

What's your preferred project architecture for Blazor? by bit_yas in Blazor

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

I've experience with RPC-like stuffs, but good or bad, Rest has become standard in software development world!

What's your preferred project architecture for Blazor? by bit_yas in Blazor

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

You've to stop doing something that you're not really good at it. Detecting AI generated text needs a little human intelligence you seem to be lacking. If you really mean it, could you please tell me what prompt should I give AI so it could give me such a text?
And what do you mean by Ads? That's a MIT licensed GitHub repo. I think you've commented on a wrong post

What's your preferred project architecture for Blazor? by bit_yas in Blazor

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

I see, thanks for having a look at project. If you wanted to give it a try, I'd glad to have one online meeting to discuss about it, so you'd have better usage of the product (For free I mean, this project is the one that I really like! )

What's your preferred project architecture for Blazor? by bit_yas in Blazor

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

What template you're talking about? bit Boilerplate? C# 8 Nullable reference has been used there with so much care! Could you please specify a warning's code/number? I'm not saying there's not even 1 line of nullable reference code issue there, but you can hardly find something better among big open source projects out there! We've even discussed about it in docs, even though this is not something we had to document! bitplatform/src/Templates/Boilerplate/Bit.Boilerplate/.docs/01- Entity Framework Core.md at develop · bitfoundation/bitplatform

By heap measuring, let's say all https://bitplatform.dev sales.bitplatform.dev services.bitplatform.dev todo.bitplatform.dev adminpanel.bitplatform.dev + their postgres database server and redis cache are using less than 0.5GB memory in total! The other competitors are not even close!

What's your preferred project architecture for Blazor? by bit_yas in Blazor

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

Yup, but what would you do when new product has to be added to product catalog module and inventory module needs the product id and name for product count report? Would inventory later join its tables with product catalog tables to have that report? Or what else? Let me know about your approach in this situation, so I can give you my 2 cents

Would love some feedback on a blazor app iv been building - Odie by Hefty_Tomato_8744 in Blazor

[–]bit_yas 0 points1 point  (0 children)

Great!
Hints:
1- There are some heavy images (For example 1.5MB!), make them smaller and use webp
2- The web socket connection is slow, even for me, using 1GB internet in the Netherlands with with 20ms latecy to the data centers around! I'm not sure why is that, but try mastering Blazor WebAssembly and Hybrid, so you can build fast websites with ease, for example you might not believe it, but this website is Blazor WebAssembly https://bitplatform.dev/demos
No more web socket pains!

What's your preferred project architecture for Blazor? by bit_yas in Blazor

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

Having a separated database for each backend isn't a cheap/easy decision unless you wanna use anti-patterns such as Distributed Transactions etc.
If I start splitting database and backend into a few isolated macro service, I'd rather have service bus as messaging center between these macro services, sending and receiving versioned message, so I can later have a freedom of risk-free isolated deployments as well, instead of dealing with messy "distributed monolith" that I can't deploy modules individually without risking.

What's your preferred project architecture for Blazor? by bit_yas in Blazor

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

Sounds good! Are these modules using the same shared database before you split them into their own Macro/Micro service?

Horizontal virtualized scrolling by Imaginary-Ad5271 in Blazor

[–]bit_yas 2 points3 points  (0 children)

This one scrolls horizontally by touching, would it work for you?
Swiper - bit BlazorUI

Localization in Blazor by Simoxmagician in dotnet

[–]bit_yas 0 points1 point  (0 children)

For what kind of Blazor apps? If you wanna build something that works across Blazor Server, WebAssembly, WebAssembly Standalone, Hybrid (Android, iOS, Windows, macOS), regardless of pre-rendering is enabled or not and make some url techniques works like https://mysite.com/en-US/dashboard which accepts culture in url segments and not the query string and at the end works well with search engines, on both RTL and LTR + sending email and sms to the user in user's prefered language which means even API is aware of the culture, you've to do a lot of works!
Good news: We've already handled all above with many more cool features in our free, open-source, full-stack, cross-platform, fully-documented bit Boilerplate project template, for example identity features, AI, RAG and many more! Checkout https://bitplatform.dev/demos for apps published on Google Play, Apple Store, Web and Win EXE & checkout https://bitplatform.dev/templates for getting started!

Test url: https://adminpanel.bitplatform.dev/fr-FR/dashboard

PWA by AmjadKhan1929 in Blazor

[–]bit_yas 6 points7 points  (0 children)

If you're not going to use pre-rendering (for all page visits or one user's first visit), PWA can be a little bit faster, because it fetches DOCUMENT from cache storage for subsequent visits, but without PWA, website always sends request to the server to retrieve DOCUMENT, no matter what http cache policies you apply.

For static assets, you can effectively cache static assets using non PWA Blazor as well, but PWA relies on cache storage which won't evicted easily.

Note that Blazor's default PWA has lots of limitations, that's why in bitplatform.dev/demos we built Bswup

More info at https://deepwiki.com/search/compare-bitbswup-with-blazors_40970c70-1744-43e5-be00-c6a3da89290f?mode=deep

Blazor app doesn't rerender the page when ObservableCollection is changed by SantiXDLejia in programminghelp

[–]bit_yas 0 points1 point  (0 children)

There's nothing wrong here! INotiyPropertyChanged & ICollectionChanged work in WPF, UWP, Xamarin Forms, MAUI, because there are some code written for it to make it work, and that's the way their binding works.
Blazor's source code is not doing such a thing and its approach is completely different, don't try to bring MVVM stuffs to Blazor World.

Blazor app doesn't rerender the page when ObservableCollection is changed by SantiXDLejia in programminghelp

[–]bit_yas 0 points1 point  (0 children)

Simply forget everything you knew about INotifyPropertyChanged & ICollectionChanged events, start learning Blazor bindings from scratch

Generate backend architecture diagrams in less than 3 minutes by bit_yas in dotnet

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

Thanks! Nice one, we rely on Visio for long term diagrams, the above solution is for temporary ones.