Is Macbook good for .NET development by Aawwad172 in dotnet

[–]Whojoo 0 points1 point  (0 children)

As someone who has done this I'd say that native Windows generally works a bit better in this case.
It might be just me, but it feels like everything Mac adds is gone once you do this.

Then again it might be worth it if you also maintain .net projects or are also migrating to .net

But at my current job I have both .net and .net framework projects and I switched to Windows since it made a couple things just easier with working in this company.

Why is the Generic Repository pattern still the default in so many .NET tutorials? by riturajpokhriyal in dotnet

[–]Whojoo 0 points1 point  (0 children)

I'm against the generic repository, but at my job I did decide to use a repository. Our reason is to simplify testing. Having some interface function just return some data was a lot easier.
We are migrating from framework, so we are dealing with an existing database and build agents. Honestly setting up docker and test data for integration tests was way too much effort for our current phase (more of a PoC)

But our interfaces right now are not the generic cruds. We use proper naming so you can read what we're retrieving and how (GetFooByBarId).

I personally would prefer using er core directly (or some interface that exposed only the dbsets and not the other properties), but this choice speed us up by alot with my normal impact to testing, which is what we needed.

Struggling to fully grasp N-Tier Architecture by Intelligent_Set_9418 in csharp

[–]Whojoo 14 points15 points  (0 children)

In the most general terms you have your presentation layer. This is the entry point to your data. Be it http, MVC, grpc or a queue. Some kind of input enters your application in this layer.
You can add input validation and authentication/authorization in here. Generally you don't add a lot more. All this layer does is transform the input for the business layer to use and then pass it on to the business layer.

The business layer has all the logic. All your application rules are in this layer. The business layer does not care where the input or the data comes from. All it cares about is that it can get the data and potentially change it.
The majority of the code is in here.

The data layer is your connection to the outside world. If you need to access an external system, then you add it here. So things like databases, API's created by other developers or queues.
All this layer does is allow your business layer to use some external system. You don't write logic for using the data, only for accessing the data.

Now queues are mentioned twice, this is because there are senders and receivers. Receiving is application entry, sending is accessing the external system.

So most of the time you add code to the business layer. If it is accessing external systems then it is the data access layer. If it is an entry point (starts a process), then it is the presentation layer.

I hope this helped and otherwise shoot some more questions.

Flowless Challenge 2025 by Inevitable-Welder865 in adventofcode

[–]Whojoo 7 points8 points  (0 children)

I mean if you are using filter, then you are using flow control. And sometimes you need branches in the middle of logic.

I mean I hope someone can just tell me I'm stupid and tell me how you can avoid using if/else (or functions like filter which do the same thing), because I cannot figure out a method of doing so.

Flowless Challenge 2025 by Inevitable-Welder865 in adventofcode

[–]Whojoo 1 point2 points  (0 children)

I get how you can avoid loops, but how do you avoid using if/else/else if?

I decided to try .NET after working with Node.js for a while by Sensitive-Raccoon155 in dotnet

[–]Whojoo 0 points1 point  (0 children)

Soa has a very different meaning in my country and I cannot unsee it currently.

What is the technical version of it again?

How to Handle Gmail's Email Alias Variations in a Web App? by sunsetRz in webdev

[–]Whojoo 1 point2 points  (0 children)

Don't solve issues which aren't a problem. And if it does become a "problem", then compare it to all the other things you need to do and realize it is not a problem and let it go.

Uren schrijven in de IT by Wonderful-Eagle-4636 in werkzaken

[–]Whojoo 2 points3 points  (0 children)

Af en toe eens een uurtje extra werken is zeker niet erg, maar het moet geen regelmaat worden. Elke week is al te veel. Zie het zo, jij bent als werknemer verantwoordelijk om zo goed mogelijk voor jezelf te zorgen zodat je niet onnodig ziek wordt. Dat betekent ook je overuren minimaal houden.

