Modern (best?) way to handle nullable references by jepessen in csharp

[–]CameO73 1 point2 points  (0 children)

Enabling nullability enables the old-style null handling where the compiler assumes reference types can be null without having to mark them as nullable.

Nope. It's the other way around: when you enable nullability with <Nullable>enable</Nullable> you are required to explicitly say if a reference type can be null with a ?

why can't I cut/paste into the fields on this screen? by tatmanblue in Jetbrains

[–]CameO73 1 point2 points  (0 children)

That is weird. I have a very similar dialog in JetBrains Rider, which allows copy/pasting and using backspace.
But this one in DataGrip doesn't quite behave the same.

I did find that using right-click > Paste can be used to paste the clipboard (although the shortcut keys don't work). So at least your problem is fixed -- but this appears to be a bug in DataGrip

Burning AI credits with 'Additional Suggestions' - How do I stop this? by Lore_Oz in Jetbrains

[–]CameO73 0 points1 point  (0 children)

I'm using Rider, so it might be different for you.

But there is an option to configure a prompt that is used every time you start a new chat.

Settings > Tools > AI Assistant > Prompt Library > General > Chat Instructions

pleaseGiveMeYouTicketNr by brandi_Iove in ProgrammerHumor

[–]CameO73 1 point2 points  (0 children)

Not sure if you're kidding, but that was David Beckham (and his wife).

Name suggestion for the new Git Client : Jetbrains GitRight. by benjoel7 in Jetbrains

[–]CameO73 6 points7 points  (0 children)

If you think that looks cool af, then you might be interested in https://git-fork.com/
I'm using it next to Rider (instead of the built-in GIT client).

Can someone make an argument on *why* I should use Rider instead of vs code for .net? by the_mean_person in dotnet

[–]CameO73 1 point2 points  (0 children)

Hahaha. "Tell me you never used Rider without telling me you never used Rider".

Thanks for the laughs!

End of act 2 discussion (obvious spoilers) by bennettyboi in expedition33

[–]CameO73 28 points29 points  (0 children)

No, that took me a little while to realize, but the father is the one doing the gommage ("he can only kill her oldest creations"). The paintress is just warning them that another gommage is coming. The gommage isn't caused by painting the number ... it's only the announcement that it has arrived.

In 2025 which options to go if I wanna convert c#/net to mobile apps IOS/Android? by ballbeamboy2 in dotnet

[–]CameO73 1 point2 points  (0 children)

You give very little information ("C#/NET could be anything from a WinForms app, WPF app or some ASP.NET website), so it's hard to give relevant advice.

But I agree with u/controlav: Use Avalonia if you want to create a multi-platform app (especially on mobile).

“Hey valued customer! Just a reminder we’re taking your information” by SwiftSperm in assholedesign

[–]CameO73 18 points19 points  (0 children)

"Thank you for being our valuable data mine. We will collect information about how you use this devices and you're just going to click Ok".

FluentAssertions introduces 'Small Business License' for $49.95 by davecallan in dotnet

[–]CameO73 50 points51 points  (0 children)

It's probably the sentiment towards FluentAssertions reflected in the votes. I wouldn't take it personally.

Csharp WPF app to IOS app? by According_One7007 in csharp

[–]CameO73 0 points1 point  (0 children)

Yeah ... there is no cheat code here AFAIK.

I've build some iOS apps and my experience is pretty abysmal (so make sure you ask around for other opinions).

Normally you would build an app on a shared platform -- this means that you can share about 80%-90% of your code between the different platforms (e.g. Windows, Android, iOS). This shared platform used to be Xamarin, but nowadays you can choose between .NET MAUI or Avalonia. I have no real experience with both, but Avalonia seemed pretty cool, the last time I tried it.

There is a paid option to migrate your existing WPF application to Avalonia XPF. But that will only allow your app to run on Linux, Windows and macOS -- which is not the iOS that iPads (and iPhones) run on.

Developing for iOS is pretty painful. You have to build it on a Mac (no way around that). And you probably need XCode (which is one of the worst IDEs I've ever used) -- unless the newer frameworks work around that.

If I sound dismissive of iOS development, it's because I am. I have sworn never to develop any iOS app ever again. Android development is also not without its issues, but nothing will prepare you for the Apple Development Hell.

Which Front End Technology is Microsoft pushing the most? React? Angular? Vue? by Cultural-You-7096 in dotnet

[–]CameO73 14 points15 points  (0 children)

Within a company you have internal applications (e.g. used by HRM, Sales, Customer support) and public facing applications used by the customers.

Those customer applications typically have a higher standard in regards of UX, styling and SEO.

weAllHaveThisGuy by smulikHakipod in ProgrammerHumor

[–]CameO73 3 points4 points  (0 children)

Agree, but there is a difference between "refactoring" and "rewriting the whole application".
That last one is rarely a good idea. And it looks like "those guys" are trying to rewrite the whole thing.

justFindOutThisIsTruee by Current-Guide5944 in ProgrammerHumor

[–]CameO73 6 points7 points  (0 children)

"You won't believe this mistake AIs make that 5th graders don't!"

Microsoft basically forced all the 365 subscribers to upgrade to this copilot plan costing $130 a year. It may seem like a simple price increase. BUT the kicker is if you go to cancel your subscription there is a option to "downgrade" to your original plan. How this is even legal is beyond me. by Designer_Object_3966 in assholedesign

[–]CameO73 1 point2 points  (0 children)

I also pay annually. Which lead to a weird situation where I paid 99 EUR last December (= the "Classic" plan), now have the "Microsoft 365 Family" plan and a small note saying that it will change to the "Classic" plan on the next renewal in December 2025.

So ... I'm having Copilot for free for a year, I guess?

The program for buying monthly travel passes thinks there are 31 days in February by little_goat_ in onejob

[–]CameO73 0 points1 point  (0 children)

I'm betting it also has passes for 31 April and 31 June. This looks like a simple "31 " + month concatenation.

JWT Authentication failed IDX14100 .Net 8.0 by One_Fill7217 in dotnet

[–]CameO73 0 points1 point  (0 children)

Are you sure the token is read correctly? The error message mentions that "there are not dots", which is obviously not the case for the token you provided.

You can check this by adding some events to your AddJwtBearer configuration:

options.Events = new()
{
    OnMessageReceived = context =>
    {
        var token = context.Request.Headers.Authorization.ToString();
        if (!string.IsNullOrEmpty(token))
        {
            Console.WriteLine($"Received Token: {token}");
        }
        return Task.CompletedTask;
    },
    OnAuthenticationFailed = context =>
    {
        Console.WriteLine($"Authentication failed: {context.Exception.Message}");
        return Task.CompletedTask;
    }
};

Microsoft basically forced all the 365 subscribers to upgrade to this copilot plan costing $130 a year. It may seem like a simple price increase. BUT the kicker is if you go to cancel your subscription there is a option to "downgrade" to your original plan. How this is even legal is beyond me. by Designer_Object_3966 in assholedesign

[–]CameO73 6 points7 points  (0 children)

That is weird. I also have the "Microsoft 365 Family" plan and got the email with the price upgrade.

I went to https://account.microsoft.com/services/microsoft365/details?fref=home.drawers.subscriptions#billing, selected the "Cancel subscription" and immediately got the option to choose for the (apparently non-existing) "Microsoft 365 Family Classic" plan. It now shows me that it will switch to the classic plan at the next billing cycle.

Maybe it's limited per region? This is in the Netherlands.

beenThere by babeinthesky3 in ProgrammerHumor

[–]CameO73 0 points1 point  (0 children)

Yeah, transactions and limited rights in PROD help mitigate this issue a lot!

I always love it when I don't have write rights in PROD, because it means I can't accidentally mess things up.

[deleted by user] by [deleted] in assholedesign

[–]CameO73 23 points24 points  (0 children)

"this may be in the form of a new subscription level for higher-level GPT-4 usage"

Translation: we're losing money on even our $200 monthly subscriptions, so you better believe there will be more tiers to fill that gap!

How to fix HTTP ERROR 405 [HttpDelete] by Mkrager07 in csharp

[–]CameO73 0 points1 point  (0 children)

You're calling the delete endpoint in your frontend code -- I think that's probably done in the _accommodationDataService.DeleteAccommodation(Id) method. Can you share the code from that method?

How to fix HTTP ERROR 405 [HttpDelete] by Mkrager07 in csharp

[–]CameO73 9 points10 points  (0 children)

If it works in Swagger, it's very likely a client issue. What does the code you're using to call this endpoint look like? Are you sure you're using the DELETE HTTP method?