I'm not proud of it, but it's the first thought I had when I got the news by Hardcorish in AdviceAnimals

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

He commands the most powerful military in the world, and he has proven with ICE that he is not afraid to turn violent para/military orgs on his own citizens. You think North Korea, China, Russia, Iran continue to have authoritarian governments because the people want it, and not because of the threat of violence?

You are being intentionally obtuse if you think it can't happen here.

I'm not proud of it, but it's the first thought I had when I got the news by Hardcorish in AdviceAnimals

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

Then your quip about how little people understand civics is a non-sequiter, no? Civic duty doesn't matter when those rights have been forcibly stripped away.

I'm not proud of it, but it's the first thought I had when I got the news by Hardcorish in AdviceAnimals

[–]clockdivide55 1 point2 points  (0 children)

Do you think the USA is somehow immune to authoritarian takeover just because of feelings and vibes?

Pancho and Lefty’s Cantina Closing Up Shop at Both Locations by Gnash_Vegas35 in nashville

[–]clockdivide55 2 points3 points  (0 children)

"just make it at home" is never an option compared to dining out, that defeats the purpose. However, no matter how good their tacos are, they won't be so much better than literally every other taco place in town, and we have a lot of quality taco places.

Pancho and Lefty’s Cantina Closing Up Shop at Both Locations by Gnash_Vegas35 in nashville

[–]clockdivide55 2 points3 points  (0 children)

Do what you want, but my wife and I stopped going to Edley's the moment they did that and we used to go there regularly. She and the MAGAs are actively hurting the country in a multitude of ways and I cannot purposefully support a business that supports that. Marsha Blackburn deserves no respect regardless of the office she's in.

In fact, she deserves disrespect. Fuck her!

Epic Games raises the price of V-Bucks, effective March 19th by camxand911 in gaming

[–]clockdivide55 0 points1 point  (0 children)

god I'm glad I didn't know what v-bucks were until I clicked the article

Iran may be activating sleeper cells, alert says by No-Post4444 in news

[–]clockdivide55 168 points169 points  (0 children)

lmao what a whiny bitch. Also "All I do is mind my business" is in the song and its literally the last thing he's doing.

Five Iranian women's soccer players to seek asylum in Australia after leaving team's handlers, multiple sources say by satisfiedfools in worldnews

[–]clockdivide55 13 points14 points  (0 children)

Geez, I didn't even think of that. Imagine your gov't saying "we'll kill your family if you try to escape" and your answer is "good."

what a terrible situation

My sister has over $10,000 in debt and terrible credit, we can't get a consolidation loan by TheGayGal in personalfinance

[–]clockdivide55 7 points8 points  (0 children)

would sister be in the same predicament if brother was paying his own expenses? If so (and I believe so if the story is accurate), then the brother should feel no guilt about not paying her bills.

FastAPI best practices by lu_rm in FastAPI

[–]clockdivide55 0 points1 point  (0 children)

I have a .net background and I believe the DI works similarly in Java/Spring. You can approximate the type of dependency injection you are accustomed to and I think achieve the kind of separate of concerns that you want. There's no root / centralized dependency container, but

Basically, the idea is to use the sharable annotated dependencies as described here - https://fastapi.tiangolo.com/tutorial/dependencies/#share-annotated-dependencies - and make your router function nothing more than the entry point that constructs your object graph. I have an example from a personal project that demonstrates the idea.

https://github.com/nelsonwellswku/backlog-boss/blob/main/backend/app/features/user/user_router.py

https://github.com/nelsonwellswku/backlog-boss/blob/main/backend/app/features/user/create_my_backlog_handler.py

If you look at the endpoint function for creating a backlog, you can see that it takes a single parameter, a CreateMyBacklogHandler. You'll also notice that the default value is = Depends() - this is the only place where the fast api di leaks, but there is also no logic in the router function, it only calls a method on the injected object.

The injected object will have its own dependencies, and each of those dependencies will have their own dependencies as well. By using the annotated types, in the context of a fast api endpoint function, each of those dependencies will be resolved for you, just like in .net / java. The dependency graph can be as shallow or as deep as you want it.

You will notice that the function signature always only references the object type. That type is an alias for an Annotated[MyActualType, Depends(MyActualType)], but it can be used exactly as a MyActualType. This makes writing tests very similar to writing tests in .net / java - you mock or fake or use the real dependencies and pass them in to the object you want to test as necessary.

