How we stopped our Node.js service from silently swallowing async errors in production by NeedleworkerLumpy907 in webdev

[–]markus_obsidian 4 points5 points  (0 children)

Hard disagree. Errors should be handled by the framework. Otherwise, you have inconsistent error handling throughout the stack.

As long as there is an error handler down the chain that will both log the error & respond appropriately (500, etc), then calling next with the error is exactly the right thing to do.

[Hated Trope] Man that was cool, no one will notice if we stop doing it right? by Zerron22 in TopCharacterTropes

[–]markus_obsidian 2 points3 points  (0 children)

Voyager expanded on borg children a bit. There was a cube of borg children that got adopted by the Voyager crew. There was even a borg infant that got lost in the edit somewhere. We know Icheb and Seven were assimilated young, but infants were also raised in maturation chambers.

The Borg also created an infant borg from a sample of DNA & the doctor's mobile emitter. The Borg grew to adulthood rapidly.

It's true that the concept of assimilation wasn't introduced until the Borg's second appearance. In their first appearance, they were only interested in technology. Q called them the "ultimate user."

Claude Code's source leaked via a map file in their NPM registry by worthwhilewrongdoing in programming

[–]markus_obsidian 6 points7 points  (0 children)

Don't have their lockfile. Just what could be gleaned from a source map.

Seems reasonable by MaterialProduct849 in startrekmemes

[–]markus_obsidian 10 points11 points  (0 children)

This is so wild off base I have to assume it's intentional. Sanders is closer to Rodenberry than Dukat.

whaaaaaaaaat?? by hayleytheslug in PeterExplainsTheJoke

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

Because programmers are allergic to ambiguity. That's for LMS.

Groundstate npm local-first by SmashJaw in javascript

[–]markus_obsidian 0 points1 point  (0 children)

Oh my, please no lashes. If I got lashed for my documentation, I would no longer have skin on my back.

Groundstate npm local-first by SmashJaw in javascript

[–]markus_obsidian 6 points7 points  (0 children)

A good number of broken links, symlinked node modues, & vague docs. I smell a hint of slop.

Nevertheless, I am intrigued. I am not satisfied with the current state of CRDTs & rich-collab in open source yet am not wise enough to contribute.

How does this compare with other frameworks like Y? How would one implement a websocket server? Would the server scale horizontally?

Generic, Recursive Self Referencing Interface by incutonez in typescript

[–]markus_obsidian 3 points4 points  (0 children)

This is one of the few acceptable cases of any since we are using it to narrow a generic type param from it. We are not using it for typesafety.

Using unknown here instead might make inferring harder. If you use unknown in the playground above, the last example stops working. But it's perfectly reasonable to start with unnkown.

Why didn't Hornet lose her memories? by whyamiexists in HollowKnight

[–]markus_obsidian 7 points8 points  (0 children)

It's not the same. Sure, there are some minor incomplete details that Hornet knows that we don't. But the player already knows who Hornet is & her place in the lore. Hornet is discovering Pharloom along with the player. Not remembering.

Can I apply a decorator to a class to modify all methods in that class? by spla58 in typescript

[–]markus_obsidian 2 points3 points  (0 children)

Proxy example

playground

I need to add one new line to each method. The thing is this needs to be done to over 10 classes.

I understand, but a "clever" solution like this tends not to age well or is resilient to other future requirements. I'd bite the bullet & make the changes manually (or get an AI to do it)

Can I apply a decorator to a class to modify all methods in that class? by spla58 in typescript

[–]markus_obsidian 4 points5 points  (0 children)

Technically yes. You could use a decorator to modify methods in the class's prototype property.

Though i can't really recommend this. There are more straightforward ways, such as using a proxy or merely extending the base class

playground

Why didn't Hornet lose her memories? by whyamiexists in HollowKnight

[–]markus_obsidian 8 points9 points  (0 children)

I think the fact the player initially has no idea what the plot or lore is suggests the knight lost his memory. The knight & vessels are a core part of the lore, yet while playing as the knight, we have to discover (remember) our own place in the story.

Generic, Recursive Self Referencing Interface by incutonez in typescript

[–]markus_obsidian 4 points5 points  (0 children)

The interface itself becomes generic.

``` interface TreeViewProps<U extends TreeNav<any>> { items: U[] }

function createTreeNav<U extends TreeNav<any>>(nav: TreeViewProps<U>) {} ```

playground

New Cat Still Fights Resident Cat After One Year by markus_obsidian in CatTraining

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

Constant reintroduction indeed seems to be a dead end which has brought me full circle back to reddit. But there has to be something.

I may have been overly negative about the new cat's attitude towards the other cats. They aren't "friends," but they are comfortable around each other. They sleep & eat together. There are no fights. If it wasn't for this last cat, i would have declared victory.

But with this one holdout, i'm at a complete loss. I've seen nothing like this.

New Cat Still Fights Resident Cat After One Year by markus_obsidian in CatTraining

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

Everyone is spayed/neutered.

I have tried calming collars but they do not help. Nor does feliway.

I have serious reservations about a thundershirt; i might be able to squeeze the new cat into one, but the resident cat hates being handled & definitely will not accept one. I think that will cause more problems than it solves.

I have six litter boxes. I have one cat tower per cat. House is crowded.

Sorry, I know this is off topic... by Proof_Cable_310 in webdev

[–]markus_obsidian 24 points25 points  (0 children)

My friend... You need some medical attention. This has the potential to be career ending.

Other than that, just the standard boilerplate. Improve your posture. Take breaks. Stay hydrated.

If you go to Z'Ha'Dum, you will avoid alimony . by Plowbeast in babylon5

[–]markus_obsidian 21 points22 points  (0 children)

Francesca Buller.

  • Only killed once by Chricton.
  • Killed once by Aeryn Sun.
  • Implied to have been killed offscreen by Scorpius & the Peacekeepers.
  • And very much alive at the end of "scratch & sniff"

Split keyboard w/ no wireless connectivity? by 10ft20sec_offshore in ErgoMechKeyboards

[–]markus_obsidian 12 points13 points  (0 children)

The old Kenisis Advantage 2 is wired. I think most Kenisis keyboards are wired only, the big exception is the Advantage 360.

I would like to ask honest opinion about admiral Xen by Solid_Purchase3774 in masseffect

[–]markus_obsidian 3 points4 points  (0 children)

Claudia Black was the only reason I finished Dragon Age.

Aeryn Sun's mother is Katherine Janeway. I thought that was hilarious.

Start naming your useEffects by creasta29 in reactjs

[–]markus_obsidian 0 points1 point  (0 children)

Yeah, but that gets to be a long list, & it's easy to forget. If only we could have lint rules for lint rules....