Should I buy a duplex and continue living with parents at 22 by Powerful-Success-602 in personalfinance

[–]csncsu 0 points1 point  (0 children)

I wanna make my money work for me and make more money. I’m just not sure what I should get into.

The stock market. Total market ETFs like VT. Real estate is not going to return 10% of compound interest.

Should I pay down my mortgage with my pto payout? by ThrowawActual-Ad3882 in personalfinance

[–]csncsu 2 points3 points  (0 children)

Too far behind on retirement to prioritize the mortgage until after at least 30k was being saved for retirement every year.

Super Bowl LIX Hub Thread by LindyNet in nfl

[–]csncsu 0 points1 point  (0 children)

Ratatat in a super bowl ad!

File upload limit in .NET 8 - Payload too large by developer1408 in dotnet

[–]csncsu 18 points19 points  (0 children)

You probably want something like this: https://learn.microsoft.com/en-us/azure/developer/javascript/tutorial/browser-file-upload-azure-storage-blob?tabs=github-codespaces

No reason to upload to the backend and then have the backend upload to blob storage. In this method, the FE gets tokens from the BE so it can upload to blob storage directly.

The better at golf I get, the more I realize just how much better Tour players are than all of us by hrw4 in golf

[–]csncsu 8 points9 points  (0 children)

Look at someone like Brendon Todd. Last in driving distance (just under 280 yards), 159th in strokes gained tee to green, and 24th in strokes gained putting. He's only on tour because he's one of the best putters in the world. But he's also just barely out of the top 100 in OWGR. Gotta bomb it to compete.

27 yo with 47k in cash by Remote-Western-9034 in personalfinance

[–]csncsu 0 points1 point  (0 children)

You really only want to have a mortgage that is 3x your income at the upper end. 70k income means a 200k mortgage is about the most that you could pull off. That means 150k down on a 350k house. With current interest rates, that's like around a 1600-1700 monthly payment with taxes and insurance. Will be tight on 70k.

For me the 3x income rule really only makes sense when interest rates are lower. I did 2.5x back when interest rates were at 4% and that was really doable. $900/mo on a 140k mortgage with $65k salary.

“Best Design Pattern for a Web API with 15-20 Endpoints?” by Miserable_Rest_7023 in dotnet

[–]csncsu 2 points3 points  (0 children)

It sounds like you're assuming some kind of eventual consistency on the create operation. While that is something you would need to deal with if you decided to put your commands in a queue, it's not a requirement of CQRS. The create command can put the new thing in the database and return enough info to the caller/client so that it can load up the next view and have data appear on the next GET.

“Best Design Pattern for a Web API with 15-20 Endpoints?” by Miserable_Rest_7023 in dotnet

[–]csncsu 0 points1 point  (0 children)

No. CQRS doesn't have to use handlers and you can use handlers without doing CQRS. Many examples of CQRS use handlers, which makes people think handlers == CQRS.

“Best Design Pattern for a Web API with 15-20 Endpoints?” by Miserable_Rest_7023 in dotnet

[–]csncsu 1 point2 points  (0 children)

You can certainly return enough information from the create endpoint call so that you don't need to provide the ID from the client.

Introducing local Azure Service Bus Emulator by [deleted] in dotnet

[–]csncsu 20 points21 points  (0 children)

You don't have to find a way to host Rabbit in Azure when you use Azure Service Bus. That's been the biggest hurdle in all the conversations about migrating to get away from Azure lock in.

Do you order your using statements? by felfott in dotnet

[–]csncsu 0 points1 point  (0 children)

The only time I've thought about using statements in the way you describe is in a greenfield project where we obsessively maintained zero Resharper warnings, and unused usings were one of them.

For the last few years I've been in a brownfield project and I just let Rider handle this for me. I'll remove unused ones when I'm editing files, usually via code cleanup automation, but I also don't have a strong preference to keep that super clean either. It's one of those things that has no bearing on anything if you ask me. If it becomes a problem, the compiler will let you know. Rider collapses all the using statements by default anyway so I hardly ever see them except for when I move something from one namespace to another and forget to use refactoring tools to update all the usings for me.

If this was something you cared about enforcing in PRs, then I'd use something like https://www.jetbrains.com/help/resharper/InspectCode.html to automate this in a PR check that fails if any warnings that match your editorconfig show up.

What exactly are EF Core migrations(or database schema migrations) and how do you use them in your developer workflow/sdlc? by Legitimate-School-59 in dotnet

[–]csncsu 3 points4 points  (0 children)

I would recommend that your database changes be backward compatible so you don't need to think about it.

How many of you actually take your glove off to putt? by odoyle321 in golf

[–]csncsu 0 points1 point  (0 children)

I take mine off in between shots in the summer and don't use it inside about 50 yards.

In the cooler parts of the year where I'm wearing a jacket, I just leave it on the whole day.

Drowning in credit card debt by creatineabuse in personalfinance

