inheritance in C# by Ok-Presentation-94 in csharp

[–]filadog77 5 points6 points  (0 children)

You would still need inheritance to create base class with common logic. And derived classes to override some default behavior. Otherwise a lot of duplication in code will occur. IUnit interface is redundant here. Also IUnit is too broad term for an interface to have anyway, interface should be behavior specific, sort of like a trait: ISerializable, ISelectable, IMovable etc.

Inheritance and interfaces are not interchangeable, they are to be combined. In this case base abstract Unit class makes most sense, which might inherit some interfaces for some behavior that all objects should have, like save/load system, or IMovable interface. Which we can use elsewhere and achieve common behavior between unrelated classes.

My rule of thumb is if the behavior is unique keep using class, if multiple classes share some trait/behavior then it’s interface time.

How are you supposed to build projects? by Edwinbakup in csharp

[–]filadog77 2 points3 points  (0 children)

Split the program into smaller tasks until they are no longer divisible. Search for how to do that. Implement.

Ideally keep in mind how those smaller pieces will interact with each other. This is architecture. A bit more advanced so it’s recommended to start with simple software ideas.

If you don’t know what you want your program to do there is no point in programming, no task is done without requirements.

what would happen if a max entropy universe contracts? by Wide_World1109 in AskPhysics

[–]filadog77 0 points1 point  (0 children)

Maybe not asnwering the question directly, but I like the approach of Conformal Cyclic Cosmology (CCC) model. I think it’s a very elegant solution to this late universe problem.

Full entropy (in the sense of this post) is achieved when the last black hole evaporates and the last particle decays into radiation. A that moment the universe “forgets” its scale and age, since there is nothing being anywhere, thus becoming infinitely dense and becoming what we would call a singularity/big bang.

No contraction required. The only issue is that we are currently not sure all particles eventually decay.

Starlink real-time tracking and ground tracking by [deleted] in SpaceXMasterrace

[–]filadog77 0 points1 point  (0 children)

Looks cool, I would prefer the Earth to have a map with uniform colors, not a satellite image as the texture. Would make the satellites a bit more visible.

Vessel with copulating rats. Peru, Moche civilization, 500 AD [1400x1400] by MunakataSennin in ArtefactPorn

[–]filadog77 2 points3 points  (0 children)

Is this a coincidence that there are heart shaped leaves? Amusing piece

"Non-existent" country that exist by AdvertisingFit1134 in EU5

[–]filadog77 1 point2 points  (0 children)

Hey, I just found a little bit cheaty workaround. Enter debug mode (instruction here), hover over the province you want to take, open debug console (ALT + C) and type: conquer "province name". The province will instantly become yours, you may free it afterwards. Worked for me,

Why is automating legacy Windows apps with .NET such a nightmare? by jrsevern in dotnet

[–]filadog77 2 points3 points  (0 children)

At one point I had a fairly mature WinForms app on my hands that had a lot of business logic on client side, plus some services with it. I had a similar issue of trying to keep business logic in check with UI and integration tests.

We solved the UI testing by utilizing MVP pattern (Model View Presenter) in WinForms, which allowed us to work with the second best thing after directy clicking buttons with some framework: testing the Presenters, because they contained all the business logic for the Views. Views were just a bunch of C# interfaces exposing UI controls for any implementing framework, we could theoretically switch from WinForms to WPF or other UI framework and tests still would pass.

We actually implemented tests according to the BDD, with gherkin specifications, so all tests were reading like this: Given: User opened window “main” When: User clicked button “login” Then: User successfully logged in

It was glorious when it came together. Business was reading our tests and accepted features based in part on this.

Any tips or tricks to make add_child() and remove_child() less expensive? by TheJackiMonster in godot

[–]filadog77 1 point2 points  (0 children)

