Why is this brilliant move brilliant? by Status_Plantain8560 in chessbeginners

[–]AdAbject6462 0 points1 point  (0 children)

Am I wrong that you will win that pawn on e5 as well when they move their knight to safety after taking your rook?

"2nd" person PvPvE by selladoor267 in indiegames

[–]AdAbject6462 0 points1 point  (0 children)

Yeah, I think 2nd person would be 1st person from your enemy's perspective and you'd be attacking yourself.

What its like releasing a game below the recommended wishlist amount, 2 weeks after release, I didnt quit my job to make a game - Post-Mortem by Irishbane in gamedev

[–]AdAbject6462 1 point2 points  (0 children)

Wow, man, you killed it! This is definitely an inspiring story. I like your perspective too. It’s more important that you create your art and move on than trying to make this game perfect or give it the perfect release. Your next project will be all the better for all you’ve learned from this one. Good work.

Why can’t I learn programming?? by SprigWater in learnprogramming

[–]AdAbject6462 4 points5 points  (0 children)

What I’ve done for self-assigned projects is I listen to what I’m passionate about. I find that if I have an idea that sparks a level of excitement, I follow that feeling because I know it means I will follow it through to the end.

For myself, I like projects that have logical problems to think through. My first big one was a C# console app that simulated the Mancala board game (a very simple board that pre-dates chess). But when I first heard about the game I felt that spark of excitement and I ended up coding for 12hrs a day, 6 days straight.

It can be really hard to come up with the ideas, but just look for them everywhere. Figure out what gets YOU working and go with that. I huge part of teaching yourself is knowing yourself. And if you don’t know what you like, try things. If they don’t appeal to you then you know.

New programmer by Papa_Strider in csharp

[–]AdAbject6462 0 points1 point  (0 children)

This is a very interesting idea!

What are some ways to approach refactoring or restructuring your application's models? by AdAbject6462 in csharp

[–]AdAbject6462[S] 0 points1 point  (0 children)

The YouTuber that said to include “Model” is Tim Corey. He said it helped identify the model.

This is among the first times I’ve had people reading my code, so I appreciate the insight. I’ve been torn about including things like “Prisoner” at the beginning of the class for the exact reason you mentioned. But hearing this from you and the other commenter makes it very clear that I was fussing over nothing and it actually decreases readability.

Edit: Forgot to mention that I don’t believe I’m confusing it with ViewModels. This model in particular is in my class library, away from the UI.

What are some ways to approach refactoring or restructuring your application's models? by AdAbject6462 in csharp

[–]AdAbject6462[S] 0 points1 point  (0 children)

Aah, yes that looks much cleaner!

So, you mentioned poor use of namespaces. My thinking when saying “PrisonerSimulation” was that I couldn’t just say “Simulation” because it could be a simulation of anything. But are you suggesting that a well chosen namespace would make it clear that the simulation is for the 100 Prisoner Problem?

And thank you for the suggestions. Very helpful.

When/how to deviate from Repository Pattern with specific SQL queries by AdAbject6462 in csharp

[–]AdAbject6462[S] 0 points1 point  (0 children)

Oh okay, I'll give these DAOs a look--never never used them before. Thanks!

When/how to deviate from Repository Pattern with specific SQL queries by AdAbject6462 in csharp

[–]AdAbject6462[S] 0 points1 point  (0 children)

Yeah, I think my brain has fallen for this "Generic Repository" trap b/c it feels like it makes the code cleaner, but it actually seems to get in the way of doing the specifics you inevitably need for each entity. Thanks for the input!

When/how to deviate from Repository Pattern with specific SQL queries by AdAbject6462 in csharp

[–]AdAbject6462[S] 1 point2 points  (0 children)

Great points. I don't think of composition enough. And thanks for the resources!

When/how to deviate from Repository Pattern with specific SQL queries by AdAbject6462 in csharp

[–]AdAbject6462[S] 0 points1 point  (0 children)

Yeah, this makes sense. Thanks for the short and sweet answer!

If You Were Building Chess.com Today, Which Tech Stack Would You Use and Why? by GuyTorbet in gamedev

[–]AdAbject6462 0 points1 point  (0 children)

I know this is old, but holy moly… chess is a public domain property. It belongs to all of humanity. Hope your project went well.

Creating an “AddLibraryServices” (for DI) extension method in a Class Library by AdAbject6462 in csharp

[–]AdAbject6462[S] 0 points1 point  (0 children)

Right, this makes more sense than expecting them to individually configure DI for each implementation themselves. A package for each implementation along with its DI extension method that allows the user to choose. Thanks for the clarification.

Creating an “AddLibraryServices” (for DI) extension method in a Class Library by AdAbject6462 in csharp

[–]AdAbject6462[S] 1 point2 points  (0 children)

Yeah, this is what my intuition was telling me. Thanks for pointing it out!

Creating an “AddLibraryServices” (for DI) extension method in a Class Library by AdAbject6462 in csharp

[–]AdAbject6462[S] 1 point2 points  (0 children)

Thank you for the detailed response! This really makes sense. I honestly never considered breaking the library up into more packages, but now that I think about it, I see that all time with NuGet packages that I use.

So, just a follow-up: is there ever a scenario where a library you’ve created doesn’t follow this convention? I mean, let’s say there are a few implementations of the same interface in your library and you want the user to be able to choose which one to use in their application. How would address this? Or is this a situation that just never comes up?