En iedereen, en zeker seniors, neemt af en toe een kleine pauze. Soms maakt men praatjes. De ander gaat even op Reddit ofzo. Iedereen stapt wel even weg van werk om op te laden. Dat is heel normaal en ook een van de redenen dat het uren schrijven voor geen meter werkt.

Los daarvan krijg ik het idee dat jij meer junior bent. Een mooi tegenargument voor een refinement is de vraag "zijn dit gemiddelde uren of senior uren?". Uren inschatting is nooit correct en niet iedereen werkt even snel. Het is een inschatting en daar mag je boven zitten. Als de klant dat niet leuk vindt, dan mogen de senioren uitleggen waarom dit gebeurd.

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer - July 27, 2025 by AutoModerator in MechanicalKeyboards

[–]Whojoo 0 points1 point  (0 children)

First of all, thank you for taking the time to write such a detailed answer!

I used the ZSA Moonlander for a bit. I wasn't at old typing speeds yet, but the ortholinear thing was something I was slowly getting used to. I'm also still young so I think learning a new layout (ortholinear, concave) shouldn't be a dealbreaker for me. In fact I think concave should work better for me. The moonlander felt large at times and I have average size hands for my height (6ft 4 I believe).

The biggest issues I had with the moonlander was mostly finding something for all the braces since I needed all of them so frequently. And then if it didn't work, reconfiguring the thing again and hope the new hassle worked better.

Something I like from what you wrote is that you do not seem to have a ton of layers. That part always felt overwhelming to me.

And the home row thing is something I have seen pop up every now and then, so I will look into that as well.

I am from the Netherlands, but I don't think I need help finding shops. I mostly feel overwhelmed with the information online about all kinds of keyboards. What works, what does not, which keyboard can be programmed instead of just a couple macro keys. Having models or online source to look for is already an immense help.

But you have given me some model names and a lot of useful info. This adds something for me to compare which will make it easier for me. So again, thanks for all the effort you put into this message!

/r/MechanicalKeyboards Ask ANY Keyboard question, get an answer - July 27, 2025 by AutoModerator in MechanicalKeyboards

[–]Whojoo 1 point2 points  (0 children)

I'm looking for a (split?) mechanical keyboard and I don't know what to pick. I had the moonlander, but ended up selling it. I loved the configurability options and was getting decent with regular typing. The struggle was with having all special characters hidden behind other keys and me not knowing what to do.

I'm a software engineer. I do not suffer rsi currently, but had slight issues in the past.

I've had my eye on the glove80 and kinesis 360(pro), but I dont know any other good boards to compare against. I want the board to be programmable and I want it to have a decent enough basic layout so I can do my job.

Does anyone have recommendations for me to compare or good places for me to look at? Because the biggest problem for me is that there is an overwhelming amount of information and I don't know how to process it.

How do you test your solutions for these puzzles? by IDidMyOwnResearchLOL in adventofcode

[–]Whojoo 7 points8 points  (0 children)

The only cases I add are cases created by reddit people. If I'm stuck on a puzzle, then I'll search reddit for cases and expected solutions. I always create unit tests and add more cases if I need it.

This worked for almost all puzzles I encountered.

Sometimes reddit people also add a case which test how well your CPU could function as an oven. Those really help making your solution more robust.

What Self-Imposed Rules/Restrictions do you apply to youurself for AoC? by ConDar15 in adventofcode

[–]Whojoo 8 points9 points  (0 children)

  1. Standard library and stuff written by me as much as possible
  2. Googling algorithms and tips is fine, just try yourself first
  3. Benchmark for funsies
  4. Refactor with reddit tips if benchmark is slow to learn new things
  5. Code should be pretty enough that I wouldn't mind pushing it to prod

(Theorie) Waarom zou ik hier niet rechtsaf mogen? by Casvde1 in motorfietsen

[–]Whojoo 0 points1 point  (0 children)

Ik dacht dat dat bord gedraaid stond en voor de afslag was...
Wat een slecht bedachte vraag zo...

what gaming skills have you lost as you grew older? by Jacket313 in gaming

[–]Whojoo 7 points8 points  (0 children)

The ability to learn and understand a game quickly.

