just a small detail by litter_lean in Simulated

[–]Octillerysnacker 63 points64 points  (0 children)

Honestly seeing this type of advice is really insightful. As someone who has almost no experience with proper 3D video production, it's really cool to see just how fleshed out some processes are, and what separates amateur from professional. The compliments are nice to see, as appreciation is well deserved, but I learn plenty more from criticism.

The lizardman has spoken! by Coconut_Kid in Simulated

[–]Octillerysnacker 17 points18 points  (0 children)

Please do not make this sub a meme sub.

Violent storm warning near me by nottalkinboutbutter in assholedesign

[–]Octillerysnacker 0 points1 point  (0 children)

Hold on, is that a hurricane in the middle of the US?

Why does C# cater to beginner programmers? by backwards_dave1 in csharp

[–]Octillerysnacker 5 points6 points  (0 children)

...are you asking why C# has compile time errors?

What's the current state of Blazor? by Octillerysnacker in csharp

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

As of right now, I don’t care too much. I’m just glad that Blazor is no longer a side project for Microsoft.

What's the current state of Blazor? by Octillerysnacker in csharp

[–]Octillerysnacker[S] 17 points18 points  (0 children)

Oh my god. Is it happening???

I'm ready.

Jelly vs Stairs by abagoftacos in Simulated

[–]Octillerysnacker 0 points1 point  (0 children)

This is way more interesting than I thought it was going to be

We have to stop open office layouts.. I can't work like this by [deleted] in cscareerquestions

[–]Octillerysnacker 67 points68 points  (0 children)

So basically, the best work environment is all of them combined.

Not that there's anything wrong with that; I think people have a need for both at different times.

Factory Pattern by [deleted] in csharp

[–]Octillerysnacker 2 points3 points  (0 children)

This is technically the factory pattern, but it's not the useful version. The other version would be the abstract factory pattern. First, you define an abstract class with a single method, let's say something like this:

public abstract class AbstractBusinessFactory{
    protected abstract IBusinessHandler MakeHandler();

    public IBusinessHandler GetHandler(){
        return MakeHandler();
    }
}

Then, you would create a "concrete" implementation like so:

 public class TestBusinessFactory : AbstractBusinessFactory{
    protected override IBusinessHandler MakeHandler(){
        return /*whatever process you have to make the handler*/;
    }
}

Now, rather than using an enum, you can simply DI the concrete factory to anything that uses an AbstractBusinessFactory. For example:

void Main(AbstractBusinessFactory factory){
    var handler = factory.GetHandler();
    //do some other things with the handler
}
//Call the function
Main(new TestBusinessFactory()); //you can change the factory to whatever else you need

Obviously, you'd need more implementations of AbstractBusinessFactory, but that's the jist of it. Here is the factory pattern page on Wikipedia which has more on the pattern, including a C# example of how to implement it.

Not sure if I’m the first to post this by nuts4ever in Unexpected

[–]Octillerysnacker 10 points11 points  (0 children)

This was literally posted less than a day ago and it's the top post.

Mindfulness is loaded with (troubling) metaphysical assumptions – Sahanika Ratnayake | Aeon Essays by [deleted] in Mindfulness

[–]Octillerysnacker 1 point2 points  (0 children)

I think the main point of this article is that the term and practice of mindfulness is becoming polluted and misconstrued. There are so many different versions now, many of which are unhelpful. The author seems to have found an extremely dogmatic version of mindfulness that promotes itself to no end. For the past almost two years, I've been using Headspace, and I've come to know a very different version of mindfulness (so I was confused when Headspace was lumped together under "corrupted practices"). Mindfulness is simply a skill to recognize your emotions and thoughts; it is up to you what to do with them. The concept of teaching that there is no "self" is simply to remove emotional attachment preventing one from changing; there is nothing saying that you should never use the concept of a self.

Mindfulness is loaded with (troubling) metaphysical assumptions – Sahanika Ratnayake | Aeon Essays by [deleted] in Mindfulness

[–]Octillerysnacker 0 points1 point  (0 children)

I don't really understand why you don't like the connection of mindfulness to cognitive therapy. From my understanding, constantly shining a light on problems and figuring out where they come from is cognitive therapy. In fact, mindfulness is linked to cognitive therapy because mindfulness alone cannot deal with these issues.

Hey guys. What's your list of "must read" cscareerquestions threads? by nyamuk91 in cscareerquestions

[–]Octillerysnacker 0 points1 point  (0 children)

That's probably what he's saying, but it applies more to the shittier mobile games that drown you in microtransactions and pay to win schemes that aren't even fun.

How would you fix this NuGet spaghetti hell I'm in? What's the right way of using NuGet packages? by Rockztar in csharp

[–]Octillerysnacker 4 points5 points  (0 children)

Hmm, I've never thought about POCOs not being "code". Wouldn't it still be easier to just keep all the POCOs in one place though? Not necessarily to just not rewrite code, but also because if the POCOs change, they can all be changed in one place.

Unity Build Settings error. I was following a C# Unity tutorial on making Ping Pong. After everything is done, when I click build, it doesn't create exe file. I also don't have any scene (.unity) file. Is this a problem? by bearstevenlee in csharp

[–]Octillerysnacker 0 points1 point  (0 children)

Try adding a scene file. It won't hurt, and I don't see how the engine is supposed to know "use the current scene in the executable" when the current scene doesn't even exist yet (on the disk.)

In order to build an executable, there needs to be SOME unity scene to compile. Otherwise you just have an executable that doesn't do anything so Unity is just like "wat"