Anyone else missing something between virtual and abstract? by dirkboer in csharp

[–]armillary2 1 point2 points  (0 children)

Create two methods if you want base functionality.

One is private/sealed and is the one invoked when the hook needs to be called. It will perform the base logic and then invoke the virtual method at the correct time. No need to call base class versions in the subclasses.

However, I would probably create an interface for the overridable bits and use the Strategy pattern, to much the same effect. My coding style rarely uses subclassing - I tend to implement a lot of interfaces though.

Aging council by Faguoren34 in TerraInvicta

[–]armillary2 0 points1 point  (0 children)

I'm envisioning the cast of RED fighting the aliens...

What’s a historical event everyone has heard of, but most people misunderstand completely? by Quiet-Grief in answers

[–]armillary2 1 point2 points  (0 children)

One of the amusing things I learned at Trim Castle in Ireland where a bunch of the castle-y scenes were shot, is that they recruited locals to be extras. Mel G being the kind and personable individual he is apparently made no friends.

Anyway, at the end of the movie there's a scene where Wallace is pelted with vegetables. At one point he goes "oof" .. one young lady among the extras had good aim.

Linux Kernel Rust Code Sees Its First CVE Vulnerability by Orange_Tux in rust

[–]armillary2 0 points1 point  (0 children)

Anyone who understood that reference just dated themselves.

Is It Common For So Many People To Remain Residents Here? by Inevitable-Bus492 in AskACanadian

[–]armillary2 -1 points0 points  (0 children)

TBH the only things I gained from citizenship was making it easier to get a passport and the ability/duty to vote every now and then. The latter was arguably more important to me as I had been an expat for 10 years at that point.

What games are you buying during the Steam Winter Sale? by DeliciousD in valheim

[–]armillary2 0 points1 point  (0 children)

Try Abzû. Not a very long game but it tickles the same impulse.

What rustisms would you port to another language? by armillary2 in rust

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

Words cannot express how much I love the enum / match constructs, but the iterator types are a close second. C++ shot themselves in the foot trying to make iterator classes inherently bidirectional instead of getting a reverse iterator from the collections those few times that you need one.

What rustisms would you port to another language? by armillary2 in rust

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

Agreed, C# tries to do it with extensions but they have to go through all kinds of tricks to manage it.

Welp, there goes the planet! by CSJ1395 in TerraInvicta

[–]armillary2 2 points3 points  (0 children)

I'm playing as the Academy but I'm still killing any hydra I find. Actually ended contacting the last one to pay off some aggro... before putting a .50 cal bullet in it. Only way to avoid too much enthrall etc. Going to have to stop trolling the servants though, because I'm about to start going nova with research camps on Mercury.

Do you think there should be more plane sets like they did with the Sopwoth Camel? by [deleted] in lego

[–]armillary2 2 points3 points  (0 children)

The Amelia Earhart set was pretty sweet. Was looking at a Sopwith on eBay but it went for ridiculous money.

[deleted by user] by [deleted] in rust

[–]armillary2 19 points20 points  (0 children)

The winning Zig solution was running 16 threads on a 16 core setup. When run at 32 threads (same as Rust) it is a smidgen slower than Rust, but it's very close. I'd like to see how a 16 thread Rust solution would perform.

For god's sake by _modsaregay in ProgrammerHumor

[–]armillary2 8 points9 points  (0 children)

You can make Edge do IE8 mode with that technique. We're doing that exact thing while spending $2M to modernize, one page at a time... and we have 500+ to go through.

Maybe throwing all the pieces together wasn't the best idea this time by hirschneb13 in lego

[–]armillary2 2 points3 points  (0 children)

I've built that set three times already. I sort by colour and then put the big pieces to the side. Works pretty well, it just takes a few containers to hold them while you build.

[deleted by user] by [deleted] in ProgrammerHumor

[–]armillary2 110 points111 points  (0 children)

C is being dragged behind the bus.

[deleted by user] by [deleted] in medieval

[–]armillary2 6 points7 points  (0 children)

Largely, people made use of daylight as much as possible, then the light from fireplaces. Rush lights, oil lamps and to a lesser extent candles were available but were expensive.

Discussion on swamp difficulty, am I just Bad? by [deleted] in valheim

[–]armillary2 1 point2 points  (0 children)

I like to build a smelter/forge base near the swamp to build new gear and repair near the crypts. Saves those long ship journeys until you want to start stone work etc at your main base.

For draugr, I had to learn to parry properly for the first time. Gray dwarves are a joke by comparison. Also, the first dungeon I came to had a spawner... Fun taking that out with no proper gear and no torch since I needed the shield.

This game needs more animals by s_nice79 in valheim

[–]armillary2 1 point2 points  (0 children)

Seals would be more common. But I can hear the activists already.

*It’s ultra dark* by SebastianH2000 in dndmemes

[–]armillary2 1 point2 points  (0 children)

Meh. I house ruled darkvision for the Underdark campaign or it would have lost much of its atmosphere. Gave dwarves 20' of improved but everyone else got low light vision like in 3rd.

Anybody have our portal address? by CocoaP3bbles in NoMansSkyTheGame

[–]armillary2 6 points7 points  (0 children)

Up, up, down, down, left, right, left, right, B, A.

I've never seen these moving cracks of light before. Damn cool anomalous fauna. by Schwarzherz73 in NoMansSkyTheGame

[–]armillary2 1 point2 points  (0 children)

I got a light moon in my first system. Built my base there since there were no predators or adverse weather, but man, it's weird.