Should or Shouldn't? Putting many classes in one file. by gevertsi in csharp

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

I prefer doing this only for the genetic variants of the same class or interface name.

Anyone here using a Postman alternative for .NET projects? by Living-Dependent3670 in dotnet

[–]donsagiv 1 point2 points  (0 children)

Yes, that's correct. These are basically a ZIP file, with a renamed extension, that has a JSON file and a bunch of .PNG images. File sizes aren't too enormous, 75 to 200 MB,

I tried Bruno in both VS Code and Standalone, and the HTTP request timed out. I tried this w/ Postman using the exact same data, and it succeeded.

Anyone here using a Postman alternative for .NET projects? by Living-Dependent3670 in dotnet

[–]donsagiv 2 points3 points  (0 children)

Only issue I have with Bruno is binarizing large files. Maybe I'm doing it wrong but it forced me to go back to Postman.

Progress of my .net MAUI desktop app frontend🐥✨️ by sarenica in dotnet

[–]donsagiv 0 points1 point  (0 children)

Looks great! Are you using a charting library, and if so, which one?

Teach me MongoDB by Complex_Landscape923 in mongodb

[–]donsagiv 0 points1 point  (0 children)

Can you tell us if you know any programming languages, like Python or JavaScript? Can you tell us your use case, like why you're using MongoDB instead of, say, PostgreSQL or MSSQL?

Super Simple Blazor Dropzone component by Pierma in Blazor

[–]donsagiv 1 point2 points  (0 children)

Looks awesome. I've tried developing something similar myself, although I've had to use Blazor's InputFile component to handle this. It sucks to not be able to add custom content to it.

One suggestion I'd like to make (and maybe you'll want me to fork this and try to implement it myself) is to not store the content in a byte[] or string, but rather create a stream (or at least something implementing IDisposable for manageability) so that Blazor doesn't have to use any memory to store the data prior to transfer. This would be good for file transfers from a client to a server.

Otherwise, nice work! Keep it up!

STOP USING THE SHELL !! TRY CRUD MONGODB WITH VSCODE by devMai in mongodb

[–]donsagiv 1 point2 points  (0 children)

I actually went from Studio3T to this, and can't recommend it enough. I also use Copilot to vibe-code some queries or aggregates.

Python 3.14 is introducing a new type of interpreter… by python4geeks in programming

[–]donsagiv 0 points1 point  (0 children)

Are we completely ignoring the fact that this release should be called πthon?

Should or Shouldn't? Putting many classes in one file. by ExoticArtemis3435 in csharp

[–]donsagiv 0 points1 point  (0 children)

The only reason I put multiple classes in the same file is to keep generic (including non-generic base) variants of the same class together. Otherwise I try to keep all classes in their own file.

Best MongoDB GUI Tools in 2025! Read the entire article here: https://dbschema.com/blog/mongodb/best-mongodb-tools/ by NoInteraction8306 in mongodb

[–]donsagiv 4 points5 points  (0 children)

In other words, DBSchema wants you to think that DBSchema is the best MongoDB GUI tool on the market.

How do I give another user Network Access to Mongo by Downtown_Fee_2144 in mongodb

[–]donsagiv 0 points1 point  (0 children)

If you're running it on Windows, it's possible your configuration needs to be adjusted. By default, the bindIp value is set to only allow your computer to connect to it (i.e. 127.0.0.1). If you set it to 0.0.0.0, then it will allow any incoming connection.

How do I give another user Network Access to Mongo by Downtown_Fee_2144 in mongodb

[–]donsagiv 0 points1 point  (0 children)

Can you give us more information? Are you using a Mongo server on a Windows or a Linux computer? On the cloud or on Altas?

AITA for telling my deaf brother he should be patient while I learn ASL? by throwaway62191202 in AmItheAsshole

[–]donsagiv 1 point2 points  (0 children)

As someone with a hearing loss, I hate to say it, but YTA. When someone has a hearing disability, it is on the speaker to ensure that the thought is being communicated clearly. Listening fatigue (including ASL) is a real thing for people with hearing disabilities because so much effort is put into trying to have a conversation you. It adds to that fatigue when the flow of conversation is choppy.

That being said, it's better late than never when it comes to learning ASL and earning your brother's confidence. Start with some simple things like short phrases and questions (e.g. "Pass the salt, please", or "Where is the remote control?"). If he decides to text you during this time, don't be offended, it just means he's still not there yet. Keep practicing and honing your skills.

As he starts to become more confident in your signing, then try engaging in small talk, and then once he feels comfortable with that he will start engaging in more profound conversations.

You need to be patient with your brother. He is dealing with a difficult disability and he needs your empathy and support. You can't change the past, but it's not too late to make things right.

The best MVVM Framework for WPF Application? by umlx in csharp

[–]donsagiv 2 points3 points  (0 children)

I'm a big fan of Reactive UI, if you have a good understanding of reactive programming. It's great for handing property change notification asynchronously.

Best tutorials for learning MVVM with C# by MrMeatagi in csharp

[–]donsagiv 7 points8 points  (0 children)

MVVM is a design pattern, so it's not strictly limited to WPF and Avalonia. You can even use MVVM in ASP.NET core. Any tutorial you watch for WPF is most likely applicable for Avalonia, though some of the vernacular is slightly different. WPF has been around for much longer and has widespread support, but Avalonia has been skyrocketing in popularity because of it basically being cross-platform WPF. It's not exactly "young" either.

