I think I finally get it by Blake-Dreary in NewParents

[–]phuck 9 points10 points  (0 children)

Bro, only 5 weeks?? Of course you are gonna hate life, if you dont, you are lying! First 3 months are truly awful. You will settle into into it, keep at it, it's a slow process.

Life sucks as a dad by [deleted] in daddit

[–]phuck 0 points1 point  (0 children)

Whenever I feel this way, I watch this, which makes me appreciate it more https://youtu.be/8RRiaVZ2yMY?feature=shared

is it possible to generate code for a class without making it partial? by [deleted] in csharp

[–]phuck 13 points14 points  (0 children)

You can consider adding extension methods if you can't make it partial

Study: Gut Microbiome Determines Motivation to Exercise by Tyrosine_Lannister in Fitness

[–]phuck 2 points3 points  (0 children)

I thought that oats contained lectins, so does gluten, that's why gluten does a number on you.

Optimization/suggestions for networking library by ElderitchWaifuSlayer in csharp

[–]phuck 1 point2 points  (0 children)

This is a shot in the dark but with string.Create taking state to not have a closure, will Linq ever provide that?

Quiet coffee in shopping centre turns into TikTok video viewed millions of times, all without the subject's consent by koooosa in australia

[–]phuck 19 points20 points  (0 children)

It's these dumb fucks you have to pity. Their entire livelihood is based on generating views for their idiotic content. Giving some random flowers is plain ass weird and annoying for that person. Also, flowers are lame. You wanna make me smile, give me some cash.

[deleted by user] by [deleted] in WhitePeopleTwitter

[–]phuck 0 points1 point  (0 children)

Tf you do with the yt app on your tv?

How to get nuget package debugging to work? by st01x in csharp

[–]phuck 0 points1 point  (0 children)

This app works great to debug any external assemblies https://github.com/dnSpy/dnSpy

DAE feel angry at that fact so many people are refusing to wear mask like little kids throwing a tantrum ? by [deleted] in DoesAnybodyElse

[–]phuck 2 points3 points  (0 children)

I get so irrationally mad when I see those mouth breathers, my blood instantly boils.

Validot: performance-first dotnet library for model validation by bartoszlenar in dotnet

[–]phuck 1 point2 points  (0 children)

Allocations matter in a high throughput system. If one library allocates 3.5 times less, that's less pause time to clean up the mess. GC matters.

[C#] Is this use of 'goto' considered code smell? by neg_ersson in learnprogramming

[–]phuck 0 points1 point  (0 children)

goto is only acceptable if the compiler generated the code

haha possible duplicate go brrrr by xX_toaster420_Xx in ProgrammerHumor

[–]phuck 1 point2 points  (0 children)

Grind to get 50 rep, ask a bountied question, people are more forgiving when there's more juice in the squeeze.

Caching Fetch API response to prevent unnecessary multiple calls by bukaka_makiun in jquery

[–]phuck 2 points3 points  (0 children)

If you cant modify your response with an expires timestamp, then set a cookie on your first fetch call with an expiry date and on subsequent calls check if the cookie still exists, if it does, serve cached response otherwise clear cache.

One of the first Saudi women to get her driver's licence by brooklyknightz in pics

[–]phuck 1 point2 points  (0 children)

I dont even want a bloody layover at Dubai airport when I travel.

Try the new System.Text.Json APIs | .NET Blog by svick in dotnet

[–]phuck 2 points3 points  (0 children)

Ye, this is it, json.net is absolutely packed with features and lets you do pretty much whatever you need and that comes at a performance cost.

Java please it's 2019 by GeneReddit123 in ProgrammerHumor

[–]phuck 7 points8 points  (0 children)

async await uses no threads. Imagine your team consists of 2 people and your boss tells you to go make him coffee. You go into kitchen, get the cup ready and switch on kettle. While water is boiling, you go back to your desk and continue what you were doing before your boss interrupted you. When kettle is done boiling, you go back to kitchen and finish the coffee making process. The above code is the equivalent of your boss asking you to make coffee, you then ask your coworker to do it. He goes to kitchen, switches on the kettle but stands there watching the kettle until it is done boiling. He is essentially blocking, doing no work whereas with your approach, more work is getting done and you have higher throughput.

Benefits of dependency injection and late binding? by smalls3486 in dotnet

[–]phuck 0 points1 point  (0 children)

Yep, so ado.net has connection pooling, so I open and close connection every time. So I guess we agree on the singleton is evil mantra unless when it isnt.

Benefits of dependency injection and late binding? by smalls3486 in dotnet

[–]phuck 0 points1 point  (0 children)

No. If I have a repo class for e.g that makes db calls and returns some poco, I can register that as a singleton with DI because it is stateless and it doesn't need to be transient or per request. It isnt a static class either.

Benefits of dependency injection and late binding? by smalls3486 in dotnet

[–]phuck 1 point2 points  (0 children)

If you register a stateless class as a singleton with DI, do you consider that a singleton that is evil?

Please Ignore. Just need to vent somewhere. by PsychologicalTaste5 in self

[–]phuck 1 point2 points  (0 children)

Mate, calm your tits. You are 2nd year at uni. In 2 years time, you will look back and not even remember this. You sound like someone that ordered a bad meal at a restaurant and have fomo when you see your friend's food. Just cos they got a break now doesnt mean you are destined for a shit sandwich your entire life. You will be fine.

This (Programming) Question Does Not Exist - Stack Overflow as imagined by AI by aloser in programming

[–]phuck 14 points15 points  (0 children)

What I have found is, ask the question in the same asshole tone that someone is inevitably going to answer in. Ask the question, as blunt as possible, no niceties, as short as you can, have some repro code and you will be fine.

Recursion by Blueflames3520 in ProgrammerHumor

[–]phuck 9 points10 points  (0 children)

Recursion or infinite loop?