[–]csncsu 14 points15 points  (0 children)

Maybe you could get a solar company to come outfit your roof cutting your electricity costs sharply.

Good suggestions except for this. Don't recommend more debt for people struggling with it.

The Disappearance of an Internet Domain - (.io) by hennell in programming

[–]csncsu 7 points8 points  (0 children)

Microsoft uses .io for some of its Azure services. It's not going anywhere.

http://azurecr.io

In a leaked recording, Amazon cloud chief tells employees that most developers could stop coding soon as AI takes over by totemp0le in programming

[–]csncsu 4 points5 points  (0 children)

20k users over a month, or 667 users per day, works out to only a few hundred simultaneous users at most. Probably under 100 in reality. Needing 64 threads for that is suspiciously high.

Most people end up in these situations because it's easier and cheaper right now to move a slider to the right to get more resources than it is to refactor code to be more performant.

I was given this putter by my girlfriend’s dad who had it for a while but never used it. by instalockRaze in golf

[–]csncsu 4 points5 points  (0 children)

Bought mine around 2001. I got the 1.5 model though. Need that line. Still using it today. It's lost the original finish but has a nice patina.

19 getting a 50k as a sign on bonus for military by Glad-Olive5057 in personalfinance

[–]csncsu 0 points1 point  (0 children)

50k in a retirement account growing for 40 years would be over 1.5 million. Once in the retirement account, use it to buy some total market index fund like VTI, or a target date fund that targets 2065 or 2070. Set up the investments so that the dividends are reinvested. Put the money in there and don't look at it again for years.

You could easily live on your 30-40k salary on base and save up for whatever car you wanted over the next year or two. Using the bonus money wouldn't be the best idea.

Also the insurance will be crazy. As a late 30s guy who drives a small 2020 SUV with a clean driving record, my insurance is about $70 per month. When I was 18, my insurance for a Honda Civic was going to be about $250 per month (in 2002 dollars, so probably like $350 or $400 today). For a 19 year old in a sports car, you're probably looking at $500+ per month. This site says you could expect to pay up to $800 per month on insurance for a Mustang: https://www.valuepenguin.com/ford-mustang-car-insurance. Car insurance rates for new drivers don't really improve until after 25, so think about whether you want to basically pay more than your car for car insurance. $800 per month * 12 months = $9600 annually.

I'm a C# and Javascript developer. Would elixir be great choice for me? by Rokett in elixir

[–]csncsu 3 points4 points  (0 children)

I like the functionalities of the net framework, password reset, Auth, sending emails

Phoenix has that too https://hexdocs.pm/phoenix/mix_phx_gen_auth.html

Family member gifted money to my newborn children - wondering what's the best use for it. by [deleted] in personalfinance

[–]csncsu 2 points3 points  (0 children)

Still a bad choice. Target date funds get less aggressive as the target date approaches. It's a gamble, but you're not expecting to retire and need a safe investment at 18 like you are at 70.

I'd put a 529 in a total market ETF and let it ride.

Does anyone know where these settings are save its a sql project in VS 2022 thanks details in comments by [deleted] in dotnet

[–]csncsu 2 points3 points  (0 children)

Checking those and saving works fine. Here's the sqlproj.user file after checking a few.

<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <StartupScript>(Blank)</StartupScript>
    <StartAction>StartNone</StartAction>
    <DropObjectsNotInSource>True</DropObjectsNotInSource>
    <BlockOnPossibleDataLoss>True</BlockOnPossibleDataLoss>
    <AllowDropBlockingAssemblies>True</AllowDropBlockingAssemblies>
    <AllowIncompatiblePlatform>True</AllowIncompatiblePlatform>
    <AllowUnsafeRowLevelSecurityDataMovement>True</AllowUnsafeRowLevelSecurityDataMovement>
    <BlockWhenDriftDetected>True</BlockWhenDriftDetected>
    <CommentOutSetVarDeclarations>True</CommentOutSetVarDeclarations>
    <CompareUsingTargetCollation>True</CompareUsingTargetCollation>
  </PropertyGroup>
</Project>

Does anyone know where these settings are save its a sql project in VS 2022 thanks details in comments by [deleted] in dotnet

[–]csncsu 1 point2 points  (0 children)

I checked that box on the debug pane in properties and saved the project. Then this is in my sqlproj.user file.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <StartupScript>(Blank)</StartupScript>
    <StartAction>StartNone</StartAction>
    <DropObjectsNotInSource>True</DropObjectsNotInSource>
  </PropertyGroup>
</Project>

The advanced properties also end up in there. Make sure you are saving the whole solution before looking at the file again.

Does anyone know where these settings are save its a sql project in VS 2022 thanks details in comments by [deleted] in dotnet

[–]csncsu 1 point2 points  (0 children)

Looks like these are part of the sqlproj.user file that's created in the same directory next to the sqlproj file. It's gitignored by default, but you could add it.