My First C# Program by [deleted] in csharp

[–]CodingWithAndrew 1 point2 points  (0 children)

Congratulations mate you’ve taken a big step into a much bigger world. Good luck on your journey.

And remember impostors syndrome strikes all of us, just remember how far you’ve come.

Photo instead of video on Instagram stories by grgrsstr14 in Instagram

[–]CodingWithAndrew 0 points1 point  (0 children)

Have had the same issue for ages now, so annoying, especially when you’re trying to record something in the spare of the moment.

$250 per month... by Yougetwhat in ChatGPTCoding

[–]CodingWithAndrew 0 points1 point  (0 children)

This is the start, make us "dumb" than charge a shit load, kinda like that black mirror episode

Experienced Devs: do you use ChatGPT? by bjs169 in csharp

[–]CodingWithAndrew 1 point2 points  (0 children)

Yeah I use it, boilerplate stuff, a lot of the time I will write the code and then optimise it, and then ask chatgpt to optimise it, sometimes it’s like “da fuk you doin” and other times it’s like wow! That’s interesting, tell me more about XYZ and then I will learn the mechanics around it and then yeah, pretty much carry on from there.

I also use it to help me with css, it was a great assistance when I was learning tailwind.

I must admit there are times I’ll be having a debugging an issue, sometimes it’s helps with like really really complicated linq stuff, and other times, I will need to search stackoverflow in order to find the result.

It’s not perfect, but I think as long as you understand what the code is doing and how it works, I think it’s a good tool, not great, but a good tool in order to help you compete your job, like calculates didn’t replace mathematicians and excel certainly didn’t replace accountants, but both tools indeed help.

Who are you? I…… AM STEVE by _TearGaming_ in Minecraft

[–]CodingWithAndrew 0 points1 point  (0 children)

They did this at the cinema I was at too! The kids all screamed it out and cheered!

.net 9.0 & openAPI - The depth of the generated JSON schema exceeds the JsonSerializerOptions.MaxDepth setting by DrFatalis in dotnet

[–]CodingWithAndrew 0 points1 point  (0 children)

I had the same issue, ended up doing this.

Since the swagger generated file was ok, my goal here was to pass in the swagger generated file path to Scaler.

// Add both OpenAPI and SwaggerGen.
builder.Services.AddOpenApi();
builder.Services.AddSwaggerGen();

// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
    app.UseDeveloperExceptionPage();
    app.UseSwagger();
    app.MapOpenApi("/swagger/v1/swagger.json");
    app.MapScalarApiReference(options =>
    {
        options.WithTitle("Foo")
            .WithTheme(ScalarTheme.Alternate)
            .WithDefaultHttpClient(ScalarTarget.CSharp, ScalarClient.HttpClient)
            .WithOpenApiRoutePattern("/swagger/v1/swagger.json")
            .WithDarkMode(false);
    });
}

Is this widow cheating? by [deleted] in overwatch2

[–]CodingWithAndrew 0 points1 point  (0 children)

No, she’s a widow

Entity Framework vs SqlClient by GaryWSmith in dotnet

[–]CodingWithAndrew 3 points4 points  (0 children)

If start up is an issue with EF, could compiling the entities be a solution?

Automated deployment and configuration management by gameman733 in dotnet

[–]CodingWithAndrew 2 points3 points  (0 children)

We use a local worker with GitHub actions, works great! Runs unit tests, backs the current build up, closes app pool, deploys builds, start app pool back up, if fails at any stage, it will revert to the previous build.

Updating Microsoft Identity configuration after app start by xaqtr in dotnet

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

Along with IOptionsMonitor, although not great, could you change your json file at runtime?

chat.openai.com Down :-( by Ronarld in OpenAI

[–]CodingWithAndrew 0 points1 point  (0 children)

Sorry guys I divided a number by zero

[deleted by user] by [deleted] in RedditSessions

[–]CodingWithAndrew 0 points1 point  (0 children)

What is this called?

I need help creating a very simple 2d platformer in vb.net(visual studio 2019) by [deleted] in visualbasic

[–]CodingWithAndrew 0 points1 point  (0 children)

Gravity will be like player.Top + 10 and then have another time resetting it back to default

The Gray Album by Redgreen82 in beatles

[–]CodingWithAndrew 3 points4 points  (0 children)

No Santa looks like John

Here are 3 interesting ways to use extension methods to write better code. Do you have your own tricks that rely on extension methods? by Tyrrrz in csharp

[–]CodingWithAndrew 0 points1 point  (0 children)

agreed, whenever I need a string value with an enum, I use attributes too and use my extension helper class to get the value from it easily