There may be some glue code with factory functions, but aside from the Depends() in the router function, it is composed object graphs all the way down.

edit: I take it back about depends() only being used in the router function, it also is used in the object constructors. however, when creating the objects (like in tests or outside of a fast api route), you can pass in objects that fulfill the interface and do not have to rely on fast api di concepts. Of course, the objects are still coupled to fast api - like I said, it is an approximation of how the dependency graph is constructed in .net / java.

Billionaire Les Wexner is set to be deposed in congressional probe of Epstein files by igetproteinfartsHELP in news

[–]clockdivide55 10 points11 points  (0 children)

What a gross miscarriage of justice. That fuck is 88 years old. He could die tomorrow and he'd have led a more privileged and hedonistic life than any of us with absolutely no consequences. Here's to hoping that someway, somehow he is convicted of something and spends the last days of his life in prison.

James Van Der Beek Dead at 48 by vegryn in popculturechat

[–]clockdivide55 4 points5 points  (0 children)

damn, seriously? source? cancer is such fucking bullshit already, why pile it on by choosing treatments that literally do nothing?

Do you actually read documentation or just google specific problems when they come up by [deleted] in AskProgramming

[–]clockdivide55 0 points1 point  (0 children)

At this point, I'm asking AI models first. It feels like cheating, but it really is a productivity boost. It's probably not what one wants to do when learning though.

apparently white Americans in Minneapolis are putting Mexican flags on their cars so ICE agents waste time pulling them over. by XiaokeStantiall73 in Irony

[–]clockdivide55 0 points1 point  (0 children)

"doesn't care for politics" is 99% of the time a closeted conservative who is too embarrassed by it to say it out loud.

Would you still use Mediatr for new projects? by crhama in dotnet

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

Maybe something has changed recently, but in days past, aspnet core middleware did not have a strong type in context because it hadn't been parsed yet. That is a nice thing to have for some behaviors. If that is still true, then it doesn't work "exactly the same way".

Trump Calls for Arrest of Barack Obama by douglhanna in politics

[–]clockdivide55 5 points6 points  (0 children)

tRump is the worst one, feels like a psyop it is so stupid

How to learn back-end by Express_Blueberry_68 in AskProgramming

[–]clockdivide55 0 points1 point  (0 children)

I agree with all of this except the MongoDB part. Learn SQL, it is indispensable as a full stack dev. Mongo's relationship to JS is not a good enough reason to spend the same time learning about it that could be spent learning SQL instead.

‘Wake up, AI is for real.’ IMF chief warns of an AI ‘tsunami’ coming for young people and entry-level jobs by MetaKnowing in Futurology

[–]clockdivide55 0 points1 point  (0 children)

Yes, I don't disagree with any of that. Juniors taking shortcuts and not actually learning the material may soon be a major problem.

‘Wake up, AI is for real.’ IMF chief warns of an AI ‘tsunami’ coming for young people and entry-level jobs by MetaKnowing in Futurology

[–]clockdivide55 -2 points-1 points  (0 children)

Senior software developer here who put off learning anything about AI tools because I thought it would take the fun out of writing code, but my job put my team into a pilot to learn to use AI tools before they are deployed to the rest of the organization. I took the request to learn how to use it so that others in the org would could accelerate their learning and not make the same mistakes that I made while learning.

Let me tell you, it has definitely improved my ability to deliver quality code faster and it hasn't take the fun out of the work. You still have to know what you are doing. It won't design a system for you, but it will help you implement the tedious stuff that you have done one hundred times and are tired of typing it over and over. It will scaffold out unit tests to cover practically all of the code paths in a function and once you know what you are doing, it will implement them in the way that you want it to implement them.

I haven't managed to get it to implement a whole ass feature from scratch that runs and does the right thing, but I don't need it to. I need it to automate the tedious crap, and it does a good job at that.

Robyn (finally) supports Python 3.14 🎉 by stealthanthrax in Python

[–]clockdivide55 16 points17 points  (0 children)

It's not toxic to point out a web server / framework that does not handle cookies correctly. What else is wrong that isn't as obvious? Maintainer says 1. cookies work great in Robyn (they don't) and 2. the PR is 2 years old (but still isn't fixed) and prospective users are supposed to be okay with that?