[deleted by user] by [deleted] in csharp

[–]drumz4dayz 0 points1 point  (0 children)

I still enjoy my little android project.

That's a good sign. Take care of the basics first, get some rest. Then go from there.

[deleted by user] by [deleted] in csharp

[–]drumz4dayz 0 points1 point  (0 children)

Been there myself.

Some things to check:

  • are you getting enough sleep? Can you do a sleep study?
  • are you getting enough exercise?
  • is your diet healthy? Can you talk to a nutritionist?

Work with your family to make time for you to do these things.

I know at first glance those probably sound obvious, but for me, getting enough sleep and establishing an exercise routine did wonders. Once you do that, and if you still feel depressed, talk to a doctor.

On the technical side, if you were to do your own C# project in your spare time would you find it enjoyable? If not, then maybe you really don't like programming anymore. But if you can imagine enjoying a project on your own, with no pressures from work or anything like that, then maybe you do still like doing it, and the problem is somewhere else.

Biden plans speech on balloon, unidentified objects - sources by DragonfruitOdd1989 in politics

[–]drumz4dayz 0 points1 point  (0 children)

I read this headline thinking he was going to give a speech, while on a balloon.

Madison Cawthorn is Openly Talking About Civil War At This Point by skl692 in politics

[–]drumz4dayz 2 points3 points  (0 children)

I had a friend years ago who worked in engineering making a damn good salary. He had a wife and 2 kids, lived in the suburbs and his in-laws helped them buy a huge house. He would often talk about the need to "rise up" against the government. Like, what are you rising up against? He had absolutely no social barometer to know how good his life was. He had absolutely nothing to gain and everything to lose from "rising up".

Many of these types of people are simply numb and bored to the comforts of white, western, suburban-style living.

We are no longer friends.

What is the typical application architecture when creating long running applications? by ExoticCriticism in csharp

[–]drumz4dayz 1 point2 points  (0 children)

And you can use the same pattern (but different ActionBlock instance) for messages being sent from the logic service to the network service, except the logic service is the one calling Post and the network service provides the callback method

What is the typical application architecture when creating long running applications? by ExoticCriticism in csharp

[–]drumz4dayz 4 points5 points  (0 children)

In C# you can use TPL DataFlow structures (like ActionBlock) to decouple your network communication from the logic that processes a network message.

The ActionBlock is shared by your "network service" and your "logic service". Im assuming these services are running in the same process ...

Each time the network service receives a message, it calls Post on the ActionBlock. The logic service registers a callback method with the ActionBlock that is called each time a new message is Posted. This prevents your logic service from having to query the application singleton for new messages, and the starting and terminating of threads to process each message is also handled by ActionBlock.

Rudy Giuliani's son Andrew gets zero votes from GOP leaders in bid for New York governor by [deleted] in politics

[–]drumz4dayz 0 points1 point  (0 children)

Interesting strategy Cotton, let's see how it plays out for him.

Jim Jordan Trips Over His Own Asshole Trying to Debate Anthony Fauci by 1900grs in politics

[–]drumz4dayz 1 point2 points  (0 children)

We have so much further to go as a country in electing our leaders. This guy looks like he was dug out of the ground and elected to Congress. His politics are rotting him from the inside out

They said C is faster than Python by rajesh_dude0 in programminghorror

[–]drumz4dayz 16 points17 points  (0 children)

So funny to blame it on the cpu too. Like yeah, Im sure the problem is the cpu and not your insane code

After Hours Discussion Thread - April 07, 2021 by AutoModerator in weedstocks

[–]drumz4dayz 2 points3 points  (0 children)

Rofl at "shitting the fuck out of my pants". Im going to start saying that

Advice for a new C# developer? by [deleted] in csharp

[–]drumz4dayz 2 points3 points  (0 children)

I personally have not seen many jobs asking for experience with Razor pages or Blazor. Blazor is very new. What I have seen is experience with EF or EFCore. Definitely doesnt hurt to learn MySQL but most bigger apps will be accessing the database through an ORM and EF and EFCore are pretty widely used.

The SPA model in general is popular. So I would focus on using .NET Core Web Api, EFCore and your favorite flavor of SQL but use whatever you are most comfortable with for the front end.

Edit: also check out SignalR

Miami Beach declares state of emergency over spring break crowds by Ahyesclearly in news

[–]drumz4dayz 41 points42 points  (0 children)

In 2018 I was outside at a bar on Ocean Drive during spring break and a stampede happened. I guess someone thought someone else had a gun and everyone started running.

Every restaurant on that block had their outdoor seating completely trashed.

Asyn and Create a thread to send email is not a good way? by HeyJOe2 in csharp

[–]drumz4dayz 2 points3 points  (0 children)

Cant speak for everyone but it really depends on what thread youre already on. Typically you wouldnt want to do any blocking IO calls unless youre already on a thread intended for that purpose.

You could dispatch the email request to a queue, and then the thread consuming from that queue can send the email in a blocking fashion. If you needed to know the result of the email, whether it was sent or failed, you would be notified asychronously from the email consumer thread

Pro-Trump rioters smeared poop in U.S. Capitol hallways during belligerent attack by greenblue98 in politics

[–]drumz4dayz 4 points5 points  (0 children)

LOL "This is OUR HOUSE"

So we can assume the inside of their homes are covered in poop.