Readit News logoReadit News
tekdude commented on Samsung now owns Denon, Bowers and Wilkins, Marantz, Polk, and more audio brands   theverge.com/news/784390/... · Posted by u/thelastgallon
yread · 3 months ago
Same with the headphones. I got a WH-1000xm3 that all reviews praise for sound quality and it sounds like complete shit, muffled, over emphasizing bass, no clarity. You're supposed to "fix" it using EQ. And you can't even adjust eq if you want to use the bettter audio codecs. If I paid the original list price for this i would be furious
tekdude · 3 months ago
One thing you can try with headphones is changing the earpads: specifically the shape, but maybe also the material. I have Shure SRH840A headphones, and out-of-the-box I was NOT happy with the sound. Someone suggested trying different aftermarket earpads, and I found a pair of "angled" pads that changed the sound quality to exactly what I wanted. I was surprised how dramatic the effect was. The pads are huge and look ridiculous, but I only use these headphones at home so it's fine.
tekdude commented on What's New in C# 14: Null-Conditional Assignments   blog.ivankahl.com/csharp-... · Posted by u/ivankahl
tekdude · 3 months ago
I wonder if this supports a cleaner way to throw when the target property's parent object is null? With null-coalescing assignment, you can do the following which will throw when 'x' is null:

  string x = null;
  string y = x ?? throw new ArgumentException("x is null");
It would be interesting to try something like:

  customer?.Name = newName ?? throw new InvalidOperationException("customer is null");
But I don't know how the language would be able to determine which potential null it was throwing for: 'customer' could be null, but so could 'newName'. I guess... maybe you could do:

  (customer ?? throw new InvalidOperationException("customer is null")).Name = newName ?? throw new ArgumentException("newName is null");
But the language already supports that, and it's extremely ugly...

tekdude commented on Microsoft is open sourcing Windows 11's UI framework   neowin.net/news/microsoft... · Posted by u/bundie
S04dKHzrKT · 5 months ago
Your second paragraph sounds like you're describing Avalonia. Avalonia has AOT, compile-time binding errors and cross-platform support. Maybe there have been some updates since you last tried it? I'm not very familiar with Avalonia or WPF though so maybe there's more to it than that.

[0]: https://docs.avaloniaui.net/docs/basics/data/data-binding/co...

[1]: https://github.com/kekekeks/XamlX

tekdude · 5 months ago
Thanks, yes I'll probably have to give it another try some day. I might be confusing Avalonia and Uno, but I think I first attempted it a couple years ago, and then again last year. I remember spending a whole weekend trying to get it running but wasn't having success. Also, I was a bit turned off by how heavy the development environment was. I had to download and install a tool, then that installed more build tools and packages, and then there was also a "recommended" VS Code extension. With WPF, I've gotten used to writing XAML without a designer, so I can get by with just VSCode, the C# extension, and the .NET CLI.
tekdude commented on Microsoft is open sourcing Windows 11's UI framework   neowin.net/news/microsoft... · Posted by u/bundie
tekdude · 5 months ago
I kind of wish Microsoft would just continue development of WPF. I've used it for years for various projects, and there is a learning curve but I've since enjoyed working with it. XAML, data bindings, ViewModels... all of it I actually like. But, WPF needs a few improvements to really make it perfect. I tried several of Microsoft's newer frameworks and the open source ones (Avalonia, Uno), but I either couldn't get the sample projects to even build successfully on my machine, or I never got comfortable with development workflow, and went back to what I know.

My big idea to fix WPF is to rebuild the data binding system to use the .NET compile-time code generation feature instead of run-time reflection. I think that would solve a lot of problems. For one, projects could do an actual AOT build of their applications (right now, you either need to rely on an installed .NET runtime or "publish" the project with a lot of .NET libraries included for self-extract, bloating the final file size). Code generation would probably improve performance quite a bit too, maybe open up the possibility to compile for cross-platform, introduce type safety for XAML bindings (rather than getting vague runtime binding errors), remove the need for so much class scaffolding, etc... I've thought about starting an open source project to do it myself, but seems like a pretty big task and I would essentially be starting a project to help with my other project which I already don't have enough time to work on...

tekdude commented on .NET 10 Preview 6 brings JIT improvements, one-shot tool execution   infoworld.com/article/402... · Posted by u/breve
tekdude · 5 months ago
Might be worth viewing the full list of changes in the blog post that the article links to:

https://devblogs.microsoft.com/dotnet/dotnet-10-preview-6/

u/tekdude

KarmaCake day1415March 2, 2020View Original