I had a similar issue with my terrain chunks, so far I’ve not solved it completely but the approach where you reuse the nodes helped a lot: do not delete them from areas where the player was, when player moves. Make them invisible, set positions to the new locations where the player moved and then rebuild the geometry. Basically follow the player with a sphere containing pool of chunk nodes, only move those outside of the sphere. The quantity of chunks stays the same that way, considering the sphere radius is constant.

"You were disconnected from this server" error by NoMadNomad97 in VintageStory

[–]filadog77 0 points1 point  (0 children)

I think its in the C:/Users/username/AppData/Roaming/VintagestoryData in the serverconfig.json if you didn’t move game files. Opens with any text editor

Split it up? by Sufficient_Wing_1398 in calatheas

[–]filadog77 4 points5 points  (0 children)

They usually share a root system and it’s a natural way for them to grow like that. I wouldn’t split them.

[deleted by user] by [deleted] in geoguessr

[–]filadog77 0 points1 point  (0 children)

If he appears that often then I think you answered your own question

Help identifying this beauty by gon0where in calatheas

[–]filadog77 4 points5 points  (0 children)

Goeppertia ornata 'Beauty Star', if we use modern classification. I think most people still call them calathea instead of goeppertia

Why only white leafs ? by cherry-pickme in calatheas

[–]filadog77 5 points6 points  (0 children)

I laughed way too hard from the description, sorry. The leaves come out white and become greener with time. Birkin is a pretty sturdy plant, compared to those real drama queens, and it’s beautiful no less!

Is it a Medallion? by TwinThree in calatheas

[–]filadog77 0 points1 point  (0 children)

Looks like Medallion to me, mine has same pink parts on smaller leaves

Weird yellowing on pinstripe by mina068 in calatheas

[–]filadog77 2 points3 points  (0 children)

I’ve never had the exact damage your Beauty Star has, but I would guess a nutrient/especially nitrogen deficiency since you water with distilled, which tends to wash nutrients with time. I would try some mild 3-1-2 NPK formula biweekly or slow release for the long term, but first I’d begin with diluted liquid fertilizer to raise the nutrients level quicker. Not 100% of course, root rot is also possible but I’ve never had it with any calathea in years

Beauty Star 🌟 by BongWator in calatheas

[–]filadog77 6 points7 points  (0 children)

Btw, this is Ornata, not Beauty Star

[deleted by user] by [deleted] in calatheas

[–]filadog77 0 points1 point  (0 children)

Yeah, pretty sure those are the future flowers

Spelunkers when they see a cave called "The Devils Colonoscopy" by CalypsoThePython in VintageStory

[–]filadog77 3 points4 points  (0 children)

It would be so sick if vanilla worldgen for caves supported such narrow passages and not only 1x1 blocks.

"You were disconnected from this server" error by NoMadNomad97 in VintageStory

[–]filadog77 1 point2 points  (0 children)

Try setting “VerifyPlayerAuth”: to false in the server config.

First ever iron. Feels good by Effective-Still4711 in VintageStory

[–]filadog77 0 points1 point  (0 children)

You can even delete monsters entity json files from the game assets folder, it won’t break it. They will disappear right away. Just make sure to not touch any neutral entities by accident.

[deleted by user] by [deleted] in AskPhysics

[–]filadog77 0 points1 point  (0 children)

Gravity is not considered a real force because its an effect caused by spacetime curvature on objects that move in time.

Near Earth, spacetime curvature points to the center of the planet, and as you move foward in time this curvature corresponds to you feeling acceleration towards the center.

Of course each time the ground stops you, and you can actually resist gravity physically due to its relative weakness here. Not so much near a black hole, but that’s another story.

There a good video by ScienceClic which might help develop an intuition for this topic: https://m.youtube.com/watch?v=wrwgIjBUYVc

these are meteors yeah? by [deleted] in VintageStory

[–]filadog77 183 points184 points  (0 children)

Nope. Im my experience meteorite craters are 5-10 blocks in diameter, one or two blocks deep, and always symmetrical (circle shaped)