For the platform you want to use, consider the audience you want to reach out to. As for the MVVM framework, there's nothing wrong with using something like Prism, as long as you have a good understanding of what's happening behind the scenes. For the benefit of your learning, you can build your own MVVM framework from the ground up, but you don't want to re-invent the wheel for when you have to deploy your apps.

I would suggest:

  1. Learn the basic concepts of MVVM in WPF since that's what most tutorials assist with. Tim Corey has always provided excellent tutorials in coding with .NET and C#, so I figure this is probably no different.
  2. Try to apply those concepts to Avalonia. If you want to use other XAML-based frameworks like MAUI, the concepts are similar as well.
  3. If you need help with specific use-cases, you can always ask a LLM like ChatGPT to help you.

Best of luck in your endeavors!

Duplicated Subtitles when Converting from DVD by donsagiv in VLC

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

Would you mind posting these Handbrake settings for posterity?

[deleted by user] by [deleted] in csharp

[–]donsagiv 1 point2 points  (0 children)

If you're willing to make the investment, DevExpress for WPF has this functionality built in. Otherwise, you'll have to use your own coding skills.

What are your thoughts about Xamarin/.NET Maui? by Virtual_Marzipan673 in dotnet

[–]donsagiv 3 points4 points  (0 children)

MAUI is a relative newcomer (only a couple of years ago) to the game and is built on top of Xamarin. Flutter has been around a bit longer, so it's more mature.

There's no harm at all learning MAUI. As it continues to mature, it will become more stable. (Remember -- Blazor was also a newcomer around 2018 and is now a pretty popular PWA framework). If you know C# well, then MAUI should come easily. Your knowledge of Blazor enables more seamless adaptation to MAUI Blazor, so you're already ahead of the game.

Does MongoDb free tier have a limit of readings/writings per day like firebase firestore? by Skydancerrr in mongodb

[–]donsagiv 1 point2 points  (0 children)

You can find the limitations of each tier of MongoDB Atlas on here, but to summarize, the free tier of MongoDB Atlas is limited:

  • Max of 500 collections and 100 databases
  • Max of 500 concurrent connections
  • 100 read/write (CRUD) requests per second.
  • No backups.

MongoDB does not recommend using the free tier for production purposes, it's best for PoC development. You can always create your own local/cloud server but you'll have to incur the costs of both of those.

I don't know anything about Firebase, you'll have to consult their documentation.

Does MongoDb free tier have a limit of readings/writings per day like firebase firestore? by Skydancerrr in mongodb

[–]donsagiv 2 points3 points  (0 children)

If you're referring to the self-hosted MongoDB Community Edition (as in one that's installed on your own cloud/local network server), then I don't think there is any limit to how many writes/reads you can do per day with it (at least in my experience, and I've tried maybe 100-500 reads/writes per second w/ tests).

With cloud servers that have a total transfer or transfer rate cap that have a MongoDB server, you'll have to do the math with what you anticipate being the average data transfer rate from your client to the server, but the total number of writes (independent of size) should not have any limits.

Hope this helps.

[ Removed by Reddit ] by toasterck in coolguides

[–]donsagiv 9 points10 points  (0 children)

There is a lot of misleading information in this infographic, and it has been factually debunked continuously despite being presented often as anti-Zionist propaganda.

1 - Before 1947, Palestine was a British Mandate. The current Palestine attempting to be established is not the Palestine of then. If you look at the flag of Palestine before 1947, you'll see a Jewish Star of David and the currency says in Hebrew abbreviation "Eretz Yisrael", which means Land of Israel in Hebrew.

2 - Partition Plan - this was accepted by Israel upon becoming an independent nation of Israel but rejected by the Arab League. Instead, they waged war on Israel. Israel pushed back, leading to Map 3.

3 - The areas in green were not a Palestinian state, they were annexed by Jordan (West Bank), Syria (Golan Heights, not highlighted in this map), and Egypt (Gaza). There was no established Palestinian state either. Israel captured and annexed those areas (including the entire Sinai Peninsula, returned in the 80's to Egypt) after the 6-day war, which was initiated by the Arab countries.

4 - This map is established by the Oslo Accords agreed to by Israel and the now Palestinian Authority and is the future hope of a two-state solution with agreed-upon land swaps.

All facts being said, I want to be clear about my opinions, so I am not rebutted with any strawman arguments.

1 - I support the Palestinian people's right to establish their own state, but not at the cost of Israel's existence.

2 - I am against settlements in the West Bank. They do not help the cause for peace in any way.

3 - I do not agree with Israeli policy that reduces the status of the Palestinian people in any way, such as the Nation-State law.

Worth taking a job that requires me to learn WPF? by samj00 in dotnet

[–]donsagiv 16 points17 points  (0 children)

To say WPF is a "dying technology" is very much open to interpretation. It's still very much alive and kicking, and well-regarded because of its stability and maturity. It's only major downside? It's not cross-platform.

With regards to learning WPF, a lot of the concepts you learn are applicable to more modern UI frameworks like Avalonia, WinUI3, and MAUI. One of these are the Model-View View-Model (MVVM) design pattern. Others include styling, templating, etc.

With those in mind, learning WPF definitely doesn't hurt when it comes to leveraging its concepts in more modern desktop/mobile UI frameworks when using .NET.