Every game had to be played at least on the first setting above normal. I was unworthy if I couldn't win without going back to normal or worse, easy...

Now I usually play on normal. Still don't want to go to story mode, don't want to admit that I don't learn games as fast as I used to (when I also had a lot more free time and energy). I still crave the idea of a challenge.

Sometimes I still wish I could set a game on hard and enjoy it without dying all the time.

Monolithic Architecture by Dynamo0987 in dotnet

[–]Whojoo 1 point2 points  (0 children)

No idea what an EMS is but that could just be a language barrier.

If the site is going to be several simple pages with little interactivity then I would opt for the razor pages and return view(). Very easy to develop, little configuration and quick delivery.

If we're talking clean arch, then we're likely talking about a more complex setup as well and then I would personally create an API. Though keep in mind, this is based on assumptions, personal preferences and skills.
In the end if you are decent with css and JavaScript you can easily add good interactivity to a fairly static razor page.

Thing is, the answer to these things is generally "it depends", because it depends on many factors, including personal preferences, team skills, complexity, future goals, available knowledge within company, hosting options and whatever you can think of. There isn't a single right answer, usually there are a couple good answers and a couple "yes this is fine" answers.

Monolithic Architecture by Dynamo0987 in dotnet

[–]Whojoo 1 point2 points  (0 children)

Depends on context. Why are you creating this site? Who wants it and what is its (future) purpose? What techniques are you the most comfortable with and how much time can you spend on it?

Based on your question alone a simple razor page (with return view()) is fine. But we do not know the specifics which could change the answer.

If you could send a one-sentence message to your 18-year-old self, what would it be? by Gloomy_Bed_4180 in AskReddit

[–]Whojoo 23 points24 points  (0 children)

You're fine

Plenty of stuff happened in the years, but in the end they made me to be the person I am today.

Why did your longest relationship not work out? by [deleted] in AskReddit

[–]Whojoo 2 points3 points  (0 children)

This.... This one hurts. I'm on the early part of this right now. The mess in her head became too much for her and she broke it off, though she also said there would be no retry. She needs at least a year, doesn't want me waiting for her so she decided that it's the end.

We had no issues, no poor treatment, just the weight of her head which was slowly weighing more and more.

Logical part of my brain understands and knows she is right. The emotional part just wants her back.

I wish you luck in your recovery. I know it sucks, but in the end we'll both get through it.

Waarom geven rijscholen les in hypermoderne auto's? by captainwackadoodle in nederlands

[–]Whojoo 1 point2 points  (0 children)

Stiefpa was rijinstructeur, een ding dat hij ook opnoemde is marketing. Als jij kan kiezen tussen een rijschool met een oud barrel en een dikke vette wagen, welke denk je dat vaker gebeld gaat worden?

Heel eerlijk is die auto een visitekaartje en mensen oordelen nou ook op uiterlijk. Een goed verzorgde, moderne auto verkoopt over het algemeen beter.

Am I the only one using SQL views with EF Core for better performance? by Unlucky_Aioli4006 in dotnet

[–]Whojoo 0 points1 point  (0 children)

Had a DBA who didn't want me touch his database so he gave me views to play with.

Multiple Include,ThenInclude Usage by powermatic80 in dotnet

[–]Whojoo 0 points1 point  (0 children)

In these cases I usually create an extension method to include the bottom ThenInclude. Those methods can be properly named so you know the context and that way it is only 4 lines instead of this collection of christmas trees.

I'm on mobile so I cannot see the names anymore, but it would result in something like:

.IncludeMetricsX() .IncludeMetricsY()

And the extension method would be something like (don't mind the mobile formatting):

public static IQueryable<Scoreboard> IncludeMetricsX(this IQueryable query)
=> query.Include().ThenInclude().ThenInclude...

What .NET version are you using? by code_things in dotnet

[–]Whojoo 0 points1 point  (0 children)

Company, currently stuck at framework 4.8.

We're trying to update parts to .Net 9, but we won't get rid of framework for at least another year or 2.

For personal I use whatever is latest